Re: How to fill the ioData parameter in the Audio Unit rendering call back?
Re: How to fill the ioData parameter in the Audio Unit rendering call back?
- Subject: Re: How to fill the ioData parameter in the Audio Unit rendering call back?
- From: james mccartney <email@hidden>
- Date: Thu, 12 Mar 2009 17:51:12 -0700
On Mar 12, 2009, at 3:36 PM, james mccartney wrote: [Callback function in CAPlayThru sample code]
Actually it looks like you got this from the MatrixMixerTest. In that code the input buffer is interleaved stereo floats from a file. So the code below is deinterleaving them into two output buffers.
float *in = d.bufs[inBusNumber].data;
...
outA[i] = in[phase++];
outB[i] = in[phase++];
|
_______________________________________________
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