Beispiel #1
0
        public void Reset()
        {
            _buffer.Reset();
            _decoder.Reset();

            if (_diagnosticOutput != null)
            {
                _diagnosticOutput.Dispose();
                _diagnosticOutput = null;
            }
        }
Beispiel #2
0
        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;
            }
        }