Re: Audio Playback Latency
Re: Audio Playback Latency
- Subject: Re: Audio Playback Latency
- From: Brian Willoughby <email@hidden>
- Date: Tue, 13 Jan 2009 17:01:15 -0800
I'm not sure that this answers your question, but you can query the
audio output device for its latency (be sure to add the multiple
latency values for the device stream and channels) and any AudioUnits
in your signal path. The sum total of all latencies along the way
will tell you the difference between "now" and when the audio will be
heard. Check the mailing list archives for more detailed discussion.
Brian Willoughby
Sound Consulting
On Jan 13, 2009, at 14:26, Andrew Butcher wrote:
I need a way to accurately get a time stamp for when playback from a
speaker begins. Any constant latency between the timestamp and
playback is perfectly acceptable in my application, but variations
between the timestamp and actual playback time are very problematic.
Can anyone suggest a highly accurate way of getting a timestamp for
when playback begins? I've tried grabbing the time from the render
callback, but it doesn't seem to be any more accurate. I've got a
mean playback time that varies on the size of my buffer, but a
standard deviation of about 4ms that I can't seem to reduce.
_______________________________________________
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