From 1b9256ede0b20868e7e0070788d5691eb59ab28a Mon Sep 17 00:00:00 2001 From: xenakios Date: Fri, 26 Oct 2018 17:49:38 +0300 Subject: [PATCH] Preallocate buffer in WDL resampler, but not sure if this actually avoids time consuming preallocations later... --- Source/WDL/resample.cpp | 2 +- paulstretchplugin.jucer | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/WDL/resample.cpp b/Source/WDL/resample.cpp index bb9f985..e43a0e9 100644 --- a/Source/WDL/resample.cpp +++ b/Source/WDL/resample.cpp @@ -203,7 +203,7 @@ WDL_Resampler::WDL_Resampler() m_ratio=1.0; m_filter_ratio=-1.0; m_iirfilter=0; - + m_rsinbuf.Resize(4 * 65536); Reset(); } diff --git a/paulstretchplugin.jucer b/paulstretchplugin.jucer index 10d4df5..f2e430a 100644 --- a/paulstretchplugin.jucer +++ b/paulstretchplugin.jucer @@ -86,7 +86,7 @@ debugInformationFormat="ProgramDatabase" enablePluginBinaryCopyStep="1" linkTimeOptimisation="0" isDebug="1" optimisation="1" targetName="PaulXStretch" headerPath="Source/PS_Source Source/WDL C:\ProgrammingProjects\gitrepos\JUCE\modules\vst2.x " - vstBinaryLocation="C:\VSTPlugins_64bit"/> + vstBinaryLocation="C:\VSTPlugins_64bit" defines="WDL_HEAPBUF_TRACE"/>