[−][src]Function libpulse_binding::sample::format_is_valid
pub fn format_is_valid(format: u32) -> bool
Checks 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.
Available since PA version 5.