summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/chresampler.cc6
-rw-r--r--src/chresampler.h2
2 files changed, 5 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..da4c410 100644
--- a/src/chresampler.h
+++ b/src/chresampler.h
@@ -54,10 +54,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*/
};