コード例 #1
0
 private void microphoneToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (microphoneToolStripMenuItem.Checked)
     {
         SetMicrophone dlg = new SetMicrophone();
         dlg.ShowDialog();
         if (dlg.DialogResult == DialogResult.OK)
         {
             mic.Start(dlg.getDeviceNumber(), dlg.getSensitivity());
         }
     }
     else
     {
         mic.Stop();
     }
 }
コード例 #2
0
 private void microphoneToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (microphoneToolStripMenuItem.Checked)
     {
         SetMicrophone dlg = new SetMicrophone();
         dlg.ShowDialog();
         if (dlg.DialogResult == DialogResult.OK)
         {
             mic.Start(dlg.getDeviceNumber(), dlg.getSensitivity());
         }
     }
     else
         mic.Stop();
 }