4fe94361597f — Chris Cannam tip 12 days ago
Don't pass the target rate to the upstream source (the whole point is to resample)
1 files changed, 4 insertions(+), 1 deletions(-)

M src/ResamplerWrapper.cpp
M src/ResamplerWrapper.cpp +4 -1
@@ 129,7 129,10 @@ ResamplerWrapper::setSystemPlaybackSampl
         lock_guard<mutex> guard(m_mutex);
         m_targetRate = rate;
     }
-    m_source->setSystemPlaybackSampleRate(m_targetRate);
+
+    // We do the resampling around here - pretend to our own source
+    // that their preferred rate is always the same as the device's
+    m_source->setSystemPlaybackSampleRate(m_sourceRate);
 }
 
 void