• 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
Core Audio Clock Timestamps and plugging in Headphones
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Problems with alSourceQueueBuffers
  • Next by Date: Re: Different behavior between simulator and device
  • Previous by thread: Problems with alSourceQueueBuffers
  • Next by thread: QuickTime won't record through my driver
  • Index(es):
    • Date
    • Thread