public void Dispose() { if (_Provider != null) { _Provider._Capture.DataAvailable -= Capture_DataAvailable; _Provider = null; } }
public Reader(WaveInProvider provider, int len) { _Provider = provider; BufferLength = len; _Buffer = new CaptureBuffer(_Provider.Format, len); _Provider._Capture.DataAvailable += Capture_DataAvailable; }