private void pauseButton_Click(object sender, EventArgs e) { if (output != null) { if (output.PlaybackState == NAudio.Wave.PlaybackState.Playing) { output.Pause(); } else if (output.PlaybackState == NAudio.Wave.PlaybackState.Paused) { output.Play(); } } }
private void pictureBox2_Click(object sender, EventArgs e) { if (player != null) { player.Pause(); } }
/// <summary> /// Pause playing buffered samples /// </summary> public void Pause() { if (dso != null) { dso.Pause(); } }
/// <summary> /// Pauses the sound /// </summary> public void PauseSound() { if (output != null) { output.Pause(); } }
private void pauseBtn_Click(object sender, EventArgs e) { if (waveOut != null) { if (waveOut.PlaybackState == NAudio.Wave.PlaybackState.Playing) waveOut.Pause(); } //pause recording position if recording }
private void btnPause_Click_1(object sender, RoutedEventArgs e) { if (output != null) { if (output.PlaybackState == NAudio.Wave.PlaybackState.Playing) { output.Pause(); } } }
private void button2_Click(object sender, EventArgs e) { if (gavnout.PlaybackState == NAudio.Wave.PlaybackState.Playing) { gavnout.Pause(); } else { gavnout.Play(); } }
private void buttonPlay_Click(object sender, EventArgs e) { if (output != null) { output.Pause(); buttonPlay.Visible = true; buttonMute.Visible = false; } }
private void btnPause_Play_Click(object sender, EventArgs e) { if (directSoundOut != null) { if (directSoundOut.PlaybackState == NAudio.Wave.PlaybackState.Playing) { directSoundOut.Pause(); } else if (directSoundOut.PlaybackState == NAudio.Wave.PlaybackState.Paused) { directSoundOut.Play(); } } }
public void PlayPause() { if (output != null) { if (output.PlaybackState == NAudio.Wave.PlaybackState.Playing) { output.Pause(); } else if (output.PlaybackState == NAudio.Wave.PlaybackState.Paused) { output.Play(); } } }