Single-pole DC block, a = 0.995. Used on the Aphex HF path to remove the offset introduced by one-sided clipping.
| 237 | // Single-pole DC block, a = 0.995. Used on the Aphex HF path to |
| 238 | // remove the offset introduced by one-sided clipping. |
| 239 | static inline float dcBlock(float x, float& x1, float& y1) noexcept |
| 240 | { |
| 241 | const float y = x - x1 + 0.995f * y1; |
| 242 | x1 = x; |
| 243 | y1 = y; |
| 244 | return y; |
| 245 | } |
| 246 | |
| 247 | void ClientPudu::process(float* interleaved, int frames, int channels) noexcept |
| 248 | { |