Fixed a bug that causes invalid effect output
This commit is contained in:
parent
9d5f7bf4aa
commit
cc33ed160f
1 changed files with 1 additions and 1 deletions
|
|
@ -1159,7 +1159,6 @@ void Synth::renderBlock(AudioSpan<float> buffer) noexcept
|
|||
|
||||
{ // Main render block
|
||||
ScopedTiming logger { callbackBreakdown.renderMethod, ScopedTiming::Operation::addToDuration };
|
||||
tempMixSpan->fill(0.0f);
|
||||
|
||||
for (auto& voice : impl.voiceManager_) {
|
||||
if (voice.isFree())
|
||||
|
|
@ -1197,6 +1196,7 @@ void Synth::renderBlock(AudioSpan<float> buffer) noexcept
|
|||
|
||||
const int numChannels = static_cast<int>(buffer.getNumChannels());
|
||||
for (int i = 0; i < impl.numOutputs_; ++i) {
|
||||
tempMixSpan->fill(0.0f);
|
||||
const auto outputStart = numChannels == 0 ? 0 : (2 * i) % numChannels;
|
||||
auto outputSpan = buffer.getStereoSpan(outputStart);
|
||||
const auto& effectBuses = impl.getEffectBusesForOutput(i);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue