diff options
author | Chris Robinson <[email protected]> | 2009-11-23 04:14:12 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-11-23 04:14:12 -0800 |
commit | d1f3dbb9a15146d3ee11983ef8c8748530b3185a (patch) | |
tree | a96f310e1686c893adf6aab1710186222e573098 /Alc | |
parent | cfb30fe975ba83788fa2dd7a4e3279bba81eb731 (diff) |
Make modulation index 0 map to offset 0
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/alcReverb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |