public CSCoreEngine() { _fader = new VolumeFading(); _crossfade = new Crossfade(); SoundOutManager = new SoundOutManager(this); SoundOutManager.RefreshSoundOut += (sender, args) => Refresh(); SoundOutManager.Enable += (sender, args) => IsEnabled = true; SoundOutManager.Disable += (sender, args) => IsEnabled = false; SoundOutManager.Activate(); if (IsEnabled) { RefreshSoundOut(); } }
public CSCoreEngine() { _fader = new VolumeFading(); _crossfade = new Crossfade(); SoundOutManager = new SoundOutManager(this); SoundOutManager.RefreshSoundOut += (sender, args) => Refresh(); SoundOutManager.Enable += (sender, args) => IsEnabled = true; SoundOutManager.Disable += (sender, args) => IsEnabled = false; SoundOutManager.Activate(); if (IsEnabled) RefreshSoundOut(); }