[alsa-devel] Synchonize video with audio playback
Hi,
I am new to ALSA. I am trying to implement video and audio playback in my app. I am able to find a lot of sample code for audio playback, but I am wondering what is the best way to synchronize video playback with audio. What kind of timing information can I query through the ALSA interface in terms of the audio playback? Your help is appreciated.
Thanks Steve
______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________
Li, Steve wrote:
I am wondering what is the best way to synchronize video playback with audio. What kind of timing information can I query through the ALSA interface in terms of the audio playback?
snd_pcm_delay() gives you the number of samples currently in the queue between your application and the speaker.
Regards, Clemens
participants (2)
-
Clemens Ladisch
-
Li, Steve