Re: Basic AudioQueue Service issue
Re: Basic AudioQueue Service issue
- Subject: Re: Basic AudioQueue Service issue
- From: "Hamish Allan" <email@hidden>
- Date: Thu, 23 Oct 2008 16:32:32 +0100
On Thu, Oct 23, 2008 at 3:39 PM, Craig Patchett <email@hidden> wrote:
> What I can't figure out how to work around,
> however, is the popping sound I get when I restart a sound in the middle of
> playing.
The documentation for AudioQueueReset() states:
"If you queue buffers after calling this function, processing does not
begin until the decoder and DSP state of the audio queue are reset.
This might create an audible discontinuity (or "glitch")."
I guess if you want lower latency than the time it takes for the DSP
state to be reset, you're out of luck.
Have you tried setting the queue volume to 0, then using
AudioQueueEnqueueBufferWithParameters() to set it back? The docs say
"Changes to audio queue buffer parameters take effect when the buffer
starts playing" so it might just work.
I'm about to start writing a seekable file audio player (having
previously only handled streaming) so I'll let you know how I get on.
Best wishes,
Hamish
_______________________________________________
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