SquidgeDSP/core/Gain.hpp

22 lines
468 B
C++
Raw Normal View History

2026-08-02 19:38:30 +01:00
#ifndef GAIN_HPP_INCLUDED
#define GAIN_HPP_INCLUDED
#include <cstdint>
class Gain {
public:
2026-08-05 13:46:38 +01:00
Gain(float initGain = 1.0f);
2026-08-02 19:38:30 +01:00
2026-08-02 20:02:26 +01:00
void process(const float *in, float *out, uint32_t frames);
2026-08-02 19:38:30 +01:00
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_; }
};
2026-08-02 20:02:26 +01:00
#endif // GAIN_H_INCLUDED