Example #1
0
 /// <summary>
 ///     Records this instance.
 /// </summary>
 protected void Record()
 {
     this.RecorderState = PlayerState.Record;
     if (!this.EnsureAudioAccess())
     {
         return;
     }
     if (this._grabber.State != CaptureState.Stopped)
     {
         this._grabber.Stop();
     }
     this._storage = new MemoryAudioSink {CaptureSource = this._grabber};
     this._grabber.Start();
     this.RecordingOutput.Stop();
 }
 /// <summary>
 /// Records this instance.
 /// </summary>
 protected void Record()
 {
     RecorderState = PlayerState.Record;
     if (!EnsureAudioAccess())
     {
         return;
     }
     if (_grabber.State != CaptureState.Stopped)
     {
         _grabber.Stop();
     }
     _storage = new MemoryAudioSink { CaptureSource = _grabber };
     _grabber.Start();
     this.AudioRecorder.Stop();//stops audio player
     _timer.Start();
 }