Skip to main content

Module recording

Module recording 

Source
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§

RecorderState
Handle shared between audio callback and UI thread.

Enums§

RecordFormat
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.