• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
PhantomAudioEngine
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PhantomAudioEngine


  • Subject: PhantomAudioEngine
  • From: Martin Hairer <email@hidden>
  • Date: Thu, 10 Oct 2002 11:41:28 +0100

Hi,

I've been playing around a bit with PhantomAudioEngine. I set up one
engine with 1 stream having 8 16Bit channels and one engine with 8 streams
having each one 16Bit channel. I am trying to access them via the SoundManager.
(Yes I know I should use CoreAudio, but this is from a Carbon app and I want
it to behave fine in Classic. I also know I can use CoreAudio in a Carbon app, but this
will be for later.)

The first setup seems to work fine, except for the fact that the SoundManager
doesn't seem to cope well with the eight channels (SPBGetDeviceInfo returns no
error and indicates that there are TWO channels, but on the other hand SPBSetDeviceInfo
with the number of channels set to two or to eight returns in both cases a "no hardware"
error, which is some kind of contradiction to me).

The second setup causes a kernel panic as soon as I try to record from it (and also
as soon as I try to select it as sound input in the "Sound" preferences panel, so it's
not only an error on my side). The relevant part of the Info.plist for that setup is

<key>BlockSize</key>
<integer>512</integer>
<key>Description</key>
<string>8 Streams / 1 Channel</string>
<key>Formats</key>
<array>
<dict>
<key>IOAudioStreamAlignment</key>
<integer>1</integer>
<key>IOAudioStreamBitDepth</key>
<integer>16</integer>
<key>IOAudioStreamBitWidth</key>
<integer>16</integer>
<key>IOAudioStreamByteOrder</key>
<integer>0</integer>
<key>IOAudioStreamDriverTag</key>
<integer>0</integer>
<key>IOAudioStreamIsMixable</key>
<integer>1</integer>
<key>IOAudioStreamNumChannels</key>
<integer>1</integer>
<key>IOAudioStreamNumericRepresentation</key>
<integer>1936289396</integer>
<key>IOAudioStreamSampleFormat</key>
<integer>1819304813</integer>
</dict>
</array>
<key>NumBlocks</key>
<integer>32</integer>
<key>NumStreams</key>
<integer>8</integer>
<key>SampleRates</key>
<array>
<integer>44100</integer>
<integer>48000</integer>
<integer>96000</integer>
</array>

Is there something wrong with this? Does anyone have some experience with the interaction
between the SoundManager and Audio engines implementing more than one stream and/or more
than 2 channels? Thanks for any hint,

Martin
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Best place to start
  • Next by Date: best way to get rate conversion
  • Previous by thread: Re: Best place to start
  • Next by thread: best way to get rate conversion
  • Index(es):
    • Date
    • Thread