Re: Use of AudioQueue buffers in case of sound synthesis
Re: Use of AudioQueue buffers in case of sound synthesis
- Subject: Re: Use of AudioQueue buffers in case of sound synthesis
- From: Doug Wyatt <email@hidden>
- Date: Sat, 30 Jan 2010 15:32:51 -0800
On Jan 30, 2010, at 13:23 , arab stab wrote:
>
>> One problem I am facing is about the 3-buffer approach: do I really need to allocate three queue buffers and invoke my callback render function three times in a loop? Isn't that purely insane from a performance point of view (IMHO I was already struggling with performance with a single callback).
>
> You don't invoke the callback manually, it gets called when a buffer needs to be filled. And you get asked to fill one buffer at a time, the reason for multiple buffers is so that one can be playing while another is being filled, so multiple buffers make sense.
Invoking the callback manually can be useful for reusing code between filling/enqueuing the first buffer(s) and refilling buffers when they are complete.
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