--- SIDPlayer/src/main_sdl.cpp 2001/01/21 18:42:24 1.7 +++ 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" @@ -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