- if (snd_ctrl.active)
- Mixer_InsertNewSound(snd_ctrl);
-}
-#endif /* PLATFORM_MSDOS */
-
-#if 0
-#if defined(TARGET_SDL)
-static void sound_handler_SDL(struct SoundControl snd_ctrl)
-{
- /* copy sound_handler() here ... */
-}
-#endif /* TARGET_SDL */
-#endif
-
-#if !defined(PLATFORM_WIN32)
-static void Mixer_InsertNewSound(struct SoundControl snd_ctrl)
-{
- Mixer_InsertSound(snd_ctrl);
-}
-#endif /* !PLATFORM_WIN32 */
-
-/*
-void Mixer_FadeSound(int nr)
-{
- int i;
-
- if (!mixer_active_channels)
- return;
-
- for(i=0;i<audio.num_channels;i++)
- if (snd_ctrl.stop_all_sounds || mixer[i].nr == snd_ctrl.nr)
- mixer[i].fade_sound = TRUE;
-}
-*/
-
-#if !defined(PLATFORM_WIN32)
-#if defined(PLATFORM_MSDOS)
-static void Mixer_StopSound(struct SoundControl snd_ctrl)
-{
- int nr = snd_ctrl.nr;
- int i;
-
- if (!mixer_active_channels)
- return;
-
- for(i=0; i<audio.num_channels; i++)
- {
- if ((i == audio.music_channel && snd_ctrl.music) ||
- (i != audio.music_channel && mixer[i].nr == nr))
- {
-#if defined(PLATFORM_MSDOS)
- voice_set_volume(mixer[i].voice, 0);
- deallocate_voice(mixer[i].voice);
-#endif
- Mixer_RemoveSound(i);
- }
- }
-
-#if !defined(PLATFORM_MSDOS)
- if (!mixer_active_channels)
- close(audio.device_fd);
-#endif
-}
-
-static void Mixer_StopAllSounds()
-{
- int i;
-
- for(i=0; i<audio.num_channels; i++)
- {
-#if defined(PLATFORM_MSDOS)
- voice_set_volume(mixer[i].voice, 0);
- deallocate_voice(mixer[i].voice);
-#endif
- Mixer_RemoveSound(i);
- }
- mixer_active_channels = 0;
-
-#if !defined(PLATFORM_MSDOS)
- close(audio.device_fd);
-#endif