Multiple StartSample bug fix

This commit is contained in:
Jack Andersen 2019-03-08 22:58:02 -10:00
parent a4b8946ee2
commit aa5abd5ff5
1 changed files with 1 additions and 0 deletions

View File

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