ca0057594ac4 — Chris Cannam 28 days ago
The initialSampleRate is just a guide, but implementations may fail if it's not given - make it default
1 files changed, 4 insertions(+), 0 deletions(-)

M src/Resampler.cpp
M src/Resampler.cpp +4 -0
@@ 1207,6 1207,10 @@ D_Speex::reset()
 Resampler::Resampler(Resampler::Parameters params, int channels)
 {
     m_method = -1;
+
+    if (params.initialSampleRate == 0) {
+        params.initialSampleRate = 44100;
+    }
     
     switch (params.quality) {