summaryrefslogtreecommitdiff
path: root/src/sound/sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sound/sound.cpp')
-rw-r--r--src/sound/sound.cpp28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/sound/sound.cpp b/src/sound/sound.cpp
index 3df95e65..078d0f91 100644
--- a/src/sound/sound.cpp
+++ b/src/sound/sound.cpp
@@ -174,15 +174,15 @@ void TmwSound::StartMIDI(char *in, int loop) {
and S3M (in UMX extension)
*/
void TmwSound::StartMOD(char * in, int loop) {
- if(isOk==-1)
- return;
-
- mod = load_mod(in);
- if(!mod) {
- isOk=-1;
- throw("Error reading MOD file...");
- }
- play_mod(mod, TRUE);
+ if(isOk==-1)
+ return;
+
+ mod = load_mod(in);
+ if(!mod) {
+ isOk=-1;
+ throw("Error reading MOD file...");
+ }
+ play_mod(mod, TRUE);
}
/**
@@ -291,9 +291,11 @@ void TmwSound::Close(void) {
isOk = -1;
}
-/** PRIVATE */
-
+/**
+ checks if value equals min-/maximum volume and returns
+ true if that's the case.
+*/
bool TmwSound::isMaxVol(int vol) {
- if( vol > 0 && vol < 255 ) return false;
- else return true;
+ if( vol > 0 && vol < 255 ) return false;
+ else return true;
}