Re: Slow seeking in MP3 files using ExtAudioFile
Re: Slow seeking in MP3 files using ExtAudioFile
- Subject: Re: Slow seeking in MP3 files using ExtAudioFile
- From: Hamish Allan <email@hidden>
- Date: Thu, 22 Jan 2009 22:26:17 +0000
Hi Christopher,
On Thu, Jan 22, 2009 at 8:20 PM, Christopher Atlan <email@hidden> wrote:
> My problem is that AudioQueue still plays some buffers before it starts
> playing from the new position.
Are you sure it's playing some buffers, rather than just some packets
from the buffer you had previously been filling? That was what bit me
on my first attempt at this: I didn't clear the buffer I had been
writing to when the seek occurred, so the first thing I heard when the
queue started again was a little audio from the old position.
> I try it with this sequence:
>
> AudioQueuePause();
> AudioQueueReset();
> AudioFileStreamSeek();
> AudioQueueStart();
I just use AudioQueueStop (synchronously) and AudioQueueStart and,
other than a small delay while the pipeline is filled, that seems to
work fine. Do your buffers get recycled when you call
AudioQueueReset()?
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