Beispiel #1
0
 /// <summary>
 /// Start recording
 /// </summary>
 public void StartRecording()
 {
     if (recording)
     {
         throw new InvalidOperationException("Already recording");
     }
     OpenWaveInDevice();
     MmException.Try(WaveInterop.waveInStart(waveInHandle), "waveInStart");
     recording = true;
     ThreadPool.QueueUserWorkItem((state) => RecordThread(), null);
 }
Beispiel #2
0
 /// <summary>
 /// Start recording
 /// </summary>
 public void StartRecording()
 {
     if (recording)
     {
         throw new InvalidOperationException("Already recording");
     }
     OpenWaveInDevice();
     EnqueueBuffers();
     MmException.Try(WaveInterop.waveInStart(waveInHandle), "waveInStart");
     recording = true;
 }