summaryrefslogtreecommitdiff
path: root/src/audio/sound.c
diff options
context:
space:
mode:
authorMichal Zima <xhire@mujmalysvet.cz>2009-12-06 22:58:26 +0100
committerMichal Zima <xhire@mujmalysvet.cz>2009-12-06 22:58:26 +0100
commit753131cf9b32315fdd11f2ce6e58b8f2d6ba3bc1 (patch)
treecfbded574ded7c3c666de6211877469ff6a95d75 /src/audio/sound.c
parenta0939379bb1185ee6d66739d9d021466d5d89624 (diff)
Revised methods how are translated strings handled
Few comments were made available to Doxygen
Diffstat (limited to 'src/audio/sound.c')
-rw-r--r--src/audio/sound.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/audio/sound.c b/src/audio/sound.c
index f45ed80..79a152d 100644
--- a/src/audio/sound.c
+++ b/src/audio/sound.c
@@ -31,7 +31,7 @@ void sound_init()
return;
}
- DEBUG_MSG(_("[Debug] Initializing sound\n"));
+ debug("Initializing sound");
listStorage = storage_new();
isSoundInit = TRUE;
@@ -52,14 +52,14 @@ static Mix_Chunk *loadMixSound(char *file)
Mix_Chunk *new;
char str[STR_PATH_SIZE];
- DEBUG_MSG(_("[Debug] Loading sound [%s]\n"), file);
+ debug("Loading sound [%s]", file);
sprintf(str, PATH_SOUND "%s", file);
accessExistFile(str);
new = Mix_LoadWAV(str);
if (new == NULL) {
- fprintf(stderr, _("[Error] Unable to load sound [%s]: %s\n"), str, Mix_GetError());
+ error("Unable to load sound [%s]: %s", str, Mix_GetError());
return NULL;
}
@@ -72,7 +72,7 @@ static Mix_Chunk *loadMixSound(char *file)
static void playMixSound(Mix_Chunk *p)
{
if (Mix_PlayChannel(-1, p, 0) == -1) {
- fprintf(stderr, _("[Error] Unable to play sound: %s\n"), Mix_GetError());
+ error("Unable to play sound: %s", Mix_GetError());
return;
}
}
@@ -141,7 +141,7 @@ void sound_quit()
return;
}
- DEBUG_MSG(_("[Debug] Shutting down sound\n"));
+ debug("Shutting down sound");
storage_destroy(listStorage, destroySound);
isSoundInit = FALSE;