Esempio n. 1
0
 private void btnRecord_Click(object sender, EventArgs e)
 {
     if (rec == null)
     {
         rec = new WaveRecorder(this);
         rec.RecordingStart();
     }
     else
     {
         rec.RecordingStop();
         WaveFile result = rec.getSamples();
         if (result != null)
         {
             createChildWindow(result);
         }
         rec.Dispose();
         rec = null;
     }
 }
Esempio n. 2
0
 private void btnRecord_Click(object sender, EventArgs e)
 {
     if (rec == null) {
         rec = new WaveRecorder(this);
         rec.RecordingStart();
     } else {
         rec.RecordingStop();
         WaveFile result = rec.getSamples();
         if (result != null) {
             createChildWindow(result);
         }
         rec.Dispose();
         rec = null;
     }
 }