SquidgeDSP/core/Gain.hpp

22 lines
No EOL
469 B
C++

#ifndef GAIN_HPP_INCLUDED
#define GAIN_HPP_INCLUDED
#include <cstdint>
class Gain {
public:
Gain(float init_gain = 1.0f);
void process(const float *in, float *out, uint32_t frames);
void processStereo(const float *inLeft, const float *inRight, float *outLeft,
float *outRight, uint32_t frames);
private:
float gain_;
public:
void setGain(float g) { gain_ = g; }
float getGain() const { return gain_; }
};
#endif // GAIN_H_INCLUDED