[xmp] Don't show pause message if running quiet

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
master
Claudio Matsuoka 14 years ago
parent 1951c7fb97
commit 63776ab782
  1. 13
      src/main.c

@ -119,17 +119,21 @@ static void shuffle(int argc, char **argv)
} }
static void check_pause(xmp_context handle, struct control *ctl, static void check_pause(xmp_context handle, struct control *ctl,
struct xmp_module_info *mi) struct xmp_module_info *mi, int verbose)
{ {
if (ctl->pause) { if (ctl->pause) {
sound->pause(); sound->pause();
info_frame(mi, ctl, 1); if (verbose) {
info_frame(mi, ctl, 1);
}
while (ctl->pause) { while (ctl->pause) {
usleep(100000); usleep(100000);
read_command(handle, ctl); read_command(handle, ctl);
if (ctl->display) { if (ctl->display) {
show_info(ctl->display, mi); show_info(ctl->display, mi);
info_frame(mi, ctl, 1); if (verbose) {
info_frame(mi, ctl, 1);
}
ctl->display = 0; ctl->display = 0;
} }
} }
@ -335,7 +339,8 @@ int main(int argc, char **argv)
break; break;
} }
check_pause(handle, &control, &mi); check_pause(handle, &control, &mi,
options.verbose);
options.start = 0; options.start = 0;
} }

Loading…
Cancel
Save