pub fn clamp_volume(volume: f32) -> f32
Clamp a volume to the playable [0, 1] range. Matches the frontend’s old clampVolume so behaviour is identical across the IPC boundary.
[0, 1]
clampVolume