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

Re: AudioTimeStamp in AURenderCallback


  • Subject: Re: AudioTimeStamp in AURenderCallback
  • From: Paul Davis <email@hidden>
  • Date: Wed, 22 Oct 2014 15:44:53 -0400

as a host author (and thus responsible for the value of mSampleTime), i can tell you that it corresponds to the *transport* position of the first sample to be processed as part of the render callback.

On Wed, Oct 22, 2014 at 3:38 PM, Dave O'Neill <email@hidden> wrote:
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.

as a host author (and thus responsible for the value of mSampleTime), i can tell you that nothing I could find in any specs for the AudioUnit specification defines this value, and that in my host(s), it will be the count of the number of samples so far processed by the host since the last audio I/O reset, corresponding to the first sample to be processed by the render callback.
 _______________________________________________
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>
References: 
 >AudioTimeStamp in AURenderCallback (From: "Dave O'Neill" <email@hidden>)

  • Prev by Date: AudioTimeStamp in AURenderCallback
  • Next by Date: Re: AudioTimeStamp in AURenderCallback
  • Previous by thread: AudioTimeStamp in AURenderCallback
  • Next by thread: Re: AudioTimeStamp in AURenderCallback
  • Index(es):
    • Date
    • Thread