• 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: Dan Klingler <email@hidden>
  • Date: Mon, 13 Apr 2015 10:36:59 -0700

> 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


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

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