When changing audio file, seek to beginning of play range
This commit is contained in:
parent
daf17f2ea3
commit
f6274f19be
@ -701,6 +701,7 @@ String PaulstretchpluginAudioProcessor::setAudioFile(File f)
|
|||||||
m_thumb->setSource(new FileInputSource(f));
|
m_thumb->setSource(new FileInputSource(f));
|
||||||
ScopedLock locker(m_cs);
|
ScopedLock locker(m_cs);
|
||||||
m_stretch_source->setAudioFile(f);
|
m_stretch_source->setAudioFile(f);
|
||||||
|
m_stretch_source->seekPercent(*getFloatParameter(cpi_soundstart));
|
||||||
m_current_file = f;
|
m_current_file = f;
|
||||||
m_current_file_date = m_current_file.getLastModificationTime();
|
m_current_file_date = m_current_file.getLastModificationTime();
|
||||||
m_using_memory_buffer = false;
|
m_using_memory_buffer = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user