Expand description
Master-output recorder → FLAC (lossless, 24-bit).
The audio callback pushes interleaved L/R samples into a pre-allocated
Vec<f32> protected by a parking_lot::Mutex (uncontended ≈ 25 ns).
On stop the buffer is moved out and handed to a background thread
that runs the FLAC encoder — UI stays responsive even for long takes.
Structs§
- Recorder
State - Handle shared between audio callback and UI thread.
Enums§
- Record
Format - Container / codec for a recording.
Constants§
- MAX_
MINUTES - Hard cap — refuses to record beyond this to protect RAM. At 48 kHz stereo f32: 15 min ≈ 345 MB.