• 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: 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

References: 
 >Use of AudioQueue buffers in case of sound synthesis (From: "cparodi.ugemi" <email@hidden>)
 >Re: Use of AudioQueue buffers in case of sound synthesis (From: arab stab <email@hidden>)
 >Re: Use of AudioQueue buffers in case of sound synthesis (From: Doug Wyatt <email@hidden>)
 >Re: Use of AudioQueue buffers in case of sound synthesis (From: Aran Mulholland <email@hidden>)
 >Re: Use of AudioQueue buffers in case of sound synthesis (From: David Duncan <email@hidden>)
 >Re: Use of AudioQueue buffers in case of sound synthesis (From: Aran Mulholland <email@hidden>)

  • Prev by Date: Re: Use of AudioQueue buffers in case of sound synthesis
  • Next by Date: Re: Use of AudioQueue buffers in case of sound synthesis
  • 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