--- SIDPlayer/src/main_sdl.cpp 2001/01/21 18:04:46 1.6 +++ SIDPlayer/src/main_sdl.cpp 2001/05/22 20:01:34 1.10 @@ -21,8 +21,11 @@ #include "sys.h" #include +#include + #include #include +#include #include "main.h" #include "prefs.h" @@ -35,7 +38,7 @@ static void usage(const char *prg_name) { - printf("Usage: %s [OPTION...] FILE [song_number]]\n", prg_name); + printf("Usage: %s [OPTION...] FILE [song_number]\n", prg_name); PrefsPrintUsage(); exit(0); } @@ -66,25 +69,26 @@ int main(int argc, char **argv) } atexit(quit); InitAll(argc, argv); - int32 selected_speed = PrefsFindInt32("speed"); + int32 speed = PrefsFindInt32("speed"); // Parse non-option arguments - if (argc < 2) - usage(argv[0]); - char *file_name = argv[argc - 1]; + const char *file_name = NULL; int song = 0; - if (argc >= 3) { - bool only_numbers = true; - for (int i=0; i 8) { + // WAV file is little-endian, swap audio data + for (int b=0; b