AudioGetCurrentHostTime
AudioGetCurrentHostTime
- Subject: AudioGetCurrentHostTime
- From: IainS <email@hidden>
- Date: Tue, 3 Feb 2009 11:58:30 +0000
Hello,
(this discussion concerns 10.4.11 [intel and ppc] --- a client
constraint, so "change to 10.5" is not a useful option).
I want to reference timestamped data between a non-audio app and an
audio app.
The AudioGetCurrentHostTime/AudioConvertHostTimeToNanos interface
seems like it should do the trick...
(my simplistic expectation was that *host* time would be independent
of presence/absence of a running audio interface).
However, when I call it from an application with no audio context -
the value returned by AudioGetCurrentHostTime doesn't change.
If I call mach_absolute_time() in the same position - this works fine.
So:
1/ Is this expected behavior (i.e. "Audio" host time doesn't change
unless there's an established audio interface in the app)?
2/ Is AudioGetCurrentHostTime == mach_absolute_time() ?
3/ Is there any reason that I might expect a problem calling these
interfaces on multiple threads?
(I have not seen any difficulty when using these interfaces in audio
contexts).
thanks,
Iain
_______________________________________________
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