AUHAL deinterleaved data format - how to handle it
AUHAL deinterleaved data format - how to handle it
- Subject: AUHAL deinterleaved data format - how to handle it
- From: Simon Liu <email@hidden>
- Date: Thu, 14 Oct 2004 18:01:25 +0100
Hi,
As stated in TN2091, an AUHAL's AudioBufferList points to
deinterleaved data. In my tests, for my built-in audio controller,
there are 2 buffers, with each buffer holding 1 channel worth of data.
This is only for HALOutput AUs, and not normal AUs right?
- In my AUHAL render callback, I want to copy the data to a buffer,
which is periodically looked at by a thread which uses AudioConverter
with a AudioFile to write out an AIFF file. How can I interleave the
data efficiently, so I can use AudioConverter?
- Or is it better to create an AUGraph where the AUHAL's output is
already interleaved? e.g.
AUHAL--->AUSomething
Where my file writer periodically calls AURender on AUSomething, and
the render callback for AUSomething gets data from AUHAL, and copies
the data to a buffer.
Regards,
Simon
_______________________________________________
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