Skip to content

Commit

Permalink
Don't scale the early reflection output
Browse files Browse the repository at this point in the history
The secondary reflections are spatially reflected and scaled by time already, so an
average of the primary and secondary doesn't make sense.
  • Loading branch information
kcat committed Jan 5, 2024
1 parent 6675317 commit b82cd2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alc/effects/reverb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b82cd2e

Please sign in to comment.