Function infer::is_audio[][src]

pub fn is_audio(buf: &[u8]) -> bool
Expand description

Determines whether a buffer is an audio type.

Examples

// mp3
let v = [0xff, 0xfb, 0x90, 0x44, 0x00];
assert!(infer::is_audio(&v));