示例#1
0
文件: WaveIn.cs 项目: zhangx3000/GFF
 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;
 }
示例#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);
 }