devela::_dep::symphonia::core::util::clamp

Function clamp_i16

pub fn clamp_i16(val: i32) -> i16 
Available on crate feature dep_symphonia only.
Expand description

Clamps the given value to the [-32_767, 32_768] range.