From 8a4aee93ec12d91b2106fea81cb50b0c478716f9 Mon Sep 17 00:00:00 2001 From: xenakios Date: Wed, 9 May 2018 12:17:28 +0300 Subject: [PATCH] When changing audio file, set the first buffer flag to flush the existing stretched audio faster --- Source/PS_Source/StretchSource.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/PS_Source/StretchSource.cpp b/Source/PS_Source/StretchSource.cpp index 790a8da..841aca6 100644 --- a/Source/PS_Source/StretchSource.cpp +++ b/Source/PS_Source/StretchSource.cpp @@ -472,6 +472,7 @@ String StretchAudioSource::setAudioFile(File file) if (m_inputfile->openAudioFile(file)) { m_curfile = file; + m_firstbuffer = true; return String(); } return "Could not open file";