• 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: "Dave O'Neill" <email@hidden>
  • Date: Mon, 13 Apr 2015 11:08:05 -0700

Thank you!!!!

My problem was that I was just connecting the output unit to a mixer, then grabbing the audio data and timeStamp through a render notify (which must be the output timestamp).  I followed your instruction and set it up with kAudioOutputUnitProperty_SetInputCallback and am now getting predictable (and sensible) timestamps. Now all I have to do is go through everything and un-hack my hacky latency compensation.

Thank you,
Dave


On Mon, Apr 13, 2015 at 10:36 AM, Dan Klingler <email@hidden> wrote:
> How can a future time stamp represent a buffer of samples from the microphone that has already been captured.


You’re correct, host time for an input buffer should be less than mach_absolute_time(). For input, you should look at the timestamp that’s passed to you as part of your input callback (the one set on the AU with kAudioOutputUnitProperty_SetInputCallback). I would expect this host time to be less than mach_absolute_time().

For input, you’re the one calling AudioUnitRender (from the input callback), so you should call AudioUnitRender with the timestamp you get in the input callback.

Dan

 _______________________________________________
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

References: 
 >Re: AudioTimeStamp in AURenderCallback (From: Dan Klingler <email@hidden>)
 >Re: AudioTimeStamp in AURenderCallback (From: "Dave O'Neill" <email@hidden>)
 >Re: AudioTimeStamp in AURenderCallback (From: Dan Klingler <email@hidden>)

  • Prev by Date: Re: AudioTimeStamp in AURenderCallback
  • Next by Date: avfoundation “error -10868”
  • Previous by thread: Re: AudioTimeStamp in AURenderCallback
  • Next by thread: creating au plugin for custom synth??? need some help
  • Index(es):
    • Date
    • Thread