Re: *Interleaved* input with AUHAL?
Re: *Interleaved* input with AUHAL?
- Subject: Re: *Interleaved* input with AUHAL?
- From: "Mike Kluev" <email@hidden>
- Date: Wed, 17 Dec 2008 11:09:36 +0300
On Tue, 16 Dec 2008 10:53:40 -0800 William Stewart <email@hidden>
wrote:
That would be it - it is important that the layout of the audio
buffer list matches the format. I've found it helpful to have a
class that wraps this up for me, the AUOutputBL class in public
utility, where it will just create an ABL for you based on the ASBD
you get from an audio unit.
BTW, I do not fill the whole struct like it is done in AUOutputBL. All
the
fields are zeroed except for the mNumberBuffers field and it works ok.
Is that not correct? I do this:
AudioBufferList10 buffer = {};
buffer.mNumberBuffers = isInterleaved ? 1 : numChannels;
OSStatus err = AudioUnitRender(unit, flags, timeStamp,
busNumber, numberFrames, (AudioBufferList*)&buffer);
Mike
_______________________________________________
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