• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Use of AudioQueue buffers in case of sound synthesis
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Use of AudioQueue buffers in case of sound synthesis (From: "email@hidden" <email@hidden>)

  • Prev by Date: OpenAL and file size
  • Next by Date: Re: OpenAL and file size
  • Previous by thread: Re: Use of AudioQueue buffers in case of sound synthesis
  • Next by thread: Re: Use of AudioQueue buffers in case of sound synthesis
  • Index(es):
    • Date
    • Thread