Skip to main content

clamp_volume

Function clamp_volume 

Source
pub fn clamp_volume(volume: f32) -> f32
Expand description

Clamp a volume to the playable [0, 1] range. Matches the frontend’s old clampVolume so behaviour is identical across the IPC boundary.