Sync Quicktime and CoreAudio
Sync Quicktime and CoreAudio
- Subject: Sync Quicktime and CoreAudio
- From: Geoff Hufford <email@hidden>
- Date: Wed, 17 May 2006 10:38:50 -0500
I am playing a QT video with sound (displayed in the Cocoa movie controller), and have a CoreAudio graph that is pulling multiple streams of audio from the hard disk. My current method of synchronizing the two is very LOW TECH - I tell the QT controller to play, and start the Graph. At some unknown point in the future both media devices are going make sound. They are generally <.1 second apart but it is variable.
I would now like to implement an approach that is more precise. The first steps I have taken is that the CA file players I am using will preload the buffers from disk so that there is the least amount of time between the StartGraph and when we hear sound. In the QT controller I am looking at the ActionCallback mcActionPlay because it is the closest point to actual playback that I am aware of. These may shorten the time between start and actual play, but what I am hoping exists is a more precise method.
Are there any better approaches I should be trying?
Thanks, Geoff Hufford
|
_______________________________________________
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