Remove unused spans
This commit is contained in:
parent
3c14e15a16
commit
04779965b8
1 changed files with 1 additions and 3 deletions
|
|
@ -302,8 +302,6 @@ void sfz::Voice::processStereo(AudioSpan<float> buffer) noexcept
|
||||||
{
|
{
|
||||||
const auto numSamples = buffer.getNumFrames();
|
const auto numSamples = buffer.getNumFrames();
|
||||||
auto span1 = tempSpan1.first(numSamples);
|
auto span1 = tempSpan1.first(numSamples);
|
||||||
auto span2 = tempSpan2.first(numSamples);
|
|
||||||
auto span3 = tempSpan3.first(numSamples);
|
|
||||||
auto leftBuffer = buffer.getSpan(0);
|
auto leftBuffer = buffer.getSpan(0);
|
||||||
auto rightBuffer = buffer.getSpan(1);
|
auto rightBuffer = buffer.getSpan(1);
|
||||||
|
|
||||||
|
|
@ -339,7 +337,7 @@ void sfz::Voice::processStereo(AudioSpan<float> buffer) noexcept
|
||||||
width<float>(span1, midBuffer, sideBuffer);
|
width<float>(span1, midBuffer, sideBuffer);
|
||||||
|
|
||||||
// Copy the mid channel into another span
|
// Copy the mid channel into another span
|
||||||
const auto midBufferRight = span2;
|
const auto midBufferRight = tempSpan2.first(numSamples);
|
||||||
copy<float>(midBuffer, midBufferRight);
|
copy<float>(midBuffer, midBufferRight);
|
||||||
positionEnvelope.getBlock(span1);
|
positionEnvelope.getBlock(span1);
|
||||||
pan<float>(span1, midBuffer, midBufferRight);
|
pan<float>(span1, midBuffer, midBufferRight);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue