mirror of
https://github.com/AndroidAudioMods/ViPERFX_RE.git
synced 2026-10-11 09:58:06 +08:00
Fix software limiter array loop
This commit is contained in:
1 parent
77e0661d1f
commit
7954f0cc79
1 file changed
+4
-4
@@ -103,7 +103,7 @@ ProcessUnit_FX::ProcessUnit_FX() {
|
||||
|
||||
for (auto &softwareLimiter: this->softwareLimiters) {
|
||||
softwareLimiter = new SoftwareLimiter();
|
||||
// this->softwareLimiters[i]->ResetLimiter();
|
||||
// softwareLimiter->ResetLimiter();
|
||||
}
|
||||
|
||||
this->init_ok = true;
|
||||
@@ -287,9 +287,9 @@ void ProcessUnit_FX::ResetAllEffects() {
|
||||
this->speakerCorrection->SetSamplingRate(this->sampleRate);
|
||||
this->speakerCorrection->Reset();
|
||||
}
|
||||
for (int i = 0; i < sizeof(softwareLimiters); i++) {
|
||||
if (softwareLimiters[i] != nullptr) {
|
||||
// softwareLimiters[i]->Reset();
|
||||
for (auto &softwareLimiter: softwareLimiters) {
|
||||
if (softwareLimiter != nullptr) {
|
||||
// softwareLimiter->Reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user