コード例 #1
0
 public void Dispose()
 {
     _cts.Cancel();
     _playThread?.Abort();
     _soundTouch?.Dispose();
     _blockAlignReductionStream?.Dispose();
     _device?.Dispose();
     _device = null;
     _reader?.Dispose();
     _reader = null;
     _cts?.Dispose();
 }
コード例 #2
0
        public override void Dispose()
        {
            base.Dispose();

            _cts.Cancel();
            _device?.Dispose();
            _device = null;
            _reader?.Dispose();
            _reader = null;
            _cts?.Dispose();

            PlayerConfig.Current.Volume.PropertyChanged -= Volume_PropertyChanged;
        }
コード例 #3
0
ファイル: MusicPlayer.cs プロジェクト: nekomatax/Osu-Player
        public override void Dispose()
        {
            base.Dispose();

            _cts.Cancel();
            _device?.Dispose();
            _device = null;
            _reader?.Dispose();
            _reader = null;
            _cts?.Dispose();

            AppSettings.Default.Volume.PropertyChanged -= Volume_PropertyChanged;
        }