|
Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
#include <dc_blocker.hpp>
Public Member Functions | |
| float | process (float x) |
| Process one sample through the DC blocker. | |
| void | process (float *buf, uint16_t frames) |
| Process a block of float samples in-place. | |
| void | set_coefficient (float r) |
| Set the pole coefficient. | |
| void | reset () |
| Reset filter state to zero. | |
Definition at line 20 of file dc_blocker.hpp.
|
inline |
Process a block of float samples in-place.
| buf | Sample buffer |
| frames | Number of samples |
Definition at line 41 of file dc_blocker.hpp.
References process().
|
inline |
Process one sample through the DC blocker.
| x | Input sample |
Definition at line 29 of file dc_blocker.hpp.
Referenced by process().
|
inline |
Reset filter state to zero.
Definition at line 58 of file dc_blocker.hpp.
|
inline |
Set the pole coefficient.
Higher values (closer to 1.0) = lower cutoff frequency. Default 0.995 ≈ 16 Hz at 48 kHz sample rate.
| r | Pole coefficient, typically 0.99-0.999 |
Definition at line 55 of file dc_blocker.hpp.