Function pnmixerlib::support_audio::lrint [] [src]

pub fn lrint(v: f64, dir: VolDir) -> f64

Kinda mimics lrint from libm. If the direction of the volume change is Up then calls ceil(), if it's Down, then calls floor(), otherwise returns the value unchanged.