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

AudioQueue sample time


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

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

  • Follow-Ups:
    • Re: AudioQueue sample time
      • From: Michael Hanna <email@hidden>
  • Prev by Date: Bug in AudioHardwareServiceRemovePropertyListener? It doesn't seem to have any effect (sample code as separate download)
  • Next by Date: Re: AudioQueue sample time
  • Previous by thread: Re: Bug in AudioHardwareServiceRemovePropertyListener? It doesn't seem to have any effect (sample code as separate download)
  • Next by thread: Re: AudioQueue sample time
  • Index(es):
    • Date
    • Thread