Exemplo n.º 1
0
 public ReverberationService()
 {
     _effect = new BASS_BFX_FREEVERB();
     Band DryMix = new Band(0.0f, +1.0f, 0.0f, 0.05f, "DryMix");
     Band WetMix = new Band(1.0f, +3.0f, 0.0f, 0.05f, "WetMix");
     Band RoomSize = new Band(0.5f, +1.0f, 0.0f, 0.01f, "RoomSize");
     Band Damp = new Band(0.5f, +1.0f, 0.0f, 0.01f, "Damp");
     Band Width = new Band(1.0f, 1.0f, 0.0f, 0.01f, "Width");
     Bands = new List<Band>() { DryMix, WetMix, RoomSize, Damp, Width };
     Settings = new SettingsService<Band>("ReverberationEffect");
     CurrentSettings = Settings.GetCurrentSettings();
     CurrentSettings.SetPreset(Bands, "CurrentPreset");
     IsActive = CurrentSettings.IsActive;
     BandChanged += ((object sender, ChangedEventArgs e) => { SetEffectToBand(e.Value, e.BandIndex); });
     PresetNames = new List<string>(CurrentSettings.Presets.Keys);
     EffectName = "Reverberation";
     PresetName = "CurrentPreset";
 }
Exemplo n.º 2
0
 public Reverb()
 {
     reverb = new BASS_BFX_FREEVERB();
 }