]> git.alsa-project.org Git - alsa-utils.git/commit
aplay: capture: write only the amount of read frames
authorMarcin Rajwa <marcin.rajwa@linux.intel.com>
Fri, 7 Aug 2020 14:17:25 +0000 (16:17 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 6 Oct 2020 10:58:20 +0000 (12:58 +0200)
commit9b02b42db48d4c202afcaf5001019534f30f6c96
tree259b332048a16fbb423fab76e41adfe67e76698a
parent5e87e2e0210dd6bd97cbfdfa94a537f31adaaaf6
aplay: capture: write only the amount of read frames

This patch changes the way aborted stream is being saved. Currently when
abort signal happens the write back of read samples is skipped but there
is no reason to not save them. Also, we need to know how much frames have
been read and write only those.

Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
aplay/aplay.c