]> git.alsa-project.org Git - alsa-utils.git/commit
arecord: use correct duration
authorTj <hacker@iam.tj>
Sat, 15 Apr 2023 09:25:16 +0000 (10:25 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 3 May 2023 14:26:22 +0000 (16:26 +0200)
commit42bba8ac6113710317cf19bafd5da246f72056bf
tree9fa7cec830fb831c2e6dd907c5d31afc39d33ce7
parent52f6fb7f3386d4ecc1481d88bd0bd2b7e47c1332
arecord: use correct duration

When a duration is specified but the the capture device cannot use the
requested sample rate and an alternative rate is used the duration
sample count must be (re)calculated.

Fixes: https://github.com/alsa-project/alsa-utils/pull/200
Signed-off-by: Tj <hacker@iam.tj>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
aplay/aplay.c