diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-05-08 12:15:10 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-05-08 12:17:16 +0200 |
commit | 8ec32c94e0d8161120018170724d64d262bc133d (patch) | |
tree | 62b4a6d97519fdd936ec0c782407ba09a06d52cd /src/chresampler.cc | |
parent | 32332a63ac9a80750b89452490830e042518797a (diff) |
Make Resamplers container class.
Diffstat (limited to 'src/chresampler.cc')
-rw-r--r-- | src/chresampler.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/chresampler.cc b/src/chresampler.cc index d759d78..c8323de 100644 --- a/src/chresampler.cc +++ b/src/chresampler.cc @@ -104,7 +104,7 @@ CHResampler::~CHResampler() #endif } -void CHResampler::setInputSamples(float* samples, size_t count) +void CHResampler::setInputSamples(float* samples, std::size_t count) { #if defined(USE_ZITA) prv->zita.inp_data = samples; @@ -115,7 +115,7 @@ void CHResampler::setInputSamples(float* samples, size_t count) #endif } -void CHResampler::setOutputSamples(float* samples, size_t count) +void CHResampler::setOutputSamples(float* samples, std::size_t count) { #if defined(USE_ZITA) prv->zita.out_data = samples; @@ -139,7 +139,7 @@ void CHResampler::process() #endif } -size_t CHResampler::getInputSampleCount() const +std::size_t CHResampler::getInputSampleCount() const { #if defined(USE_ZITA) return prv->zita.inp_count; @@ -148,7 +148,7 @@ size_t CHResampler::getInputSampleCount() const #endif } -size_t CHResampler::getOutputSampleCount() const +std::size_t CHResampler::getOutputSampleCount() const { #if defined(USE_ZITA) return prv->zita.out_count; @@ -165,19 +165,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::setInputSamples(float*, std::size_t) {} +void CHResampler::setOutputSamples(float*, std::size_t) {} void CHResampler::process() {} -size_t CHResampler::getInputSampleCount() const +std::size_t CHResampler::getInputSampleCount() const { return 0; } -size_t CHResampler::getOutputSampleCount() const +std::size_t CHResampler::getOutputSampleCount() const { return 0; } |