bugfix: clipper now uses threshold consistently

This commit is contained in:
Liam Kerr 2026-08-03 15:43:02 +01:00
parent 34efab4d8e
commit e1274e7be7
2 changed files with 12 additions and 12 deletions

View file

@ -19,13 +19,13 @@ public:
float *outRight, uint32_t frames);
private:
float clip_;
float threshold_;
float clip(const float in);
ClipperMode mode_;
public:
void setGain(float c) { clip_ = c; }
float getGain() const { return clip_; }
void setThreshold(float c) { threshold_ = c; }
float getThreshold() const { return threshold_; }
void setMode(ClipperMode m) { mode_ = m; }
ClipperMode getMode() const { return mode_; }
};