-
Notifications
You must be signed in to change notification settings - Fork 39
Description
As far as I can tell, the "correct" type to return for a .wav file (with 52 49 46 46 xx xx xx xx 57 41 56 45 66 6d 74 20 is audio/wav - but this library returns audio/wave.
I got very confused looking through the code because I came across these two lines:
puremagic/puremagic/magic_data.json
Line 103 in 763349e
| ["57415645", 8, ".wav", "audio/wave", "Waveform Audio File Format"], |
puremagic/puremagic/magic_data.json
Line 1118 in 763349e
| ["52494646", 0, ".wav", "audio/wav", "Resource Interchange File Format"], |
I've found it hard to research the correct resolution though, as both audio/wav and audio/wave are entirely missing from what I thought was the official RFC for these! https://www.iana.org/assignments/media-types/media-types.xhtml#audio
MDN lists audio/wav https://developer.mozilla.org/en-US/docs/Web/HTTP/MIME_types/Common_types
I'm not sure there is a correct answer to this question.