Re: Audio Playback Latency
Re: Audio Playback Latency
- Subject: Re: Audio Playback Latency
- From: "Andrew Butcher" <email@hidden>
- Date: Wed, 14 Jan 2009 16:04:11 -0700
Hi Brian,
I've searched the archives, and I've found information on computing latency and reducing latency, but I haven't found anything regarding the amount of variability in latency. I would take take as much as a 1 second delay, if it was constant, and always exactly 1 second.
Thanks,
Andrew.
On Tue, Jan 13, 2009 at 6:01 PM, Brian Willoughby
<email@hidden> wrote:
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