Function libpulse_binding::sample::format_is_valid [−][src]
pub fn format_is_valid(format: u32) -> bool
Returns true if the given integer is a valid sample format.
With pure Rust code, this would be enforced natively through use of the
Format enum, but this function may remain useful for miscellaneous int
values from less reliable sources.