Remove some branches from the envelope
This commit is contained in:
parent
8e13b232a3
commit
6b0c79b162
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ void ADSREnvelope::getBlock(absl::Span<Float> output) noexcept
|
||||||
}
|
}
|
||||||
while (count < size) {
|
while (count < size) {
|
||||||
if (currentValue > sustain)
|
if (currentValue > sustain)
|
||||||
currentValue = std::max(sustain, currentValue + transitionDelta);
|
currentValue += transitionDelta;
|
||||||
output[count++] = currentValue;
|
output[count++] = currentValue;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue