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.
pub fn open(path: &Path, ext: &str) -> Result<Box<dyn AudioSource>, AudioError>Opens an audio file (ext is a hint; the contents decide). Backends
are tried in turn; the first error is kept when none can.