X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsound.c;h=b71ed27fe3d7ef4076494e33f9d641e6cb9c62ec;hp=df2094b2dd60c7fdac83aaf365a2f646f87f2cde;hb=87af02f45b63b849773c7f830d69136d130acca0;hpb=90620849f8c48a86c5f76233501672fbbeb8aa08 diff --git a/src/libgame/sound.c b/src/libgame/sound.c index df2094b2..b71ed27f 100644 --- a/src/libgame/sound.c +++ b/src/libgame/sound.c @@ -1130,7 +1130,7 @@ static SoundInfo *Load_WAV(char *filename) if (!audio.sound_available) return NULL; -#if 1 +#if 0 printf("loading WAV file '%s'\n", filename); #endif @@ -1274,7 +1274,7 @@ static void replaceSoundEntry(SoundInfo **snd_info, char *filename) This usually means that this sound does not exist in this sound set and a fallback to the existing sound is done. */ -#if 1 +#if 0 printf("[sound '%s' already exists (same list entry)]\n", filename); #endif @@ -1287,7 +1287,7 @@ static void replaceSoundEntry(SoundInfo **snd_info, char *filename) /* check if the new sound file already exists in the list of sounds */ if ((node = getNodeFromKey(SoundFileList, filename)) != NULL) { -#if 1 +#if 0 printf("[sound '%s' already exists (other list entry)]\n", filename); #endif @@ -1334,13 +1334,17 @@ void LoadSoundToList(char *basename, int list_pos) if (Sound == NULL || list_pos >= num_sounds) return; +#if 0 printf("loading sound '%s' ... [%d]\n", basename, getNumNodes(SoundFileList)); +#endif LoadCustomSound(&Sound[list_pos], basename); +#if 0 printf("loading sound '%s' done [%d]\n", basename, getNumNodes(SoundFileList)); +#endif } static MusicInfo *Load_MOD(char *filename) @@ -1726,7 +1730,7 @@ static void ReloadCustomSounds() { int i; -#if 1 +#if 0 printf("DEBUG: reloading sounds '%s' ...\n", artwork.sounds_set_current); #endif @@ -1743,12 +1747,15 @@ static void ReloadCustomSounds() /* printf("list size == %d\n", getNumNodes(SoundFileList)); */ + +#if 0 dumpList(SoundFileList); +#endif } static void ReloadCustomMusic() { -#if 1 +#if 0 printf("DEBUG: reloading music '%s' ...\n", artwork.music_set_current); #endif