From 753131cf9b32315fdd11f2ce6e58b8f2d6ba3bc1 Mon Sep 17 00:00:00 2001 From: Michal Zima Date: Sun, 6 Dec 2009 22:58:26 +0100 Subject: Revised methods how are translated strings handled Few comments were made available to Doxygen --- src/audio/sound.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/audio/sound.c') 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; -- cgit v1.2.3