Skip to main content

open

Function open 

Source
pub fn open(path: &Path, ext: &str) -> Result<Box<dyn AudioSource>, AudioError>
Expand description

Opens an audio file (ext is a hint; the contents decide). Backends are tried in turn; the first error is kept when none can.