Re: IMA4 Audio Format on MultiChannel Mixer - iPhone
Re: IMA4 Audio Format on MultiChannel Mixer - iPhone
- Subject: Re: IMA4 Audio Format on MultiChannel Mixer - iPhone
- From: William Stewart <email@hidden>
- Date: Thu, 3 Sep 2009 16:05:31 -0700
On Aug 31, 2009, at 10:59 PM, ROBB A MANIA wrote:
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.
but, actually this doesn't work. We should have given an error back,
but some of the format checking here was less strict than it should
have been.
You will have to create an audio converter (IMA on one side, lpcm on
the other) and then you will call the audio converter from your AU's
render callback.
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.
it can't - sorry, we should have been more strict about accepting
valid formats.
Bill
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
_______________________________________________
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