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) {
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user