void PlayActorSounds() { int sound; for (var i = 1; i < Actors.Length; i++) { if (Actors[i].Cost.SoundCounter != 0 && Actors[i].IsInCurrentRoom) { CurrentScript = 0xFF; if (Game.Version == 0) { sound = Actors[i].Sound & 0x3F; } else { sound = Actors[i].Sound; } // fast mode will flood the queue with walk sounds // if (!_fastMode) { Sound.AddSoundToQueue(sound); // } for (var j = 1; j < Actors.Length; j++) { Actors[j].Cost.SoundCounter = 0; } return; } } }
protected virtual void StartSound(int sound) { if (Game.Version >= 7) { ((IMuseDigital)MusicEngine).StartSfx(sound, 64); } else { Sound.AddSoundToQueue(sound); } }
protected virtual void StartMusic(int sound) { Sound.AddSoundToQueue(sound); }