aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2024-01-04 19:14:59 -0800
committerChris Robinson <[email protected]>2024-01-04 19:14:59 -0800
commitb82cd2e60edb8fbe5fdd3567105ae76a016a554c (patch)
tree735af68323042f617f19a1c940a009b6ea933aaf /alc
parent6675317107257c2cc16c947b359d557821d85bf2 (diff)
Don't scale the early reflection outputUPSTREAM
The secondary reflections are spatially reflected and scaled by time already, so an average of the primary and secondary doesn't make sense.
Diffstat (limited to 'alc')
-rw-r--r--alc/effects/reverb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/effects/reverb.cpp b/alc/effects/reverb.cpp
index 2d884500..45bfaf0f 100644
--- a/alc/effects/reverb.cpp
+++ b/alc/effects/reverb.cpp
@@ -1522,7 +1522,7 @@ void ReverbPipeline::processEarly(size_t offset, const size_t samplesToDo,
size_t td{minz(early_delay.Mask+1 - feedb_tap, todo - i)};
do {
float sample{early_delay.Line[feedb_tap++][j]};
- out[i] = (tempSamples[j][i] + sample*feedb_coeff) * 0.5f;
+ out[i] = tempSamples[j][i] + sample*feedb_coeff;
tempSamples[j][i] = sample;
++i;
} while(--td);