Mono process for the crossfade envelope

The right channel should be blank at this point of the process so you only need to apply the envelope to the left channel
This commit is contained in:
Paul Ferrand 2020-01-19 07:16:20 +01:00 committed by GitHub
parent 5873814272
commit ffebe9df9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -293,7 +293,7 @@ void sfz::Voice::processMono(AudioSpan<float> buffer) noexcept
// Crossfade envelope
crossfadeEnvelope.getBlock(span1);
buffer.applyGain(span1);
applyGain<float>(span1, leftBuffer);
// Volume envelope
volumeEnvelope.getBlock(span1);