summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Plamper <felix.plamper@tuta.io>2022-02-08 09:44:03 +0000
committerVille Skyttä <ville.skytta@iki.fi>2022-02-08 09:44:03 +0000
commit7bdcf3b6457979e9e928489ac6977b8ccc5880de (patch)
tree63cddb8f3f1cb8c480ab676c492ec9c7c7f92cdd
parentdc7e23e0d686dccc01842a0ac084b2397001a1e7 (diff)
downloadshared-mime-info-7bdcf3b6457979e9e928489ac6977b8ccc5880de.tar.gz
Added DSD mime type
-rw-r--r--data/freedesktop.org.xml.in31
-rw-r--r--tests/mime-detection/list4
-rw-r--r--tests/mime-detection/test.dffbin0 -> 114688 bytes
-rw-r--r--tests/mime-detection/test.dsfbin0 -> 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
new file mode 100644
index 00000000..a3ae577a
--- /dev/null
+++ b/tests/mime-detection/test.dff
Binary files differ
diff --git a/tests/mime-detection/test.dsf b/tests/mime-detection/test.dsf
new file mode 100644
index 00000000..3b9e7f43
--- /dev/null
+++ b/tests/mime-detection/test.dsf
Binary files differ