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

AudioTimeStamp in AURenderCallback


  • Subject: AudioTimeStamp in AURenderCallback
  • From: "Dave O'Neill" <email@hidden>
  • Date: Wed, 22 Oct 2014 12:38:52 -0700

I have a question regarding the relationship of The AudioTimeStamp argument to an AURenderCallback to the time the callback is called.  Does .mSampleTime represent the first or last sample in ioData? And likewise, does .mHostTime represent the time at which the last sample will be played or the first sample. This came up when I was comparing mach_absolute_time() with .mHostTime, mach_absoluteTime returns a time earlier than .mHostTime by more than a full render-cycle’s time.

eg.
this is within the render callback:
 .mTimeStamp 596308229634
mach_absolute 596307650014

and the next callback:
.mTimeStamp 596308786905
mach_absolute 596308201079

You can see that the machine time in the second callback is even earlier than the host time of the first.

Thanks for any help,
Dave
 _______________________________________________
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: AudioTimeStamp in AURenderCallback
      • From: Paul Davis <email@hidden>
  • Prev by Date: Re: Using VoiceProcessingIO Audio Unit
  • Next by Date: Re: AudioTimeStamp in AURenderCallback
  • Previous by thread: Re: Using VoiceProcessingIO Audio Unit
  • Next by thread: Re: AudioTimeStamp in AURenderCallback
  • Index(es):
    • Date
    • Thread