Exemplo n.º 1
0
 public PlayerEngineSettings()
 {
     Volume            = 100f;
     FadeIn            = 5000f;
     FadeOut           = 5000f;
     EqualizerSettings = new EqualizerSettings()
     {
         GainValues = new Dictionary <string, float>()
     };
 }
Exemplo n.º 2
0
 public void SaveEqualizerSettings()
 {
     if (this.playerSettings != null)
     {
         var equalizerSettings = this.playerSettings.PlayerEngine.EqualizerSettings;
         if (equalizerSettings == null)
         {
             equalizerSettings = new EqualizerSettings {
                 Name = this.Name
             };
             this.playerSettings.PlayerEngine.EqualizerSettings = equalizerSettings;
         }
         equalizerSettings.GainValues = this.Bands.ToDictionary(b => b.BandCaption, b => b.Gain);
         equalizerSettings.IsEnabled  = this.IsEnabled;
     }
 }
Exemplo n.º 3
0
 public PlayerEngineSettings()
 {
     Volume = 100f;
     FadeIn = 5000f;
     FadeOut = 5000f;
     EqualizerSettings = new EqualizerSettings() { GainValues = new Dictionary<string, float>() };
 }
Exemplo n.º 4
0
 public void SaveEqualizerSettings()
 {
     if (this.playerSettings != null)
     {
         var equalizerSettings = this.playerSettings.PlayerEngine.EqualizerSettings;
         if (equalizerSettings == null)
         {
             equalizerSettings = new EqualizerSettings { Name = this.Name };
             this.playerSettings.PlayerEngine.EqualizerSettings = equalizerSettings;
         }
         equalizerSettings.GainValues = this.Bands.ToDictionary(b => b.BandCaption, b => b.Gain);
         equalizerSettings.IsEnabled = this.IsEnabled;
     }
 }