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

  • Follow-Ups:
    • Re: Use of AudioQueue buffers in case of sound synthesis
      • From: Aran Mulholland <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>)

  • 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