snd_info = (snd_ctrl.music ? Music[snd_ctrl.nr] : Sound[snd_ctrl.nr]);
if (snd_info == NULL)
{
-#if 1
+#if 0
printf("sound/music %d undefined\n", snd_ctrl.nr);
#endif
return;
if (!audio.sound_available)
return NULL;
-#if 1
+#if 0
printf("loading WAV file '%s'\n", filename);
#endif
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
/* 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
{
char *filename = getCustomSoundFilename(basename);
- if (strcmp(basename, "NONE") == 0)
+ if (strcmp(basename, SND_FILE_UNDEFINED) == 0)
{
deleteSoundEntry(snd_info);
return;
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)
{
int i;
-#if 1
+#if 0
printf("DEBUG: reloading sounds '%s' ...\n", artwork.sounds_set_current);
#endif
/*
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