AudioQueueGetCurrentTime() seems to be ahead of actual playback
AudioQueueGetCurrentTime() seems to be ahead of actual playback
- Subject: AudioQueueGetCurrentTime() seems to be ahead of actual playback
- From: "Andrew E. Davidson" <email@hidden>
- Date: Tue, 31 Mar 2009 15:17:34 -0700
Hi
I recently work adding a UISlider to my iPhone app so that the user
gets rough idea where they are in the playback. I also display elapsed and
remaining time. I noticed, particularly if I loop the song, that the values I
am displaying for elapsed and remaining time see to be off a little. It seems the
value of AudioTimeStamp.mSampleTime returned by AudioQueueGetCurrentTime
== loop end point before the actual playback is at this frame number
Does the value of mSampleTime ==
a) the frame # of the first frame in the current buffer???
b) the frame # of the current frame playing in the hardware???
Or
c) the frame # of the last frame in the buffer currently being
processed by the hardware?
Any other comments or suggestions would be greatly appriciated
Thanks
Andy
p.s. I am testing on an iPhone running 2.2.1
|
_______________________________________________
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