• 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
USB multi-channel playback with AudioUnit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

USB multi-channel playback with AudioUnit


  • Subject: USB multi-channel playback with AudioUnit
  • From: Christof Faller <email@hidden>
  • Date: Fri, 5 Oct 2001 11:15:33 -0400

I got an USB multi-channel playback devide
(emi 2|6) and am playing with it in MacOS X 10.1.

A have a few questions regarding AudioUnits and multi-channel
playback:

I am setting the AudioUnit stream format to multi-channel like this:

austream.mSampleRate = 32000;
austream.mFormatID = kAudioFormatLinearPCM;
austream.mFormatFlags = kLinearPCMFormatFlagIsFloat | kLinearPCMFormatFlagIsBigEndian | kLinearPCMFormatFlagIsPacked;
austream.mBytesPerPacket = 16;
austream.mFramesPerPacket = 1;
austream.mBytesPerFrame = 16;
austream.mChannelsPerFrame = 4;
austream.mBitsPerChannel = 32;

count = sizeof(AudioStreamBasicDescription);
err = AudioUnitSetProperty(
audiounitinstance,
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input,
0, (void *) &austream, count);
if (err != noErr) {
fprintf(stderr, "Could not setup audio unit stream format for surround!!\n");
exit(0);
}

But the audio device (USB, emi 2|6) is still only playing stereo. Is it necessary
to set the stream format for the audio device also to multi-channel, before
the audio unit actually will play multi-channel??

Chris


  • Follow-Ups:
    • Re: USB multi-channel playback with AudioUnit
      • From: Bill Stewart <email@hidden>
    • Change properties of an audio device which is associated with an AU
      • From: Christof Faller <email@hidden>
  • Prev by Date: Change properties of an audio device which is associated with an AU
  • Next by Date: Re: USB multi-channel playback with AudioUnit
  • Previous by thread: Unloading AppleUSBAudio
  • Next by thread: Change properties of an audio device which is associated with an AU
  • Index(es):
    • Date
    • Thread