summaryrefslogtreecommitdiffstats
path: root/Alc/alcReverb.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/alcReverb.c')
-rw-r--r--Alc/alcReverb.c2
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