Mixing 16Khz, 8 bit audio
Mixing 16Khz, 8 bit audio
- Subject: Mixing 16Khz, 8 bit audio
- From: Aran Mulholland <email@hidden>
- Date: Tue, 21 Sep 2010 23:12:54 +1000
Hey All,
Just wondering whether it is possible to set up a multi channel mixer
on the iPhone to accept a format like this: (its meant to be 16Khz, 8
bit, non interleaved stereo)
nonInterleavedAudioFormat.mSampleRate = 16000.0;
nonInterleavedAudioFormat.mFormatID = kAudioFormatLinearPCM;
nonInterleavedAudioFormat.mFormatFlags =
kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsNonInterleaved |
kAudioFormatFlagIsPacked;
nonInterleavedAudioFormat.mFramesPerPacket = 1;
nonInterleavedAudioFormat.mChannelsPerFrame = 2;
nonInterleavedAudioFormat.mBitsPerChannel = 8;
nonInterleavedAudioFormat.mBytesPerPacket = 2;
nonInterleavedAudioFormat.mBytesPerFrame = 2;
When I do a
err = AudioUnitSetProperty(outputMixerUnit,
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Output,
0,
&nonInterleavedAudioFormat,
sizeof(nonInterleavedAudioFormat));
I get the dreaded -10868 (kAudioUnitErr_FormatNotSupported)
It is fine setting the input however :
err = AudioUnitSetProperty(outputMixerUnit,
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input,
0,
&nonInterleavedAudioFormat,
sizeof(nonInterleavedAudioFormat));
I'd really like to know what I'm doing wrong, I usually spend more
time setting up the AUGraph and connections than coding my Audio.
What formats are supported? Setting the RemoteIO's input with the same
input is allowed.
err = AudioUnitSetProperty(remoteIOUnit,
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input,
0,
&nonInterleavedAudioFormat,
sizeof(nonInterleavedAudioFormat));
Thanks
Aran.
_______________________________________________
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