1
0
mirror of http://mpg123.de/trunk/.git synced 2025-10-23 16:48:31 +03:00

mpg123/term control: more stat line clearing, for pitch and info printout

git-svn-id: svn://scm.orgis.org/mpg123/trunk@4664 35dc7657-300d-0410-a2e5-dc2837fedb53
This commit is contained in:
thor
2020-04-27 07:26:15 +00:00
parent a44337e738
commit 9dda9fbdfe

View File

@@ -405,13 +405,13 @@ static void term_handle_key(mpg123_handle *fr, out123_handle *ao, char val)
case MPG123_PITCH_BDOWN_KEY: new_pitch -= MPG123_PITCH_BVAL; break;
case MPG123_PITCH_ZERO_KEY: new_pitch = 0.0; break;
}
if(param.verbose)
print_stat(fr,offset,ao,0,&param);
set_pitch(fr, ao, new_pitch);
if(param.verbose > 1)
{
print_stat(fr,0,ao,0,&param);
fprintf(stderr, "\nNew pitch: %f\n", param.pitch);
if(param.verbose)
print_stat(fr,0,ao,1,&param);
}
}
break;
case MPG123_VERBOSE_KEY:
@@ -484,7 +484,11 @@ static void term_handle_key(mpg123_handle *fr, out123_handle *ao, char val)
break;
case MPG123_FRAME_INDEX_KEY:
case MPG123_VARIOUS_INFO_KEY:
if(param.verbose) fprintf(stderr, "\n");
if(param.verbose)
{
print_stat(fr,0,ao,0,&param);
fprintf(stderr, "\n");
}
switch(val) /* because of tolower() ... */
{
case MPG123_FRAME_INDEX_KEY: