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: Sun, 31 Jan 2010 09:07:42 -0800
On Jan 31, 2010, at 6:21 AM, email@hidden wrote:
> in that scenario is there any risk of hearing clicks or any other sort of audible problems if my queue has
> got a unique buffer instead of three?
You need at least 2 buffers to avoid the possibility of glitches in the audio. With a single buffer, you cannot both play and fill new audio at the same time, thus if there is any significant delay between when your buffer is returned to you and when it is re-queued, you have a chance to have a glitch.
Unless your audio is particularly difficult to generate, the number of buffers won't affect your latency to start audio, this is more dictated by the size of your individual buffers. It also won't affect your latency to stop audio, as the queue can stop at any time. Both the size and number of buffers affect your ability to change parameters of the audio as it is playing, as you would need to remove existing queued buffers to respecify the audio if you wanted to change state as soon as possible, and your still limited to the length of individual buffers.
--
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