Fix export when rendering looped section multiple times (#5814)

Co-authored-by: Hyunjin Song <tteu.ingog@gmail.com>
This commit is contained in:
Dominic Clark
2020-12-01 10:38:04 +00:00
committed by GitHub
parent 9f0dc0fb1b
commit 4f74151f00

View File

@@ -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());