diff options
author | tron <tron@openttd.org> | 2004-11-15 12:15:03 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2004-11-15 12:15:03 +0000 |
commit | fb4b5fa841533cbf48727f068e6a704455bdaa97 (patch) | |
tree | 1da3c903be9ae6e03c5809cd2ae0a82c4e673bc8 | |
parent | 6da3e44fc7e662001a50b19e225b87fc7e7f6d73 (diff) | |
download | openttd-fb4b5fa841533cbf48727f068e6a704455bdaa97.tar.xz |
(svn r628) Merge r442 to trunk:
In bemidi.cpp
- Whitespace cleanup
- Simplify one if ()
-rw-r--r-- | bemidi.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/bemidi.cpp b/bemidi.cpp index 8c0ea4e1e..d0f41d865 100644 --- a/bemidi.cpp +++ b/bemidi.cpp @@ -9,15 +9,18 @@ BMidiSynthFile midiSynthFile; -static char *bemidi_start(char **parm) { - return NULL; +static char *bemidi_start(char **parm) +{ + return NULL; } -static void bemidi_stop(void) { - midiSynthFile.UnloadFile(); +static void bemidi_stop(void) +{ + midiSynthFile.UnloadFile(); } -static void bemidi_play_song(const char *filename) { +static void bemidi_play_song(const char *filename) +{ bemidi_stop(); entry_ref midiRef; get_ref_for_path(filename, &midiRef); @@ -25,22 +28,19 @@ static void bemidi_play_song(const char *filename) { midiSynthFile.Start(); } -static void bemidi_stop_song(void) { +static void bemidi_stop_song(void) +{ midiSynthFile.UnloadFile(); } -static bool bemidi_is_playing(void) { - if(midiSynthFile.IsFinished() == true) - { - return 0; - } else { - return 1; - } +static bool bemidi_is_playing(void) +{ + return !midiSynthFile.IsFinished(); } - -static void bemidi_set_volume(byte vol) { - fprintf(stderr, "BeMidi: Set volume not implemented\n"); +static void bemidi_set_volume(byte vol) +{ + fprintf(stderr, "BeMidi: Set volume not implemented\n"); } const HalMusicDriver _bemidi_music_driver = { |