1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-14 09:04:31 +02:00

#23 fix #DEN in reverberation buffer

This commit is contained in:
XProger
2017-11-26 09:44:40 +03:00
parent 4807dbbcc5
commit 3a80fa05c2

View File

@@ -118,6 +118,8 @@ namespace Sound {
// apply pan
for (int j = 0; j < MAX_FDN; j++) {
output[j] = out - buffer[(j + MAX_FDN - 1) % MAX_FDN];
if (output[j] < EPS)
output[j] = 0.0f;
L += buffer[j] * panCoeff[j][0];
R += buffer[j] * panCoeff[j][1];
}