1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Pure-Rust DSP primitives for Reflow audio/signal processing actors.
//!
//! This crate is Wasm-safe — no system dependencies, no threads, no filesystem.
//! All math is `f32` for samples, `f64` for coefficient precision.
//!
//! # Features
//!
//! - `simd` — Enables hand-tuned SIMD paths:
//! - **aarch64**: NEON for sample conversion, window apply, stereo interleave
//! - **x86_64**: SSE2 for sample conversion, window apply
//!
//! # Modules
//!
//! - [`biquad`] — Second-order IIR filters (LPF, HPF, BPF, notch, EQ, shelves)
//! - [`envelope`] — Envelope detection and dynamics processing (compressor, gate)
//! - [`db`] — Decibel ↔ linear conversion
//! - [`sample`] — Sample format conversion (i16/i32/f32) and interleaving
//! - [`window`] — Window functions (Hann, Hamming, Blackman, etc.)
//! - [`ring_buffer`] — Fixed-capacity ring buffer for delay lines and windowed processing
//! - [`fft`] — STFT processor with overlap-add (wraps `rustfft`/`realfft`)
// Re-export FFT dependencies for downstream crates
pub use realfft;
pub use rustfft;
// SIMD acceleration modules (conditionally compiled)
pub
pub