alsaloop: Fix the silence generation in xrun_sync

GitHub pull_request - opened github at alsa-project.org
Fri Sep 25 14:32:28 CEST 2020


alsa-project/alsa-utils pull request #58 was opened from dragosht:

The silence frames generation in xrun_sync() seems to be currently
a bit off as snd_pcm_format_set_silence() uses a wrong buffer address
and size for zero-ing out the data. Consequently instead of clearing
out the last frame(s), snd_pcm_format_set_silence() ends up silencing
samples somewhere else in the buffer. This is partilarly more obvious
for higher frame size (e.g. when using more than 2 channels).

This patch fixes this issue by correcting the parameters passed to
snd_pcm_format_set_silence().

Signed-off-by: Dragos Tarcatu <dragos_tarcatu at mentor.com>

Request URL   : https://github.com/alsa-project/alsa-utils/pull/58
Patch URL     : https://github.com/alsa-project/alsa-utils/pull/58.patch
Repository URL: https://github.com/alsa-project/alsa-utils


More information about the Alsa-devel mailing list