Fix compiler warnings

This commit is contained in:
Ken Cooke 2016-03-01 16:34:58 -08:00
parent b346f36b89
commit 06bde077b2
2 changed files with 7 additions and 9 deletions

View file

@ -259,7 +259,6 @@ class PeakFilterT {
int32_t _acc2 = 0; // CIC2 integrator int32_t _acc2 = 0; // CIC2 integrator
public: public:
PeakFilterT() { PeakFilterT() {
// fill history // fill history
@ -376,7 +375,7 @@ public:
// Limiter (common) // Limiter (common)
// //
class LimiterImpl { class LimiterImpl {
public: protected:
static const int NARC = 64; static const int NARC = 64;
int32_t _holdTable[NARC]; int32_t _holdTable[NARC];
@ -394,8 +393,9 @@ public:
int _sampleRate; int _sampleRate;
float _outGain = 0.0f; float _outGain = 0.0f;
public:
LimiterImpl(int sampleRate); LimiterImpl(int sampleRate);
~LimiterImpl() {} virtual ~LimiterImpl() {}
void setThreshold(float threshold); void setThreshold(float threshold);
void setRelease(float release); void setRelease(float release);
@ -560,7 +560,7 @@ class LimiterMono : public LimiterImpl {
MonoDelay<N> _delay; MonoDelay<N> _delay;
public: public:
LimiterMono(int sampleRate) : LimiterImpl(sampleRate) {}; LimiterMono(int sampleRate) : LimiterImpl(sampleRate) {}
void process(float* input, int16_t* output, int numFrames); void process(float* input, int16_t* output, int numFrames);
}; };
@ -611,7 +611,7 @@ class LimiterStereo : public LimiterImpl {
StereoDelay<N> _delay; StereoDelay<N> _delay;
public: public:
LimiterStereo(int sampleRate) : LimiterImpl(sampleRate) {}; LimiterStereo(int sampleRate) : LimiterImpl(sampleRate) {}
// interleaved stereo input/output // interleaved stereo input/output
void process(float* input, int16_t* output, int numFrames); void process(float* input, int16_t* output, int numFrames);
@ -705,8 +705,8 @@ void AudioLimiter::render(float* input, int16_t* output, int numFrames) {
void AudioLimiter::setThreshold(float threshold) { void AudioLimiter::setThreshold(float threshold) {
_impl->setThreshold(threshold); _impl->setThreshold(threshold);
}; }
void AudioLimiter::setRelease(float release) { void AudioLimiter::setRelease(float release) {
_impl->setRelease(release); _impl->setRelease(release);
}; }

View file

@ -15,7 +15,6 @@ class LimiterImpl;
class AudioLimiter { class AudioLimiter {
public: public:
AudioLimiter(int sampleRate, int numChannels); AudioLimiter(int sampleRate, int numChannels);
~AudioLimiter(); ~AudioLimiter();
@ -25,7 +24,6 @@ public:
void setRelease(float release); void setRelease(float release);
private: private:
LimiterImpl* _impl; LimiterImpl* _impl;
}; };