#ifndef CLIPPER_HPP_INCLUDED #define CLIPPER_HPP_INCLUDED #include class Clipper { public: Clipper(float init_clip = 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 clip_; float clip(const float in); public: void setGain(float c) { clip_ = c; } float getGain() const { return clip_; } }; #endif // CLIPPER_HPP_INCLUDED