diff options
| author | Michal Zima <xhire@mujmalysvet.cz> | 2009-12-06 22:58:26 +0100 |
|---|---|---|
| committer | Michal Zima <xhire@mujmalysvet.cz> | 2009-12-06 22:58:26 +0100 |
| commit | 753131cf9b32315fdd11f2ce6e58b8f2d6ba3bc1 (patch) | |
| tree | cfbded574ded7c3c666de6211877469ff6a95d75 /src/audio/music.c | |
| parent | a0939379bb1185ee6d66739d9d021466d5d89624 (diff) | |
Revised methods how are translated strings handled
Few comments were made available to Doxygen
Diffstat (limited to 'src/audio/music.c')
| -rw-r--r-- | src/audio/music.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/audio/music.c b/src/audio/music.c index 90dd321..9834630 100644 --- a/src/audio/music.c +++ b/src/audio/music.c @@ -33,7 +33,7 @@ void music_init() return; } - DEBUG_MSG(_("[Debug] Initializing music\n")); + debug("Initializing music"); listStorage = storage_new(); currentMusic = NULL; @@ -55,7 +55,7 @@ static Mix_Music *loadMixMusic(char *file) Mix_Music *mixer; char str[STR_PATH_SIZE]; - DEBUG_MSG(_("[Debug] Loading music [%s]\n"), file); + debug("Loading music [%s]", file); if (isFillPath(file)) { strcpy(str, file); @@ -68,7 +68,7 @@ static Mix_Music *loadMixMusic(char *file) mixer = Mix_LoadMUS(str); if (mixer == NULL) { - fprintf(stderr, _("[Error] Unable to load music [%s]\n"), file); + error("Unable to load music [%s]", file); return NULL; } @@ -122,7 +122,7 @@ void music_stop() } if (currentMusic != NULL) { - DEBUG_MSG(_("[Debug] Stopping playing music\n")); + debug("Stopping playing music"); Mix_HaltMusic(); currentMusic = NULL; @@ -163,7 +163,7 @@ void music_play(char *name, char *group) strcpy(currentMusic_name, name); if (currentMusic != NULL) { - DEBUG_MSG(_("[Debug] Playing music [%s]\n"), name); + debug("Playing music [%s]", name); playMixMusic(); } @@ -224,7 +224,7 @@ void music_quit() return; } - DEBUG_MSG(_("[Debug] Shutting down music\n")); + debug("Shutting down music"); music_stop(); storage_destroy(listStorage, destroyMusic); |