diff options
| author | xHire <xhire@tuxportal.cz> | 2009-06-01 23:52:32 +0200 |
|---|---|---|
| committer | xHire <xhire@tuxportal.cz> | 2009-06-01 23:52:32 +0200 |
| commit | bf78e40b5979ea76bdcb1b67037d2ca8cbc0890d (patch) | |
| tree | 667039eb18299bf35e9b47adf4080523c4bb15b7 /src/audio/sound.c | |
| parent | 439ff17f2782c2bfbc5588743be26511f0de8d0c (diff) | |
Revert "[Audio] Cleanup. Next: make it more abstract to not duplicate various calls."
Reverting as it was *only* breaking our coding style
This reverts commit 439ff17f2782c2bfbc5588743be26511f0de8d0c.
Diffstat (limited to 'src/audio/sound.c')
| -rw-r--r-- | src/audio/sound.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/audio/sound.c b/src/audio/sound.c index 15cac69..58a78ba 100644 --- a/src/audio/sound.c +++ b/src/audio/sound.c @@ -37,10 +37,11 @@ void sound_init() isSoundInit = TRUE; var_sound_is_active = TRUE; - if (isParamFlag("--no-sound")) + if (isParamFlag("--no-sound")) { sound_set_active(FALSE); - else if (isParamFlag("--sound")) + } else if (isParamFlag("--sound")) { sound_set_active(TRUE); + } } /* @@ -91,8 +92,9 @@ void sound_add(char *file, char *name, char *group) { Mix_Chunk *new; - if (isSoundInit == FALSE) + if (isSoundInit == FALSE) { return; + } assert(file != NULL); assert(name != NULL); @@ -107,8 +109,9 @@ void sound_add(char *file, char *name, char *group) */ void sound_play(char *name, char *group) { - if (isSoundInit == FALSE || var_sound_is_active == FALSE) + if (isSoundInit == FALSE || var_sound_is_active == FALSE) { return; + } playMixSound(storage_get(listStorage, group, name)); } @@ -134,8 +137,9 @@ bool_t sound_is_active() */ void sound_quit() { - if (isSoundInit == FALSE) + if (isSoundInit == FALSE) { return; + } DEBUG_MSG(_("[Debug] Shutting down sound\n")); |