public void StopAllSounds()
{
if (_currentCDSound != 0)
{
_currentCDSound = 0;
StopCD();
StopCDTimer();
}
// Clear the (secondary) sound queue
// _lastSound = 0;
// _soundQue2Pos = 0;
// memset(_soundQue2, 0, sizeof(_soundQue2));
soundQueue.Clear();
if (vm.MusicEngine != null)
{
vm.MusicEngine.StopAllSounds();
}
// Stop all SFX
if (!(vm.MusicEngine is IMuseDigital))
{
_mixer.StopAll();
}
}