Re: AudioQueue sample time
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