• 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 sample time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioQueue sample time


  • Subject: Re: AudioQueue sample time
  • From: Michael Hanna <email@hidden>
  • Date: Mon, 6 Sep 2010 14:27:42 -0400

Oops, looks like AudioQueueGetCurrentTime() is what I want.. helps to read docs :)

Michael

On Mon, Sep 6, 2010 at 2:23 PM, Michael Hanna <email@hidden> wrote:
I am simply playing back a file over the speakers and currently I'm using the the currentPacket/sampleRate as a means to display the current playback time. For audio that doesn't call the buffer callback that frequently, this results in a infrequent update of the display because currentPacket is only updated during a queue callback.

I have looked at aqofflinrender.cpp and noticed that the offline render is done in a while() loop, managing the run loop and sets an AudioTimeStamp. Is it possible somehow to poll the Audio Queue and find out the current time stamp more frequently somewhat similar to this? Not sure how to go about doing this.

Michael


 _______________________________________________
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

References: 
 >AudioQueue sample time (From: Michael Hanna <email@hidden>)

  • Prev by Date: AudioQueue sample time
  • Next by Date: Re: Bug in AudioHardwareServiceRemovePropertyListener? It doesn't seem to have any effect (sample code as separate download)
  • Previous by thread: AudioQueue sample time
  • Next by thread: ExtAudioFileRead sometimes slow on iPhone
  • Index(es):
    • Date
    • Thread