NScumm.Scumm.ScummEngine.PlayActorSounds C# (CSharp) Method

PlayActorSounds() protected method

protected PlayActorSounds ( ) : void
return void
        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;
                }
            }
        }
    }
ScummEngine