Function pnmixerlib::support_audio::percent_to_vol [] [src]

pub fn percent_to_vol(vol: f64, range: (i64, i64), dir: VolDir) -> Result<i64>

Converts the percentage of the volume level (0-100) back to the actual low-level representation of the volume, which depends on the volume range.