Zeugma440 / atldotnet

Fully managed, portable and easy-to-use C# library to read and edit audio data and metadata (tags) from various audio formats, playlists and CUE sheets
MIT License
442 stars 60 forks source link

Audio format auto-detection #178

Closed cocoon closed 1 year ago

cocoon commented 1 year ago

The problem

I just discovered that an m4a-file that has no extension is not processed correctly and no tags could be read.

Environment

Details

Would be great if the lib could try to quick detect the file type with some internal known file headers and maybe as an optional feature to use a third party lib to detect the file type.

Internal header database to keep file size and dependencies low and optional with additional lib.

Zeugma440 commented 1 year ago

For now, the only way to handle a file without extension is to load it using Track(Stream stream, string mimeType), giving it a MIME-type explicitly.

There's no audio format auto-detection, though I can see the value of such a feature. It would require quite a bit of an overhaul to acheive that properly. Keeping that issue to remind me of that.

Zeugma440 commented 1 year ago

Available in today's v4.21