Core Audio Clock Timestamps and plugging in Headphones
Core Audio Clock Timestamps and plugging in Headphones
- Subject: Core Audio Clock Timestamps and plugging in Headphones
- From: Jonathan Watson <email@hidden>
- Date: Thu, 14 Jul 2011 16:18:37 +0100
Hi,
I'm playing back an audio stream using the Default Output Audio Unit and I'm using CAClock functions to get a timestamp to synchronise some video. Something like this:
err = CAClockGetCurrentTime(aClockRef, kCAClockTimeFormat_Seconds, &inTimeStamp);
This works fine most of the time but when I plug or unplug headphones, the time taken to switch devices is not reflected in the timestamps I receive from the CAClock functions. Obviously the knock on effect of this is that my video goes out of sync.
Can anyone shed any light on the best way to workaround this and adjust for the time taken to switch devices?
Thanks,
Jon.
_______________________________________________
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