Пример #1
0
        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);
        }
Пример #2
0
        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);
        }