diff options
author | Felix Plamper <felix.plamper@tuta.io> | 2022-02-08 09:44:03 +0000 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2022-02-08 09:44:03 +0000 |
commit | 7bdcf3b6457979e9e928489ac6977b8ccc5880de (patch) | |
tree | 63cddb8f3f1cb8c480ab676c492ec9c7c7f92cdd | |
parent | dc7e23e0d686dccc01842a0ac084b2397001a1e7 (diff) | |
download | shared-mime-info-7bdcf3b6457979e9e928489ac6977b8ccc5880de.tar.gz |
Added DSD mime type
-rw-r--r-- | data/freedesktop.org.xml.in | 31 | ||||
-rw-r--r-- | tests/mime-detection/list | 4 | ||||
-rw-r--r-- | tests/mime-detection/test.dff | bin | 0 -> 114688 bytes | |||
-rw-r--r-- | tests/mime-detection/test.dsf | bin | 0 -> 38980 bytes |
4 files changed, 35 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in index 1e54b446..01ccc3f5 100644 --- a/data/freedesktop.org.xml.in +++ b/data/freedesktop.org.xml.in @@ -4329,6 +4329,37 @@ command to generate the output files. </magic> <glob pattern="*.aax"/> </mime-type> + <mime-type type="audio/x-dff"> + <comment>DSDIFF audio</comment> + <acronym>DSDIFF</acronym> + <expanded-acronym>Direct Stream Digital Interchange File Format</expanded-acronym> + <magic priority="50"> + <!-- from https://www.sonicstudio.com/pdf/dsd/DSDIFF_1.5_Spec.pdf --> + <match value="FRM8" type="string" offset="0"> + <match value="DSD " type="string" offset="12"/> + </match> + </magic> + <glob pattern="*.dff"/> + <alias type="audio/dff"/> + </mime-type> + <mime-type type="audio/x-dsf"> + <comment>DSF audio</comment> + <acronym>DSF</acronym> + <expanded-acronym>Direct stream digital Stream File</expanded-acronym> + <magic priority="50"> + <!-- from https://dsd-guide.com/sites/default/files/white-papers/DSFFileFormatSpec_E.pdf --> + <match value="DSD " type="string" offset="0"> + <match value="fmt " type="string" offset="28"> + <match value="data" type="string" offset="80"/> + </match> + </match> + </magic> + <glob pattern="*.dsf"/> + <alias type="audio/dsf"/> + <!-- Problematic because some clients expect these mime types to be DSDIFF files --> + <alias type="audio/x-dsd"/> + <alias type="audio/dsd"/> + </mime-type> <mime-type type="audio/x-it"> <comment>Impulse Tracker audio</comment> <magic priority="50"> diff --git a/tests/mime-detection/list b/tests/mime-detection/list index 8a07f5af..6cde7b31 100644 --- a/tests/mime-detection/list +++ b/tests/mime-detection/list @@ -272,6 +272,10 @@ raw-mjpeg.mjpeg video/x-mjpeg oxo x_speex_ogg.spx audio/x-speex+ogg # From https://cgit.kde.org/kfilemetadata.git/tree/autotests/samplefiles test.mpc audio/x-musepack +# Created using https://tascam.com/us/product/hi-res_editor/top +test.dsf audio/x-dsf +# Created using https://tascam.com/us/product/hi-res_editor/top +test.dff audio/x-dff # text text-iso8859-15.txt text/plain diff --git a/tests/mime-detection/test.dff b/tests/mime-detection/test.dff Binary files differnew file mode 100644 index 00000000..a3ae577a --- /dev/null +++ b/tests/mime-detection/test.dff diff --git a/tests/mime-detection/test.dsf b/tests/mime-detection/test.dsf Binary files differnew file mode 100644 index 00000000..3b9e7f43 --- /dev/null +++ b/tests/mime-detection/test.dsf |