Merge branch 'master' of xmp.git.sf.net:/gitroot/xmp/xmp

master
Claudio Matsuoka 14 years ago
commit 8d607541b4
  1. 2
      src/Makefile
  2. 15
      src/main.c

@ -30,5 +30,5 @@ $(SRC_PATH)/sound_beos.o: src/sound_beos.c
install-xmp: $(SRC_PATH)/xmp install-xmp: $(SRC_PATH)/xmp
@echo Installing xmp in $(DESTDIR)$(BINDIR) @echo Installing xmp in $(DESTDIR)$(BINDIR)
@[ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR) @[ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
@$(INSTALL_PROGRAM) $+ $(DESTDIR)$(BINDIR) @$(INSTALL) $+ $(DESTDIR)$(BINDIR)

@ -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;
} }
} }
@ -295,7 +299,7 @@ int main(int argc, char **argv)
if (options.verbose > 0) { if (options.verbose > 0) {
info_mod(&mi); info_mod(&mi);
} }
if (options.verbose == 2) { if (options.verbose > 1) {
info_instruments(&mi); info_instruments(&mi);
} }
@ -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