mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-23 02:36:31 +01:00
aplay: fix the test position test for playback (avail > delay)
The avail > delay condition is invalid only for capture, of course. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
19cc5daef4
commit
b8a1e95773
1 changed files with 2 additions and 2 deletions
|
@ -1985,11 +1985,11 @@ static void do_test_position(void)
|
||||||
fprintf(stderr, _("Suspicious status buffer position (%li total): "
|
fprintf(stderr, _("Suspicious status buffer position (%li total): "
|
||||||
"avail = %li, delay = %li, buffer = %li\n"),
|
"avail = %li, delay = %li, buffer = %li\n"),
|
||||||
++counter, (long)savail, (long)sdelay, (long)buffer_frames);
|
++counter, (long)savail, (long)sdelay, (long)buffer_frames);
|
||||||
} else if (avail > delay) {
|
} else if (stream == SND_PCM_STREAM_CAPTURE && avail > delay) {
|
||||||
fprintf(stderr, _("Suspicious buffer position avail > delay (%li total): "
|
fprintf(stderr, _("Suspicious buffer position avail > delay (%li total): "
|
||||||
"avail = %li, delay = %li\n"),
|
"avail = %li, delay = %li\n"),
|
||||||
++counter, (long)avail, (long)delay);
|
++counter, (long)avail, (long)delay);
|
||||||
} else if (savail > sdelay) {
|
} else if (stream == SND_PCM_STREAM_CAPTURE && savail > sdelay) {
|
||||||
fprintf(stderr, _("Suspicious status buffer position avail > delay (%li total): "
|
fprintf(stderr, _("Suspicious status buffer position avail > delay (%li total): "
|
||||||
"avail = %li, delay = %li\n"),
|
"avail = %li, delay = %li\n"),
|
||||||
++counter, (long)savail, (long)sdelay);
|
++counter, (long)savail, (long)sdelay);
|
||||||
|
|
Loading…
Reference in a new issue