diff options
author | Alexander Baldeck <alexander@archlinux.org> | 2004-09-29 06:38:54 +0000 |
---|---|---|
committer | Alexander Baldeck <alexander@archlinux.org> | 2004-09-29 06:38:54 +0000 |
commit | c9de7c64417f836358298a83e98a11e413892ac2 (patch) | |
tree | 9ac678ff192f605af34a3c328d35a35e3f6c49d4 /src/main.cpp | |
parent | 8b103d2faedce48d4e50fb4b609d20995a046cc4 (diff) | |
download | mana-c9de7c64417f836358298a83e98a11e413892ac2.tar.gz mana-c9de7c64417f836358298a83e98a11e413892ac2.tar.bz2 mana-c9de7c64417f836358298a83e98a11e413892ac2.tar.xz mana-c9de7c64417f836358298a83e98a11e413892ac2.zip |
*** empty log message ***
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 25 |
1 files 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) { |