Re: AudioQueue Usage Question
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