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