From 4f74151f006c95d5bed933a9c421521545c1391b Mon Sep 17 00:00:00 2001 From: Dominic Clark Date: Tue, 1 Dec 2020 10:38:04 +0000 Subject: [PATCH] Fix export when rendering looped section multiple times (#5814) Co-authored-by: Hyunjin Song --- src/core/Song.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Song.cpp b/src/core/Song.cpp index 78fb7d44aa4..30d0bea23fb 100644 --- a/src/core/Song.cpp +++ b/src/core/Song.cpp @@ -295,7 +295,7 @@ void Song::processNextBuffer() } // Handle loop points, and inform VST plugins of the loop status - if (loopEnabled || m_loopRenderRemaining > 1) + if (loopEnabled || (m_loopRenderRemaining > 1 && getPlayPos() >= timeline->loopBegin())) { m_vstSyncController.startCycle( timeline->loopBegin().getTicks(), timeline->loopEnd().getTicks());