pub fn audio_duration(path: &Path, ext: &str) -> Option<f64>Expand description
An audio file’s length: from its header, or by adding up packet
durations when the header doesn’t say (an MP3 without a Xing header).
None when the file doesn’t decode (see crate::audio).