• 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
AudioQueueGetCurrentTime() seems to be ahead of actual playback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Writing little-endian AIFF/AIFC files
  • Next by Date: iPhone silent switch state
  • Previous by thread: Re: audio unit panners and channel map
  • Next by thread: iPhone silent switch state
  • Index(es):
    • Date
    • Thread