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"); }
public void Stop() { PlayerStoppedEvent?.Invoke(isPlaying); if (!IsLock) { SongPlayer.cancelplay.Cancel(); SongPlayer.cancelplay.Dispose(); isPlaying = false; } }
public void Stop(WaveOut waveOutDevice) { if (IsLocked == false) { IsPlaying = false; PlayingSong = new Song(); waveOutDevice.Stop(); PlayerStoppedEvent?.Invoke(IsPlaying); } }