Several AudioDecoder subclasses handle files with the ogg extension and there is no way to disambiguate the content type to discern whether it is Vorbis, FLAC, Speex, etc.
This is actually a more general problem with the extension-based content type resolution. Perhaps for seekable input each decoder should have the ability to peek at the first n bytes of input and make a best guess on whether the format is supported.
Several
AudioDecoder
subclasses handle files with theogg
extension and there is no way to disambiguate the content type to discern whether it is Vorbis, FLAC, Speex, etc.This is actually a more general problem with the extension-based content type resolution. Perhaps for seekable input each decoder should have the ability to peek at the first
n
bytes of input and make a best guess on whether the format is supported.