コード例 #1
0
ファイル: Form1.cs プロジェクト: Chausiku32/Multimedia
        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();
                }
            }
        }
コード例 #2
0
 private void pictureBox2_Click(object sender, EventArgs e)
 {
     if (player != null)
     {
         player.Pause();
     }
 }
コード例 #3
0
 /// <summary>
 /// Pause playing buffered samples
 /// </summary>
 public void Pause()
 {
     if (dso != null)
     {
         dso.Pause();
     }
 }
コード例 #4
0
ファイル: Audio.cs プロジェクト: AAli107/Consyl-Engine
 /// <summary>
 /// Pauses the sound
 /// </summary>
 public void PauseSound()
 {
     if (output != null)
     {
         output.Pause();
     }
 }
コード例 #5
0
 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
 }
コード例 #6
0
 private void btnPause_Click_1(object sender, RoutedEventArgs e)
 {
     if (output != null)
     {
         if (output.PlaybackState == NAudio.Wave.PlaybackState.Playing)
         {
             output.Pause();
         }
     }
 }
コード例 #7
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (gavnout.PlaybackState == NAudio.Wave.PlaybackState.Playing)
     {
         gavnout.Pause();
     }
     else
     {
         gavnout.Play();
     }
 }
コード例 #8
0
        private void buttonPlay_Click(object sender, EventArgs e)
        {
            if (output != null)
            {
                output.Pause();


                buttonPlay.Visible = true;
                buttonMute.Visible = false;
            }
        }
コード例 #9
0
 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();
         }
     }
 }
コード例 #10
0
 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();
         }
     }
 }