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