AddSoundToQueue() публичный Метод

public AddSoundToQueue ( int sound ) : void
sound int
Результат void
Пример #1
0
        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;
                }
            }
        }
Пример #2
0
 protected virtual void StartSound(int sound)
 {
     if (Game.Version >= 7)
     {
         ((IMuseDigital)MusicEngine).StartSfx(sound, 64);
     }
     else
     {
         Sound.AddSoundToQueue(sound);
     }
 }
Пример #3
0
 protected virtual void StartMusic(int sound)
 {
     Sound.AddSoundToQueue(sound);
 }