public void Dispose() { _cts.Cancel(); _playThread?.Abort(); _soundTouch?.Dispose(); _blockAlignReductionStream?.Dispose(); _device?.Dispose(); _device = null; _reader?.Dispose(); _reader = null; _cts?.Dispose(); }
public override void Dispose() { base.Dispose(); _cts.Cancel(); _device?.Dispose(); _device = null; _reader?.Dispose(); _reader = null; _cts?.Dispose(); PlayerConfig.Current.Volume.PropertyChanged -= Volume_PropertyChanged; }
public override void Dispose() { base.Dispose(); _cts.Cancel(); _device?.Dispose(); _device = null; _reader?.Dispose(); _reader = null; _cts?.Dispose(); AppSettings.Default.Volume.PropertyChanged -= Volume_PropertyChanged; }