Fix the sustain loop
This commit is contained in:
parent
80d350d0c5
commit
cf7bbdd565
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ void ADSREnvelope::getBlock(absl::Span<Float> output) noexcept
|
||||||
shouldRelease = true;
|
shouldRelease = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
for (size_t i = 0; i < size; ++i) {
|
while (count < size) {
|
||||||
currentValue = std::max(sustain, currentValue + transitionDelta);
|
currentValue = std::max(sustain, currentValue + transitionDelta);
|
||||||
output[count++] = currentValue;
|
output[count++] = currentValue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue