• 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
AudioDeviceGetCurrentTime fixed when?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AudioDeviceGetCurrentTime fixed when?


  • Subject: AudioDeviceGetCurrentTime fixed when?
  • From: Steve Checkoway <email@hidden>
  • Date: Thu, 27 Oct 2005 20:54:26 -0700

I know that the bug where AudioDeviceGetCurrentTime could return a time in the past was fixed in 10.4. Was this fix backported to any earlier OS X versions, via quicktime updates for example?

Would this code trigger the same bug?

AudioTimeStamp inTime;
AudioTimeStamp outTime;

inTime.mHostTime = AudioGetCurrentHostTime();
inTime.mFlags = kAudioTimeStampHostTimeValid;
outTime.mFlags = kAudioTimeStampSampleTimeValid;
AudioDeviceTranslateTime(mDevice, &inTime, &outTime);
return int64_t(outTime.mSampleTime);

If so, is there another way to get the current time as (should be) returned by AudioDeviceGetCurrentTime()?

- 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


  • Follow-Ups:
    • Re: AudioDeviceGetCurrentTime fixed when?
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Problems adding AudioFilePlayer source to my project
  • Next by Date: Re: Problems adding AudioFilePlayer source to my project
  • Previous by thread: Re: Problems adding AudioFilePlayer source to my project
  • Next by thread: Re: AudioDeviceGetCurrentTime fixed when?
  • Index(es):
    • Date
    • Thread