Function pnmixerlib::support_audio::vol_to_percent [] [src]

pub fn vol_to_percent(vol: i64, range: (i64, i64)) -> Result<f64>

Converts the actual volume of the audio configuration, which depends on the volume range, to a scale of 0-100, reprenting the percentage of the volume level.