• 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: AudioQueue Usage Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioQueue Usage Question


  • Subject: Re: AudioQueue Usage Question
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 2 Mar 2009 15:10:36 -0800


On Mar 2, 2009, at 2:17 PM, David Collins wrote:

My problem is that when i start the queue, the AudioQueue plays everything really fast. I just hear sputters and the playing terminates quickly. (The playing ends wen the last buffer is queued). It plays so quickly that I have to insert silence when i cannot keep up.

Are you telling the queue to stop? A common mistake is to think that the queue is synchronous, i.e. that you can tell the queue to play and then on the next line tell it to stop. In reality the Play call just starts the queue and returns immediately, so stopping right afterwards will just produce a pop (if that). To know when to stop the queue you need to watch its properties to see when it's finished.


Also, are you priming the queue by adding a few seconds' worth of buffers to it before telling it to play? That's important.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >AudioQueue Usage Question (From: David Collins <email@hidden>)

  • Prev by Date: Re: AudioFileWritePackets divide by zero
  • Next by Date: Question about items in Sound Preferences
  • Previous by thread: AudioQueue Usage Question
  • Next by thread: Question about items in Sound Preferences
  • Index(es):
    • Date
    • Thread