Пример #1
0
        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();
            }
        }
Пример #2
0
 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();
 }