Function pnmixerlib::support_audio::vol_change_to_voldir [] [src]

pub fn vol_change_to_voldir(old: f64, new: f64) -> VolDir

Convert a volume change to the VolDir type.

old

The old volume value.

new

The new volume value.

Returns

The direction of the volume change as Voldir.