Ejemplo n.º 1
0
 protected override void InitializeComponent(ICore core)
 {
     this.Effects = core.Components.OutputEffects;
     if (this.Effects.Volume != null)
     {
         this.Effects.Volume.AvailableChanged += this.OnAvailableChanged;
         this.Effects.Volume.EnabledChanged   += this.OnEnabledChanged;
         this.Effects.Volume.ValueChanged     += this.OnValueChanged;
     }
     //TODO: Bad .Wait().
     this.Refresh().Wait();
     base.InitializeComponent(core);
 }
Ejemplo n.º 2
0
 public override void InitializeComponent(ICore core)
 {
     this.OutputEffects = core.Components.OutputEffects;
     if (this.OutputEffects.Equalizer != null)
     {
         this.OutputEffects.Equalizer.EnabledChanged += this.OnEnabledChanged;
         foreach (var band in this.OutputEffects.Equalizer.Bands)
         {
             band.WidthChanged += this.OnWidthChanged;
             band.ValueChanged += this.OnValueChanged;
         }
     }
     base.InitializeComponent(core);
 }
Ejemplo n.º 3
0
 protected override void OnCoreChanged()
 {
     if (this.Core == null)
     {
         return;
     }
     this.Effects = this.Core.Components.OutputEffects;
     if (this.Effects.Volume != null)
     {
         this.Effects.Volume.AvailableChanged += this.OnAvailableChanged;
         this.Effects.Volume.EnabledChanged   += this.OnEnabledChanged;
         this.Effects.Volume.ValueChanged     += this.OnValueChanged;
     }
     //TODO: Bad .Wait().
     this.Refresh().Wait();
     base.OnCoreChanged();
 }
Ejemplo n.º 4
0
 protected override void OnCoreChanged()
 {
     if (this.Core == null)
     {
         return;
     }
     this.Effects = this.Core.Components.OutputEffects;
     if (this.Effects.Equalizer != null)
     {
         this.Effects.Equalizer.AvailableChanged += this.OnAvailableChanged;
         this.Effects.Equalizer.EnabledChanged   += this.OnEnabledChanged;
     }
     this.Bands = new List <EqualizerBand>(this.GetBands());
     //TODO: Bad .Wait().
     this.Refresh().Wait();
     base.OnCoreChanged();
 }
Ejemplo n.º 5
0
 protected override void InitializeComponent(ICore core)
 {
     this.Effects = core.Components.OutputEffects;
     if (this.Effects.Equalizer != null)
     {
         this.Effects.Equalizer.AvailableChanged += this.OnAvailableChanged;
         this.Effects.Equalizer.EnabledChanged   += this.OnEnabledChanged;
         this.Effects.Equalizer.PresetsChanged   += this.OnPresetsChanged;
         this.Effects.Equalizer.PresetChanged    += this.OnPresetChanged;
     }
     this.Bands = new List <EqualizerBand>(this.GetBands());
     foreach (var band in this.Bands)
     {
         band.ValueChanged += this.OnValueChanged;
     }
     //TODO: Bad .Wait().
     this.Refresh().Wait();
     base.InitializeComponent(core);
 }