• 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 and seeking through file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioQueue and seeking through file


  • Subject: Re: AudioQueue and seeking through file
  • From: "Matthew Leon Grinshpun" <email@hidden>
  • Date: Wed, 7 May 2008 19:50:16 -0400

I have, oddly enough, had good luck with the following approach:
Change the packet index as you propose, then immediately call
AudioQueueStop on the queue and then, right afterward, call
AudioQueueStart.

This seems to do the trick for me.

-Matthew

On Tue, May 6, 2008 at 1:39 PM, Thomas Clement <email@hidden> wrote:
> Jens Alfke wrote :
>
>
>
> > On 6 May '08, at 7:56 AM, Thomas Clement wrote:
> >
> >
> > > To do that I'm changing the packet index passed to AudioFileReadPackets
> during the playback which is working but there is a delay due to the audio
> being buffered.
> > >
> >
> > I don't know of a good workaround for this. The buffering is what makes
> AudioQueue easy to use, since you don't have to run your code on a real-time
> thread, but it also means high latency.
> >
>
>  Their must be a way to clear the buffers. Isn't AudioQueueFlush supposed to
> do that?
>
>
>
> > In addition, the code definitely still seems to have some rough edges in
> the area of stopping and restarting queues. I haven't seen the side effects
> you report, but I've gotten a lot of deadlocks and other misbehavior.
> >
>
>  I've seen those side effects too...
>  Isn't AudioQueue supposed to be the next great thing for playing audio?
> Should I use something else?
>
>
>  Thanks for your help,
>
>
>  Thomas
>
>  _______________________________________________
>  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
>
 _______________________________________________
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: AudioQueue and seeking through file
      • From: Thomas Clement <email@hidden>
References: 
 >AudioQueue and seeking through file (From: Thomas Clement <email@hidden>)
 >Re: AudioQueue and seeking through file (From: Jens Alfke <email@hidden>)
 >Re: AudioQueue and seeking through file (From: Thomas Clement <email@hidden>)

  • Prev by Date: Re: Stereo panning with the HAL
  • Next by Date: Re: AudioQueue and seeking through file
  • Previous by thread: Re: AudioQueue and seeking through file
  • Next by thread: Re: AudioQueue and seeking through file
  • Index(es):
    • Date
    • Thread