From d0d97e421241a66ffd3e0cb78d99174d7d8f61d6 Mon Sep 17 00:00:00 2001 From: David Braun <2096055+DBraun@users.noreply.github.com> Date: Thu, 2 Feb 2023 17:18:45 -0800 Subject: [PATCH] Update PlaybackWarpProcessor.cpp --- Source/PlaybackWarpProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/PlaybackWarpProcessor.cpp b/Source/PlaybackWarpProcessor.cpp index 12e08803..04fe195c 100644 --- a/Source/PlaybackWarpProcessor.cpp +++ b/Source/PlaybackWarpProcessor.cpp @@ -173,10 +173,10 @@ bool PlaybackWarpProcessor::setClipPositions( void PlaybackWarpProcessor::processBlock(juce::AudioSampleBuffer& buffer, juce::MidiBuffer& midiBuffer) { auto posInfo = getPlayHead()->getPosition(); + buffer.clear(); if ((m_clips.size() == 0) || (m_clipIndex >= m_clips.size())) { // There are no clips, or we've already passed the last clip. - buffer.clear(); ProcessorBase::processBlock(buffer, midiBuffer); return; }