ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
lowpass_filter_t Struct Reference

This is the handoff point for highpass filter. Callers fill cutoff_hz, sample_rate, alpha, prev_input before passing it on; consumers read the values during the operation and return ownership only where the member contract explicitly says they do. More...

#include <include/ascii-chat/audio/mixer.h>

Data Fields

float cutoff_hz
 Cutoff frequency in Hz (frequencies above this are attenuated).
float sample_rate
 Sample rate in Hz (set during initialization).
float alpha
 Filter coefficient alpha (calculated from cutoff_hz).
float prev_output
 Previous output sample (filter state).

Detailed Description

This is the handoff point for highpass filter. Callers fill cutoff_hz, sample_rate, alpha, prev_input before passing it on; consumers read the values during the operation and return ownership only where the member contract explicitly says they do.

lowpass filter keeps the values that move through the subsystem: cutoff_hz, sample_rate, alpha, prev_output. Some members are pointers into caller- or subsystem-owned memory, so lifetime follows the API that populated them rather than the struct copy itself.

Low-pass filter state

First-order IIR low-pass filter for removing high-frequency noise (hiss, electronic interference) while preserving voice clarity. Combined with high-pass filter creates voice-focused band-pass effect.

Definition at line 247 of file mixer.h.


The documentation for this struct was generated from the following file: