MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / dcBlock

Function dcBlock

src/core/ClientPudu.cpp:239–245  ·  view source on GitHub ↗

Single-pole DC block, a = 0.995. Used on the Aphex HF path to remove the offset introduced by one-sided clipping.

Source from the content-addressed store, hash-verified

237// Single-pole DC block, a = 0.995. Used on the Aphex HF path to
238// remove the offset introduced by one-sided clipping.
239static 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
247void ClientPudu::process(float* interleaved, int frames, int channels) noexcept
248{

Callers 1

processMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected