Esempio n. 1
0
 public void StartRecording()
 {
     if (this.recording)
     {
         throw new InvalidOperationException("Already recording");
     }
     this.OpenWaveInDevice();
     this.EnqueueBuffers();
     MmException.Try(WaveInterop.waveInStart(this.waveInHandle), "waveInStart");
     this.recording = true;
 }
Esempio n. 2
0
 public void StartRecording()
 {
     if (this.recording)
     {
         throw new InvalidOperationException("Already recording");
     }
     this.OpenWaveInDevice();
     MmException.Try(WaveInterop.waveInStart(this.waveInHandle), "waveInStart");
     this.recording = true;
     ThreadPool.QueueUserWorkItem(delegate(object state)
     {
         this.RecordThread();
     }, null);
 }