mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:45:41 +01:00
aplay: add avail > delay checks to --test-position
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
03e98d2806
commit
05ebe64b2d
1 changed files with 8 additions and 0 deletions
|
@ -1985,6 +1985,14 @@ static void do_test_position(void)
|
|||
fprintf(stderr, _("Suspicious status buffer position (%li total): "
|
||||
"avail = %li, delay = %li, buffer = %li\n"),
|
||||
++counter, (long)savail, (long)sdelay, (long)buffer_frames);
|
||||
} else if (avail > delay) {
|
||||
fprintf(stderr, _("Suspicious buffer position avail > delay (%li total): "
|
||||
"avail = %li, delay = %li\n"),
|
||||
++counter, (long)avail, (long)delay);
|
||||
} else if (savail > sdelay) {
|
||||
fprintf(stderr, _("Suspicious status buffer position avail > delay (%li total): "
|
||||
"avail = %li, delay = %li\n"),
|
||||
++counter, (long)savail, (long)sdelay);
|
||||
} else if (verbose) {
|
||||
time(&now);
|
||||
if (tmr == (time_t) -1) {
|
||||
|
|
Loading…
Reference in a new issue