--- SIDPlayer/src/main_beos.cpp 2001/01/04 19:54:13 1.3 +++ SIDPlayer/src/main_beos.cpp 2003/10/21 16:56:19 1.7 @@ -1,7 +1,7 @@ /* * main_beos.cpp - SIDPlayer BeOS main program * - * 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 @@ -29,6 +29,7 @@ #include "main.h" #include "prefs_window.h" +#include "sid.h" // Message codes @@ -297,7 +298,7 @@ void SIDPlayer::MessageReceived(BMessage void SIDPlayer::ReadyToRun(void) { main_window = new MainWindow(); - if (psid_loaded) + if (IsPSIDLoaded()) main_window->PostMessage(MSG_NEW_MODULE); } @@ -306,13 +307,13 @@ void SIDPlayer::ReadyToRun(void) * Show About window */ -void AboutWindow(void) +void AboutWindow() { BAlert *theAlert = new BAlert("", "SIDPlayer\nVersion " VERSION "\n\n" - "Copyright " B_UTF8_COPYRIGHT " 1996-2000 Christian Bauer\n" + "Copyright " B_UTF8_COPYRIGHT " 1996-2003 Christian Bauer\n" "E-mail: Christian.Bauer@uni-mainz.de\n" - "http://www.uni-mainz.de/~bauec002/\n\n" + "http://www.uni-mainz.de/~bauec002/SPMain.html\n\n" "SIDPlayer comes with ABSOLUTELY NO\n" "WARRANTY. This is free software, and\n" "you are welcome to redistribute it\n" @@ -640,6 +641,26 @@ void PrevButton::Draw(BRect update) } +/* + * Get current value of microsecond timer + */ + +uint64 GetTicks_usec() +{ + return system_time(); +} + + +/* + * Delay by specified number of microseconds (<1 second) + */ + +void Delay_usec(uint32 usec) +{ + snooze(usec); +} + + /* * Main program */