Serialized native meter snapshots¶
The always-available reference header RavetGainMeters.h adds
ravet_gain_meters/ravet_gain64_meters. A caller exclusively owning the DSP
handle copies its last successful nonempty block's input/output peak, RMS,
sample count and nonfinite flag. Each reading is 32 bytes and the complete
stereo record 128 bytes, with reserved words zero. Mono's unused channel is zero.
f32 levels widen to double; f64 levels retain native precision without saturation.
Prepare/reset clear readings; empty/rejected blocks retain the prior snapshot.
The functions do not allocate/reset and reject null pointers without output
mutation. Foreign buffers must meet the header's live/aligned/distinct rules.
These are serialized DSP reads, not concurrent UI access. A host adapter must copy readings on the processing owner and deliver them through a separate safe handoff; merely exporting these functions does not enable VST3/AU/AAX/LV2 editor meters. Nonfinite samples count as silence for metering diagnostics while audio remains unsanitized. See decision 0098.