bugfix: clipper now uses threshold consistently
This commit is contained in:
parent
34efab4d8e
commit
e1274e7be7
2 changed files with 12 additions and 12 deletions
|
|
@ -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_; }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue