mirror of
https://github.com/lubosz/overte.git
synced 2025-08-14 08:55:55 +02:00
Fix compiler warnings
This commit is contained in:
parent
b346f36b89
commit
06bde077b2
2 changed files with 7 additions and 9 deletions
|
@ -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);
|
||||||
};
|
}
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue