public AudioPlayer(SimPlayer innerPlayer) { InnerPlayer = innerPlayer; ShipSpeed = 0; ShipSpeedChanged = true; MovingCue = XACTAudio.GetCue("ShipMoving", "Sound Bank"); //FiringCue = XACTAudio.GetCue("ShipFiring", "Sound Bank"); }
public Cue GetCue(string cueName, string bankName) { var cue = new Cue(cueName, SoundBanks[bankName].InnerSoundBank.GetCue(cueName)); Cues.Add(cue); return cue; }
public void DoWaveNearToStart() { if (Simulator.DemoMode) return; WaveNearToStartCue = XACTAudio.GetCue("NewWaveComing", "Sound Bank"); WaveNearToStartCue.Play(); }