More on: Error in AudioUnitRender()
More on: Error in AudioUnitRender()
- Subject: More on: Error in AudioUnitRender()
- From: john <email@hidden>
- Date: Sat, 10 Dec 2005 00:11:19 -0500
Hi Doug,
I think I realised the paramErr I'm getting - I'd like the audio data
in interleaved format and am preparing the AudioBufferList for the
call to AudioUnitRender accordingly. If I call AudioUnitSetProperty
with kAudioUnitPropertyStreamFormat and kAudioUnitScope_Output (or
_Global) I'm still getting the error when calling AudioUnitRender.
Can this be done, or do I have to be able to support 2 non-
interleaved channels?
Thanks.
-- John
You can interrogate kAudioUnitProperty_MaximumFramesPerSlice and
respect it -- or you can set it:
UInt32 frames = 2048;
AudioUnitSetProperty(myReverbAUInstance,
kAudioUnitProperty_MaximumFramesPerSlice,
kAudioUnitScope_Global,
0,
&frames,
sizeof(frames));
Doug
_______________________________________________
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