Ejemplo 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;
 }
Ejemplo 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);
 }