Browse Source

Fix for AudioProcessorGraph logic.

tags/2021-05-28
jules 13 years ago
parent
commit
431978b4ff
1 changed files with 5 additions and 7 deletions
  1. +5
    -7
      modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp

+ 5
- 7
modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp View File

@@ -462,8 +462,8 @@ private:
{ {
if (j != reusableInputIndex) if (j != reusableInputIndex)
{ {
const int srcIndex = getBufferContaining (sourceNodes.getUnchecked(j),
sourceOutputChans.getUnchecked(j));
int srcIndex = getBufferContaining (sourceNodes.getUnchecked(j),
sourceOutputChans.getUnchecked(j));
if (srcIndex >= 0) if (srcIndex >= 0)
{ {
const int nodeDelay = getNodeDelay (sourceNodes.getUnchecked (j)); const int nodeDelay = getNodeDelay (sourceNodes.getUnchecked (j));
@@ -481,13 +481,11 @@ private:
const int bufferToDelay = getFreeBuffer (false); const int bufferToDelay = getFreeBuffer (false);
renderingOps.add (new CopyChannelOp (srcIndex, bufferToDelay)); renderingOps.add (new CopyChannelOp (srcIndex, bufferToDelay));
renderingOps.add (new DelayChannelOp (bufferToDelay, maxLatency - nodeDelay)); renderingOps.add (new DelayChannelOp (bufferToDelay, maxLatency - nodeDelay));
renderingOps.add (new AddChannelOp (bufferToDelay, bufIndex));
srcIndex = bufferToDelay;
} }
} }
else
{
renderingOps.add (new AddChannelOp (srcIndex, bufIndex));
}
renderingOps.add (new AddChannelOp (srcIndex, bufIndex));
} }
} }
} }


Loading…
Cancel
Save