Call "clear()" after changing anti-alias filter on/off

Call "clear()" after changing anti-alias filter on/off to prefill
buffers appropriately.
This commit is contained in:
Olli 2021-01-28 20:19:06 +02:00
parent 762f56024b
commit f38cfa6850

View File

@ -78,6 +78,7 @@ void RateTransposer::enableAAFilter(bool newMode)
#ifndef SOUNDTOUCH_PREVENT_CLICK_AT_RATE_CROSSOVER #ifndef SOUNDTOUCH_PREVENT_CLICK_AT_RATE_CROSSOVER
// Disable Anti-alias filter if desirable to avoid click at rate change zero value crossover // Disable Anti-alias filter if desirable to avoid click at rate change zero value crossover
bUseAAFilter = newMode; bUseAAFilter = newMode;
clear();
#endif #endif
} }