// STOP public static void StopSong() { if (CurrentSongCue != null) { CurrentSongCue.Stop(AudioStopOptions.AsAuthored); CurrentSongCue.Dispose(); CurrentSongCue = null; } }
// Plays a new SONG Cue. Stops old cue if there is one. public static void StartSongCue(string cueName) { StopSong(); CurrentSongCue = Sounds.GetCue(cueName); CurrentSongCue.Play(); }