I am using the 3dmixer with signed int packed data, but when I set the stream format, I always get -10868 (kAudioUnitErr_FormatNotSupported). The docs of course are not terribly useful, I'm probably missing something obvious.
AudioStreamBasicDescription desc; channel->getFormat( desc );
err = AudioUnitSetProperty( mMixer3d, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, snd->buffer.channelNumber, &desc, sizeof(AudioStreamBasicDescription));
desc is: mSampleRate = 32000, mFormatID = 1819304813, mFormatFlags = 12, mBytesPerPacket = 2, mFramesPerPacket = 1, mBytesPerFrame = 2, mChannelsPerFrame = 1, mBitsPerChannel = 16, mReserved = 0
asbd.mFormatID = kAudioFormatLinearPCM; asbd.mFormatFlags = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;
does the mixer3d not support signed int data? do I have to provide or convert it to the canonical format?
- andrew
|