Ejemplo n.º 1
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();
 }
Ejemplo n.º 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();
 }