Exemplo n.º 1
0
 // STOP
 public static void StopSong()
 {
     if (CurrentSongCue != null)
     {
         CurrentSongCue.Stop(AudioStopOptions.AsAuthored);
         CurrentSongCue.Dispose();
         CurrentSongCue = null;
     }
 }
Exemplo n.º 2
0
 //  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();
 }