• 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: Audio Unit/AudioConverter and getting what's playing *now*
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audio Unit/AudioConverter and getting what's playing *now*


  • Subject: Re: Audio Unit/AudioConverter and getting what's playing *now*
  • From: Steve Checkoway <email@hidden>
  • Date: Fri, 22 Oct 2004 21:42:49 -0700


On Oct 22, 2004, at 9:41 AM, Doug Wyatt wrote:
AudioDeviceGetCurrentTime() does return the current hardware sample number. This is actually an arbitrary number; it will start at something other than 0 in many situations (e.g. if another process was already playing sound when yours started). This time also has nothing to do with the current buffer you're playing; it is the HAL's computation of what sample number is currently hitting the hardware.

One thing to keep in mind is that AudioDeviceGetCurrentTime() is not monotonic, at least not with the stock hardware on a G5 or a G4. It can go backward. I filed a bug report about this a long time ago. (Still no word as usual.) There must be a way of getting the correct current time.


- Steve

_______________________________________________
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: 
 >Audio Unit/AudioConverter and getting what's playing *now* (From: Simon Fraser <email@hidden>)
 >Re: Audio Unit/AudioConverter and getting what's playing *now* (From: Doug Wyatt <email@hidden>)

  • Prev by Date: AU ramp automation
  • Next by Date: Crash on CloseComponent
  • Previous by thread: Re: Audio Unit/AudioConverter and getting what's playing *now*
  • Next by thread: AU ramp automation
  • Index(es):
    • Date
    • Thread