public DSPReverbEffect(DSPParameter[] parameters) : base() { // Obtain EFX entry points EffectsExtension EFX = OpenALDevice.Instance.EFX; // Set up the Reverb Effect EFX.BindEffect(effectHandle, EfxEffectType.EaxReverb); // TODO: Use DSP Parameters on EAXReverb Effect. They don't bind very cleanly. :/ // Bind the Effect to the EffectSlot. XACT will use the EffectSlot. EFX.BindEffectToAuxiliarySlot(Handle, effectHandle); }
public void SetGain(float value) { // Obtain EFX entry points EffectsExtension EFX = OpenALDevice.Instance.EFX; // Apply the value to the effect EFX.Effect( effectHandle, EfxEffectf.EaxReverbGain, value ); // Apply the newly modified effect to the effect slot EFX.BindEffectToAuxiliarySlot(Handle, effectHandle); }