summaryrefslogtreecommitdiff
path: root/src/audio/sound.c
diff options
context:
space:
mode:
authorTomáš Chvátal <scarabeus@gentoo.org>2009-05-31 15:11:11 +0200
committerTomáš Chvátal <scarabeus@gentoo.org>2009-05-31 15:11:11 +0200
commit439ff17f2782c2bfbc5588743be26511f0de8d0c (patch)
treeb10bc0fc02995cdaf6792070e13c70cd6337b084 /src/audio/sound.c
parent1137fa10f52971ea7418c112a6e38c4a04ea6f31 (diff)
[Audio] Cleanup. Next: make it more abstract to not duplicate various calls.
Diffstat (limited to 'src/audio/sound.c')
-rw-r--r--src/audio/sound.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/audio/sound.c b/src/audio/sound.c
index 58a78ba..15cac69 100644
--- a/src/audio/sound.c
+++ b/src/audio/sound.c
@@ -37,11 +37,10 @@ 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);
- }
}
/*
@@ -92,9 +91,8 @@ 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);
@@ -109,9 +107,8 @@ 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));
}
@@ -137,9 +134,8 @@ bool_t sound_is_active()
*/
void sound_quit()
{
- if (isSoundInit == FALSE) {
+ if (isSoundInit == FALSE)
return;
- }
DEBUG_MSG(_("[Debug] Shutting down sound\n"));