예제 #1
0
 public AudioPlayer(SimPlayer innerPlayer)
 {
     InnerPlayer = innerPlayer;
     ShipSpeed = 0;
     ShipSpeedChanged = true;
     MovingCue = XACTAudio.GetCue("ShipMoving", "Sound Bank");
     //FiringCue = XACTAudio.GetCue("ShipFiring", "Sound Bank");
 }
예제 #2
0
        public Cue GetCue(string cueName, string bankName)
        {
            var cue = new Cue(cueName, SoundBanks[bankName].InnerSoundBank.GetCue(cueName));

            Cues.Add(cue);

            return cue;
        }
예제 #3
0
        public void DoWaveNearToStart()
        {
            if (Simulator.DemoMode)
                return;

            WaveNearToStartCue = XACTAudio.GetCue("NewWaveComing", "Sound Bank");
            WaveNearToStartCue.Play();
        }