mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:05:42 +01:00
aplay: Fix VU-meter stdout/stderr mess
Commit 6bbeb78d
forgot to change some of VU-meter output to stderr.
This patch makes the output of `aplay -vvv` consistent again.
Signed-off-by: Sergey <sergemp@mail.ru>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
3a7c1c59ec
commit
a9705ca48f
1 changed files with 3 additions and 3 deletions
|
@ -1774,12 +1774,12 @@ static void compute_max_peak(u_char *data, size_t count)
|
|||
fflush(stderr);
|
||||
}
|
||||
else if(verbose==3) {
|
||||
printf(_("Max peak (%li samples): 0x%08x "), (long)ocount, max_peak[0]);
|
||||
fprintf(stderr, _("Max peak (%li samples): 0x%08x "), (long)ocount, max_peak[0]);
|
||||
for (val = 0; val < 20; val++)
|
||||
if (val <= perc[0] / 5)
|
||||
putchar('#');
|
||||
putc('#', stderr);
|
||||
else
|
||||
putchar(' ');
|
||||
putc(' ', stderr);
|
||||
fprintf(stderr, " %i%%\n", perc[0]);
|
||||
fflush(stderr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue