1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-09 22:56:53 +02:00

fix reverberation echo while level changing

This commit is contained in:
XProger
2019-05-27 04:05:38 +03:00
parent 806ef115fe
commit 1a424464c9

View File

@@ -107,6 +107,10 @@ namespace Sound {
panCoeff[i][1] = panCoeff[i + 1][1] = 1;
}
clear();
}
void clear() {
memset(output, 0, sizeof(output));
memset(df, 0, sizeof(df));
memset(af, 0, sizeof(af));
@@ -1111,6 +1115,7 @@ namespace Sound {
void stopAll() {
OS_LOCK(lock);
reverb.clear();
for (int i = 0; i < channelsCount; i++)
delete channels[i];