pub fn create_decoder<R: Read + Seek + Send + Sync + 'static>(
reader: R,
) -> Result<Box<dyn AudioDecoder>>Expand description
Create a decoder from a reader with automatic format detection
This function uses Symphonia’s format detection which analyzes the stream content (magic bytes) to determine the format. It supports:
- MP3 (mp3)
- OGG/Vorbis (ogg, oga)
- FLAC (flac)
- AAC (aac)
- M4A/MP4 (m4a, mp4)
- WAV (wav)
Note: Reader input must be seekable because many formats require seeking.