Apply panning in case of stereo sample

This commit is contained in:
Jean Pierre Cimalando 2020-03-18 21:33:18 +01:00
parent 1faa7f0739
commit b551716b08

View file

@ -385,6 +385,10 @@ void sfz::Voice::processStereo(AudioSpan<float> buffer) noexcept
{ // Panning and stereo processing
ScopedTiming logger { panningDuration };
// Apply panning
panEnvelope.getBlock(modulationSpan);
pan<float>(modulationSpan, leftBuffer, rightBuffer);
// Apply the width/position process
widthEnvelope.getBlock(modulationSpan);
width<float>(modulationSpan, leftBuffer, rightBuffer);