From f6274f19be3c724e37aa28cebc5dea671744d72f Mon Sep 17 00:00:00 2001 From: xenakios Date: Wed, 17 Jan 2018 19:34:12 +0200 Subject: [PATCH] When changing audio file, seek to beginning of play range --- Source/PluginProcessor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index aef1787..c8ae7c4 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -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;