| 28 | #define THRESHOLD 0.9 // THRESHOLD>0 !! |
| 29 | |
| 30 | void |
| 31 | SoftLimiter::SetSampleRate (int rate) |
| 32 | { |
| 33 | xpeak=0; |
| 34 | attack=1-exp(-2.2/(AT*(float)rate)); |
| 35 | release=1-exp(-2.2/(RT*(float)rate)); |
| 36 | thresh=(float)log(THRESHOLD); // thresh in linear scale :) |
| 37 | } |
| 38 | |
| 39 | void |
| 40 | SoftLimiter::Process (float *l, float *r, unsigned nframes, int stride) |
nothing calls this directly
no outgoing calls
no test coverage detected