static void ReloadCustomSounds();
static void ReloadCustomMusic();
-static void FreeSound(SoundInfo *);
+static void FreeSound(void *);
#if defined(PLATFORM_UNIX)
static int OpenAudioDevice(char *audio_device_name)
#if 1
for (i=0; i<num_sounds; i++)
- printf("'%s' -> '%s'\n", sound_effect[i].text, sound_effect[i].filename);
+ {
+ printf("'%s' ", sound_effect[i].text);
+ if (sound_effect[i].filename)
+ printf("-> '%s'\n", sound_effect[i].filename);
+ else
+ printf("-> UNDEFINED [-> '%s']\n", sound_effect[i].default_filename);
+ }
#endif
}
}
InitReloadSoundsOrMusic(set_name, SND_RELOAD_MUSIC);
}
-void FreeSound(SoundInfo *sound)
+void FreeSound(void *ptr)
{
+ SoundInfo *sound = (SoundInfo *)ptr;
+
if (sound == NULL)
return;
/* sound effects: setup file identifiers and corresponding default filenames */
struct SoundEffectInfo sound_effects[NUM_SOUND_EFFECTS] =
{
- { "infotron_collecting", "infotron.wav" },
- { "zonk_falling", "zonkdown.wav" },
- { "zonk_pushing", "zonkpush.wav" }
+ { "infotron_collecting", "infotron.wav" },
+ { "zonk_falling", "zonkdown.wav" },
+ { "zonk_pushing", "zonkpush.wav" },
+ { "player_screaming", "autsch.wav" }
};
struct SoundEffectInfo sound_effects_NEW[] =
#define SND_TEST1 0
#define SND_TEST2 1
#define SND_TEST3 2
+#define SND_TEST4 3
-#define NUM_SOUND_EFFECTS 3
+#define NUM_SOUND_EFFECTS 4
#define SND_AMOEBA_GROWING 0
-#define COMPILE_DATE_STRING "[2002-04-30 00:42]"
+#define COMPILE_DATE_STRING "[2002-04-30 01:24]"