• 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
AudioGetCurrentHostTime
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: AudioGetCurrentHostTime
      • From: Jeff Moore <email@hidden>
  • Prev by Date: playback of purchased music in iTunes via core audio
  • Next by Date: audio queue play from memory source
  • Previous by thread: Re: playback of purchased music in iTunes via core audio
  • Next by thread: Re: AudioGetCurrentHostTime
  • Index(es):
    • Date
    • Thread