Exemplo n.º 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();
            }
        }
Exemplo n.º 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();
 }