Example #1
0
 public void Stop()
 {
     if (_locked != true)
     {
         _playing = false;
         PlayerStoppedEvent?.Invoke(Items, _locked, _volume, _playing);
         //Console.WriteLine("Player is stoped");
     }
     //else Console.WriteLine("Player is Locked");
 }
Example #2
0
 public void Stop()
 {
     PlayerStoppedEvent?.Invoke(isPlaying);
     if (!IsLock)
     {
         SongPlayer.cancelplay.Cancel();
         SongPlayer.cancelplay.Dispose();
         isPlaying = false;
     }
 }
Example #3
0
 public void Stop(WaveOut waveOutDevice)
 {
     if (IsLocked == false)
     {
         IsPlaying   = false;
         PlayingSong = new Song();
         waveOutDevice.Stop();
         PlayerStoppedEvent?.Invoke(IsPlaying);
     }
 }