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: David Duncan <email@hidden>
- Date: Sat, 30 Jan 2010 22:19:44 -0800
On Jan 30, 2010, at 9:35 PM, Aran Mulholland wrote:
>> You need to fill the buffers before you start, and you need to refill the buffers during the callback. It makes sense to have the same code do that activity, if only to ensure that the buffers always get filled in the same way.
>
> "You need to fill the buffers before you start" - why not just fill
> them in the callback the first time the callback gets called? I feel
> like im missing something simple and fundamental here, maybe just
> cause i've been at at the beach the last two days.....
You need to queue buffers to get a callback. If the buffers are empty you'll get silence. So you fill the initial buffers with content, and your fine. Since you need to fill content in the callback too, it might as well serve both duties.
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.
David Duncan
_______________________________________________
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