Re: AudioTimeStamp in AURenderCallback
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