diff data/fileio/CodedAudioFileReader.cpp @ 1318:f830a10bfbd6 3.0-integration

Start pruning other resampler logic than bqresample
author Chris Cannam
date Mon, 05 Dec 2016 16:54:19 +0000
parents c84629395040
children 983667969a82
line wrap: on
line diff
--- a/data/fileio/CodedAudioFileReader.cpp	Mon Dec 05 16:39:03 2016 +0000
+++ b/data/fileio/CodedAudioFileReader.cpp	Mon Dec 05 16:54:19 2016 +0000
@@ -20,9 +20,10 @@
 #include "base/Exceptions.h"
 #include "base/Profiler.h"
 #include "base/Serialiser.h"
-#include "base/Resampler.h"
 #include "base/StorageAdviser.h"
 
+#include <bqresample/Resampler.h>
+
 #include <stdint.h>
 #include <iostream>
 #include <QDir>
@@ -142,9 +143,10 @@
     }
     if (m_fileRate != m_sampleRate) {
         SVDEBUG << "CodedAudioFileReader: resampling " << m_fileRate << " -> " <<  m_sampleRate << endl;
-        m_resampler = new Resampler(Resampler::FastestTolerable,
-                                    m_channelCount,
-                                    m_cacheWriteBufferSize);
+        m_resampler = new breakfastquay::Resampler
+            (breakfastquay::Resampler::FastestTolerable,
+             m_channelCount,
+             m_cacheWriteBufferSize);
         double ratio = m_sampleRate / m_fileRate;
         m_resampleBuffer = new float
             [lrint(ceil(double(m_cacheWriteBufferSize) * m_channelCount * ratio + 1))];