From c9de7c64417f836358298a83e98a11e413892ac2 Mon Sep 17 00:00:00 2001 From: Alexander Baldeck Date: Wed, 29 Sep 2004 06:38:54 +0000 Subject: *** empty log message *** --- src/main.cpp | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index b9b791ab..62f3eba1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -111,18 +111,19 @@ void exit_engine() { /** Main */ int main() { init_engine(); - // initialize sound-engine and start playing intro-theme /-kth5 - try{ - if(get_config_int("settings", "sound", 0)==1) - sound.Init(32,20); // inits the sound-subsystem w/ 32 voices / 20 for mod - sound.SetVol(128,128,128); // sets intial volume parameters - //#ifdef WIN32 - //sound.StartMIDI("Sound/Midis/city.mid",-1); // play a midi file - //#endif - }catch(const char * err){ // catch errors and show appropriate messages on-screen (elven plz... ^^) - ok("Sound Engine", err); - warning(err); - } + // initialize sound-engine and start playing intro-theme /-kth5 + try{ + if(get_config_int("settings", "sound", 0)==1) + sound.Init(32,20); // inits the sound-subsystem w/ 32 voices / 20 for mod + sound.SetVol(128,128,128); // sets intial volume parameters + //#ifdef WIN32 + //sound.StartMIDI("Sound/Midis/city.mid",-1); // play a midi file + //#endif + //sound.LoadItem("test.wav", TMWSOUND_SFX); + }catch(const char * err){ // catch errors and show appropriate messages on-screen (elven plz... ^^) + ok("Sound Engine", err); + warning(err); + } while(state!=EXIT) { switch(state) { -- cgit v1.2.3-70-g09d2