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

AudioQueue and seeking through file


  • Subject: AudioQueue and seeking through file
  • From: Thomas Clement <email@hidden>
  • Date: Tue, 6 May 2008 16:56:12 +0200

Hi list,

I'm using an AudioQueue to play an audio file from disk and I want to be able to seek through the file just like you would do in QT Player or iTunes.

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.
So I though AudioQueueFlush or AudioQueueReset would help but I couldn't get it to work correctly. I also tried to stop the queue, change the packet index, buffer the new data and start the queue, however the audio sounds wrong and stops playing almost immediately.


What is the correct process for doing this?

Thanks,
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


  • Follow-Ups:
    • Re: AudioQueue and seeking through file
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Getting AU to produce sound output
  • Next by Date: Re: AudioQueue and seeking through file
  • Previous by thread: Re: AudioQueue repeat play?
  • Next by thread: Re: AudioQueue and seeking through file
  • Index(es):
    • Date
    • Thread