![](https://secure.gravatar.com/avatar/586424ca0847070dc1868aa58077003e.jpg?s=120&d=mm&r=g)
7 Apr
2016
7 Apr
'16
4:26 p.m.
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