.TH "dsp.h" 3 "Bark" \" -*- nroff -*- .ad l .nh .SH NAME dsp.h \- Bark real-time audio noise gate DSP primitives\&. .SH SYNOPSIS .br .PP .SS "Classes" .in +1c .ti -1c .RI "struct \fBbark_gate\fP" .br .RI "Microphone RMS noise gate with fast attack, smooth decay, and hold timer\&. " .in -1c .SS "Typedefs" .in +1c .ti -1c .RI "typedef struct \fBbark_gate\fP \fBbark_gate_t\fP" .br .RI "Microphone RMS noise gate with fast attack, smooth decay, and hold timer\&. " .in -1c .SS "Functions" .in +1c .ti -1c .RI "void \fBbark_gate_init\fP (\fBbark_gate_t\fP *g, float sample_rate, float threshold)" .br .RI "Initialize a noise gate with sample rate (Hz) and linear RMS threshold\&. " .ti -1c .RI "void \fBbark_gate_set_threshold\fP (\fBbark_gate_t\fP *g, float threshold)" .br .RI "Update the linear RMS threshold of an initialized noise gate\&. " .ti -1c .RI "float \fBbark_gate_slider_to_threshold\fP (uint8_t slider_0_100)" .br .RI "Convert a UI slider value (0\&.\&.100) into a perceptual linear RMS threshold\&. " .ti -1c .RI "float \fBbark_gate_process_f32\fP (\fBbark_gate_t\fP *g, const float *in, float *out, size_t frames)" .br .RI "Process mono float32 PCM samples through the noise gate\&. " .in -1c .SH "Detailed Description" .PP Bark real-time audio noise gate DSP primitives\&. Portable pure-C audio DSP primitives (zero platform dependencies)\&. .PP Compiles identically on native desktop hosts, Bark guests, and browser WASM32\&. .SH "Function Documentation" .PP .SS "float bark_gate_process_f32 (\fBbark_gate_t\fP * g, const float * in, float * out, size_t frames)" .PP Process mono float32 PCM samples through the noise gate\&. .PP \fBParameters\fP .RS 4 \fIg\fP Noise gate state\&. .br \fIin\fP Input PCM buffer (\fRframes\fP samples)\&. .br \fIout\fP Output PCM buffer (may alias \fRin\fP)\&. .br \fIframes\fP Number of samples to process\&. .RE .PP \fBReturns\fP .RS 4 Peak amplitude observed in the processed block\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Bark from the source code\&.