public void Stop() { if (_capturer == null) { throw new InvalidOperationException("CaptureNotStarted"); } _capturer.Stop(); _capturer.Dispose(); _capturer = null; }
public void Start(ITransport transport) { if (_capturer != null) { throw new InvalidOperationException("CaptureAlreadyStarted"); } _capturer = new MmeCapturer(new RawAudioTransport(transport)); _capturer.Initialize(); _capturer.Start(); }
public MmeWaveInfo(MmeCapturer parent) { _encoder = parent._encoder; }