diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/chresampler.cc | 6 | ||||
-rw-r--r-- | src/chresampler.h | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/chresampler.cc b/src/chresampler.cc index 4515e53..5118d8f 100644 --- a/src/chresampler.cc +++ b/src/chresampler.cc @@ -162,19 +162,19 @@ double CHResampler::getRatio() const #else // Dummy implementation -CHResampler::CHResampler() {} +CHResampler::CHResampler() {} CHResampler::~CHResampler() {} void CHResampler::setup(double, double) {} void CHResampler::setInputSamples(float*, size_t) {} void CHResampler::setOutputSamples(float*, size_t) {} void CHResampler::process() {} -size_t CHResampler::getInputSampleCount() +size_t CHResampler::getInputSampleCount() const { return 0; } -size_t CHResampler::getOutputSampleCount() +size_t CHResampler::getOutputSampleCount() const { return 0; } diff --git a/src/chresampler.h b/src/chresampler.h index cd5d571..262e5cb 100644 --- a/src/chresampler.h +++ b/src/chresampler.h @@ -28,6 +28,7 @@ #include <memory> #include <stdlib.h> +#include <config.h> /** * Channel resampler class using either zita-resampler or secret rabbit code @@ -54,10 +55,12 @@ public: double getRatio() const; +#ifdef WITH_RESAMPLER private: class Prv; std::unique_ptr<Prv> prv; double input_fs; double output_fs; +#endif /*WITH_RESAMPLER*/ }; |