The volume envelope was applied twice
This commit is contained in:
parent
16ddfa3cb2
commit
313aed391c
1 changed files with 0 additions and 8 deletions
|
|
@ -303,10 +303,6 @@ void sfz::Voice::processMono(AudioSpan<float> buffer) noexcept
|
|||
egEnvelope.getBlock(span1);
|
||||
applyGain<float>(span1, leftBuffer);
|
||||
|
||||
// Volume envelope
|
||||
volumeEnvelope.getBlock(span1);
|
||||
applyGain<float>(span1, leftBuffer);
|
||||
|
||||
// Prepare for stereo output
|
||||
copy<float>(leftBuffer, rightBuffer);
|
||||
|
||||
|
|
@ -347,10 +343,6 @@ void sfz::Voice::processStereo(AudioSpan<float> buffer) noexcept
|
|||
egEnvelope.getBlock(span1);
|
||||
buffer.applyGain(span1);
|
||||
|
||||
// Volume envelope
|
||||
volumeEnvelope.getBlock(span1);
|
||||
buffer.applyGain(span1);
|
||||
|
||||
// Create mid/side from left/right in the output buffer
|
||||
copy<float>(rightBuffer, span1);
|
||||
add<float>(leftBuffer, rightBuffer);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue