From aa5abd5ff5561f3b105a20046588fa1d8bd7785c Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Fri, 8 Mar 2019 22:58:02 -1000 Subject: [PATCH] Multiple StartSample bug fix --- lib/Voice.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Voice.cpp b/lib/Voice.cpp index 907e468..9f164d7 100644 --- a/lib/Voice.cpp +++ b/lib/Voice.cpp @@ -839,6 +839,7 @@ void Voice::startSample(SampleId sampId, int32_t offset) { if (const SampleEntry* sample = m_audioGroup.getSample(sampId)) { std::tie(m_curSample, m_curSampleData) = m_audioGroup.getSampleData(sampId, sample); + m_state.m_sampleEnd = false; m_sampleRate = m_curSample->m_sampleRate; m_curPitch = m_curSample->getPitch(); m_pitchDirty = true;