mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-12 08:04:09 +02:00
fix reverberation echo while level changing
This commit is contained in:
@@ -107,6 +107,10 @@ namespace Sound {
|
|||||||
panCoeff[i][1] = panCoeff[i + 1][1] = 1;
|
panCoeff[i][1] = panCoeff[i + 1][1] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
void clear() {
|
||||||
memset(output, 0, sizeof(output));
|
memset(output, 0, sizeof(output));
|
||||||
memset(df, 0, sizeof(df));
|
memset(df, 0, sizeof(df));
|
||||||
memset(af, 0, sizeof(af));
|
memset(af, 0, sizeof(af));
|
||||||
@@ -1111,6 +1115,7 @@ namespace Sound {
|
|||||||
|
|
||||||
void stopAll() {
|
void stopAll() {
|
||||||
OS_LOCK(lock);
|
OS_LOCK(lock);
|
||||||
|
reverb.clear();
|
||||||
|
|
||||||
for (int i = 0; i < channelsCount; i++)
|
for (int i = 0; i < channelsCount; i++)
|
||||||
delete channels[i];
|
delete channels[i];
|
||||||
|
Reference in New Issue
Block a user