IMA4 Audio Format on MultiChannel Mixer - iPhone
IMA4 Audio Format on MultiChannel Mixer - iPhone
- Subject: IMA4 Audio Format on MultiChannel Mixer - iPhone
- From: ROBB A MANIA <email@hidden>
- Date: Mon, 31 Aug 2009 22:59:21 -0700 (PDT)
Hello all, I am seeking some info on the playing IMA4 audio through the multichannel mixer. I am successfully playing multiple Linear PCM .wav files through an audio graph containing two multichannel mixers and the AURIO unit. I am now attempting to play IMA4 .caf files in this graph. I am able to successfully set the AURIO unit input to accept IMA4. However when I try to change the multichannel mixer unit, I receive an error. I am not sure what I am doing wrong or if I am wrong in thinking the multichannel mixer can play IMA4 formatted audio. Any help is appreciated. The relevant code is below:
// Caf IMA4 Audio format
cafAudioFormat.mSampleRate = 44100.00;
cafAudioFormat.mFormatID = kAudioFormatAppleIMA4;
cafAudioFormat.mFormatFlags = 0;
cafAudioFormat.mFramesPerPacket = 64;
cafAudioFormat.mChannelsPerFrame = 2;
cafAudioFormat.mBitsPerChannel = 0;
cafAudioFormat.mBytesPerPacket = 68;
cafAudioFormat.mBytesPerFrame = 0;
//Successfully set the AURIO input props
errorCheck = AudioUnitSetProperty(myAURIOUnit, kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input,
0,
&cafAudioFormat,
sizeof(cafAudioFormat));
//Error happens on the following call. errorCheck = AudioUnitSetProperty(myMultiChannelMixer, kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input,
0,
&cafAudioFormat,
sizeof(cafAudioFormat)); |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden