--- SIDPlayer/src/main.h 2000/07/28 12:42:30 1.1 +++ SIDPlayer/src/main.h 2003/04/11 20:23:02 1.6 @@ -1,7 +1,7 @@ /* - * main.h - SIDPlayer main program + * main.h - SIDPlayer common routines * - * SIDPlayer (C) Copyright 1996-2000 Christian Bauer + * SIDPlayer (C) Copyright 1996-2003 Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -31,16 +31,19 @@ // C64 replay routine address (set by LoadPSIDFile(), used by sid.cpp) extern uint16 play_adr; -// Module name, author name, copyright info in UTF8 charset (set by LoadPSIDFile()) +// Module name, author name, copyright info in ISO Latin1 (BeOS: UTF8) charset (set by LoadPSIDFile()) extern char module_name[64], author_name[64], copyright_info[64]; +// Total number of songs in module and currently played song number (0..n) +extern int number_of_songs, current_song; + /* * Functions */ // Init everything -extern void InitAll(void); +extern void InitAll(int &argc, char **&argv); // Exit everything extern void ExitAll(void); @@ -57,6 +60,9 @@ extern bool IsPSIDFile(const char *file) // Load PSID file for playing extern bool LoadPSIDFile(const char *file); +// PSID file loaded and ready? +extern bool IsPSIDLoaded(void); + // Select song for playing extern void SelectSong(int num);