public void Reset() { _buffer.Reset(); _decoder.Reset(); if (_diagnosticOutput != null) { _diagnosticOutput.Dispose(); _diagnosticOutput = null; } }
public void Reset() { _buffer.Reset(); _decoder.Reset(); using (var l = _options.Lock()) l.Value = new PlaybackOptions(false, 1, ChannelPriority.Default); using (var l = _channels.Lock()) l.Value.Clear(); if (_diagnosticOutput != null) { _diagnosticOutput.Dispose(); _diagnosticOutput = null; } }