From d1f3dbb9a15146d3ee11983ef8c8748530b3185a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 23 Nov 2009 04:14:12 -0800 Subject: [PATCH] Make modulation index 0 map to offset 0 --- Alc/alcReverb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alc/alcReverb.c b/Alc/alcReverb.c index 94e67aff..4d800187 100644 --- a/Alc/alcReverb.c +++ b/Alc/alcReverb.c @@ -698,7 +698,7 @@ static __inline ALfloat EAXModulation(ALverbState *State, ALfloat in) // Calculate the sinus rythm (dependent on modulation time and the // sampling rate). The center of the sinus is moved to reduce the delay // of the effect when the time or depth are low. - sinus = 1.0f + sin(2.0f * M_PI * State->Mod.Index / State->Mod.Range); + sinus = 1.0f - cos(2.0f * M_PI * State->Mod.Index / State->Mod.Range); // The depth determines the range over which to read the input samples // from, so it must be filtered to reduce the distortion caused by even -- 2.11.4.GIT