[alsa-devel] Synchonize video with audio playback

Clemens Ladisch clemens at ladisch.de
Thu Apr 7 16:26:23 CEST 2016


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


More information about the Alsa-devel mailing list