How to set my AUDynamicsProcessor's audioformat?
How to set my AUDynamicsProcessor's audioformat?
- Subject: How to set my AUDynamicsProcessor's audioformat?
- From: Pier <email@hidden>
- Date: Mon, 03 Dec 2012 17:20:07 +0800
Hi,
I'm trying to link up my mixer -> remoteio -> dynamics processor
Here is my AudioFormat
// Describe format
memset( &audioFormat, 0, sizeof(AudioStreamBasicDescription) );
audioFormat.mSampleRate = 44100.00;
audioFormat.mFormatID = kAudioFormatLinearPCM;
audioFormat.mFormatFlags = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;
audioFormat.mFramesPerPacket = 1;
audioFormat.mChannelsPerFrame = 1;
audioFormat.mBitsPerChannel = 16;
audioFormat.mBytesPerPacket = 2;
audioFormat.mBytesPerFrame = 2;
When I use CAShow it gives me the following.
AudioUnitGraph 0x4725000:
Member Nodes:
node 1: 'auou' 'rioc' 'appl', instance 0x1c5ab3a0 O I
node 2: 'aumx' 'mcmx' 'appl', instance 0x1d07a6d0 O I
node 3: 'aufx' 'dcmp' 'appl', instance 0x1d085330 O I
Connections:
node 2 bus 0 => node 1 bus 0 [ 2 ch, 44100 Hz, 'lpcm' (0x00000C2C) 8.24-bit little-endian signed integer, deinterleaved]
node 1 bus 0 => node 3 bus 0 [ 2 ch, 0 Hz, 'lpcm' (0x00000029) 32-bit little-endian float, deinterleaved]
Why is it that it shows 0Hz, and 32-bit little endian float for the connection between remoteio and dynamicprocessor when I did not specify it?
Trying
result = AudioUnitSetProperty (
_dynamicsUnit,
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input,
0,
&audioFormat,
sizeof (audioFormat)
);
to set the audioFormat to the desired format gives me a error code -10868.
Thanks in advance for your help.
--
Pier.
_______________________________________________
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