Skip to contentSkip to conversation

Fix for arecord recording ghost data

DISCUSSION GitHub pull_request - opened 1 participant 1 message May 24, 2022 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 #150 was opened from amadeuszslawinski-intel:

We noticed the issue in our tests, when using arecord would produce files with glitches at recording end.

Apparently it was caused by writing full buffer to output file instead of the data read, when stopping recording. Following commit adjust the code to only write the amount of data that was read and making sure that file size matches internal format data.

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