When changing audio file, seek to beginning of play range

This commit is contained in:
xenakios 2018-01-17 19:34:12 +02:00
parent daf17f2ea3
commit f6274f19be

View File

@ -701,6 +701,7 @@ String PaulstretchpluginAudioProcessor::setAudioFile(File f)
m_thumb->setSource(new FileInputSource(f));
ScopedLock locker(m_cs);
m_stretch_source->setAudioFile(f);
m_stretch_source->seekPercent(*getFloatParameter(cpi_soundstart));
m_current_file = f;
m_current_file_date = m_current_file.getLastModificationTime();
m_using_memory_buffer = false;