Skip to contentSkip to conversation

alsaloop: Fix the silence generation in xrun_sync

DISCUSSION GitHub pull_request - opened 1 participant 1 message Sep 25, 2020 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

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().

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