Re: InputCallbacks and buffer size
Re: InputCallbacks and buffer size
- Subject: Re: InputCallbacks and buffer size
- From: Hari Seldon <email@hidden>
- Date: Tue, 29 Aug 2006 20:46:33 -0400
Quoting William Stewart <email@hidden>:
On 18/08/2006, at 10:20 AM, Hari Seldon wrote:
Also, currently I copy data (interleaved signed int data) into the
buffer provided to the inputcallback; is this the best approach?
You can reset the data pointers provided to you in the ABL - you then
have to keep those pointers valid until the next time the AU calls you
for data - that is the only clear time that you know that the AU is
finished processing your input.
How do you mean? I can setup the input callback to read the data from
a buffer that I own, just by passing it pointers to the buffer? How
is this done, as I haven't seen an example of it. I would be
interested in something like this as I'd prefer not to slow the system
down with another memcpy, if I already have the data awaiting playback
in a circular buffer.
Thanks
_______________________________________________
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