From 6cece0f6e5186da31eb87f4814a607359ae8a566 Mon Sep 17 00:00:00 2001 From: johns <> Date: Sun, 17 Mar 2002 04:21:10 +0000 Subject: [PATCH] Debug message for new track added. --- src/sound/sound_server.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sound/sound_server.cpp b/src/sound/sound_server.cpp index d9affeadb..0502cd829 100644 --- a/src/sound/sound_server.cpp +++ b/src/sound/sound_server.cpp @@ -232,7 +232,7 @@ global void PlayMusic(const char* name) if (CDTrack > NumCDTracks) CDTrack = 1; } while (cd_is_audio(++CDTrack) < 1); - cd_play(CDTrack); + cd_play(CDTrack); return; } @@ -370,7 +370,7 @@ global void StopMusic(void) #endif -global void CDRomCheck() +global void CDRomCheck(void) { #ifdef USE_SDLCD if (strcmp(CDMode, ":off") && SDL_CDStatus(CDRom) == 1) { @@ -384,12 +384,14 @@ global void CDRomCheck() #ifdef USE_LIBCDA if (strcmp(CDMode, ":off") && !cd_current_track()) { + DebugLevel0Fn("Playing new track\n"); if (!strcmp(CDMode, ":all")) { PlayMusic(":all"); } else if (!strcmp(CDMode, ":random")) { PlayMusic(":random"); } } else { + DebugLevel0Fn("get track\n"); CDTrack = cd_current_track() + 1; if (CDTrack > NumCDTracks) CDTrack = 1;