Change API function names

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
master
Claudio Matsuoka 14 years ago
parent 609783d8cc
commit 0f089b1614
  1. 18
      src/commands.c
  2. 2
      src/main.c

@ -107,37 +107,37 @@ void read_command(xmp_context handle, struct control *ctl)
case 'B': case 'B':
goto cmd_prev_mod; goto cmd_prev_mod;
case 'C': case 'C':
goto cmd_next_ord; goto cmd_next_pos;
case 'D': case 'D':
goto cmd_prev_ord; goto cmd_prev_pos;
} }
break; break;
case 'q': /* quit */ case 'q': /* quit */
cmd_quit: cmd_quit:
xmp_mod_stop(handle); xmp_stop_module(handle);
ctl->pause = 0; ctl->pause = 0;
ctl->skip = -2; ctl->skip = -2;
break; break;
case 'f': /* jump to next order */ case 'f': /* jump to next order */
cmd_next_ord: cmd_next_pos:
xmp_ord_next(handle); xmp_next_position(handle);
ctl->pause = 0; ctl->pause = 0;
break; break;
case 'b': /* jump to previous order */ case 'b': /* jump to previous order */
cmd_prev_ord: cmd_prev_pos:
xmp_ord_prev(handle); xmp_prev_position(handle);
ctl->pause = 0; ctl->pause = 0;
break; break;
case 'n': /* skip to next module */ case 'n': /* skip to next module */
cmd_next_mod: cmd_next_mod:
xmp_mod_stop(handle); xmp_stop_module(handle);
ctl->pause = 0; ctl->pause = 0;
ctl->skip = 1; ctl->skip = 1;
break; break;
case 'p': /* skip to previous module */ case 'p': /* skip to previous module */
cmd_prev_mod: cmd_prev_mod:
xmp_mod_stop(handle); xmp_stop_module(handle);
ctl->pause = 0; ctl->pause = 0;
ctl->skip = -1; ctl->skip = -1;
break; break;

@ -216,7 +216,7 @@ int main(int argc, char **argv)
control.loop = options.loop; control.loop = options.loop;
if (xmp_player_start(handle, options.freq, options.format) == 0) { if (xmp_player_start(handle, options.freq, options.format) == 0) {
xmp_ord_set(handle, options.start); xmp_set_position(handle, options.start);
/* Mute channels */ /* Mute channels */

Loading…
Cancel
Save