diff options
| author | Jonas Suhr Christensen <jonas.christensen@prevas.com> | 2016-04-14 12:44:24 +0200 | 
|---|---|---|
| committer | Jonas Suhr Christensen <jonas.christensen@prevas.com> | 2016-04-14 12:44:24 +0200 | 
| commit | f0ccaeaec633a728240d7e8f3c339766694f90b2 (patch) | |
| tree | bbcebbcd59ed76e4616458980bb7eb15e91cd58f /src | |
| parent | c7aae008ad818f9cb453ce184673e0edf8ba4e58 (diff) | |
Fixed dummy implementation of CHResampler used when compiling without resampler support.
Diffstat (limited to 'src')
| -rw-r--r-- | src/chresampler.cc | 6 | ||||
| -rw-r--r-- | src/chresampler.h | 2 | 
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*/  };  | 
