Re: Audio Unit/AudioConverter and getting what's playing *now*
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