public void StopSound(int sound)
{
if (sound != 0 && sound == _currentCDSound)
{
_currentCDSound = 0;
StopCD();
StopCDTimer();
}
if (vm.Game.Version < 7)
_mixer.StopID(sound);
if (vm.MusicEngine != null)
vm.MusicEngine.StopSound(sound);
if (soundQueue.Count > 0)
{
var sounds = soundQueue.ToList();
sounds.RemoveAll(obj => obj == sound);
soundQueue = new Stack<int>(sounds);
}
}