From 77128d298ec360c7e64f0ec9b9b25d38c1c607b6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 20 Jul 2011 22:53:46 -0700 Subject: Add an option to emulate EAX reverb using standard reverb --- Alc/alcReverb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Alc/alcReverb.c') diff --git a/Alc/alcReverb.c b/Alc/alcReverb.c index 4b7aa1c4..4f9360b8 100644 --- a/Alc/alcReverb.c +++ b/Alc/alcReverb.c @@ -140,6 +140,9 @@ typedef struct ALverbState { */ ALfloat ReverbBoost = 1.0f; +/* Specifies whether to use a standard reverb effect in place of EAX reverb */ +ALboolean EmulateEAXReverb = AL_FALSE; + /* This coefficient is used to define the maximum frequency range controlled * by the modulation depth. The current value of 0.1 will allow it to swing * from 0.9x to 1.1x. This value must be below 1. At 1 it will cause the @@ -1364,7 +1367,7 @@ ALeffectState *VerbCreate(void) ALeffectState *EAXVerbCreate(void) { ALeffectState *State = VerbCreate(); - if(State) + if(State && EmulateEAXReverb == AL_FALSE) { State->DeviceUpdate = EAXVerbDeviceUpdate; State->Update = EAXVerbUpdate; -- cgit v1.2.3