2efd1509711f — Chris Cannam a month ago
Make these parameters explicit
1 files changed, 3 insertions(+), 1 deletions(-)

M src/ResamplerWrapper.cpp
M src/ResamplerWrapper.cpp +3 -1
@@ 249,6 249,8 @@ ResamplerWrapper::reconstructResampler()
     
     Resampler::Parameters params;
     params.quality = Resampler::FastestTolerable;
+    params.dynamism = Resampler::RatioMostlyFixed;
+    params.ratioChange = Resampler::SuddenRatioChange;
     params.maxBufferSize = defaultMaxBufferSize;
     if (m_sourceRate != 0) {
         params.initialSampleRate = m_sourceRate;

          
@@ 340,7 342,7 @@ ResamplerWrapper::getSourceSamples(float
     int req = int(round(reqResampled / ratio)) + 1;
 
     int received = m_source->getSourceSamples(m_in, m_channels, req);
-    
+
     for (int i = 0; i < m_channels; ++i) {
         m_ptrs[i] = m_resampled[i] + m_resampledFill;
     }