internal void Play()
 {
     if (_currentSong != this) //If needed switch up the current song
     {
         if (_bgmPlayer != null)
         {
             _bgmPlayer.Stop();
             _bgmPlayer.Dispose();
         }
         _bgmPlayer   = _bgm.CreatePlayer();
         _currentSong = this;
     }
     _bgmPlayer.Play();
 }
Beispiel #2
0
 internal void Play()
 {
     if (_currentSong != this) //If needed switch up the current song
     {
         if (_bgmPlayer != null)
         {
             _bgmPlayer.Stop();
             _bgmPlayer.Dispose();
         }
         _bgmPlayer = _bgm.CreatePlayer();
         _currentSong = this;
     }
     _bgmPlayer.Play();
 }