From a1d14e4d7568fd976ca5934e6af61bdd316b7e0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= Date: Thu, 25 Feb 2021 17:49:21 +0100 Subject: [PATCH] WavPack support Change-Id: Id731621f39defd8f065b5460a9a5fb8c5b868c98 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3752 Reviewed-by: Adrien Destugues --- src/add-ons/media/plugins/ffmpeg/MuxerTable.cpp | 14 ++++++++++++++ src/data/mime_db/audio/x-wavpack | 13 +++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 src/data/mime_db/audio/x-wavpack diff --git a/src/add-ons/media/plugins/ffmpeg/MuxerTable.cpp b/src/add-ons/media/plugins/ffmpeg/MuxerTable.cpp index 5971b56555..891af2caac 100644 --- a/src/add-ons/media/plugins/ffmpeg/MuxerTable.cpp +++ b/src/add-ons/media/plugins/ffmpeg/MuxerTable.cpp @@ -471,6 +471,20 @@ const media_file_format gMuxerTable[] = { "med", { 0 } }, + { + media_file_format::B_READABLE + | media_file_format::B_KNOWS_RAW_AUDIO + | media_file_format::B_KNOWS_ENCODED_AUDIO, + { 0 }, + B_MISC_FORMAT_FAMILY, + 100, + { 0 }, + "audio/x-wavpack", + "WavPack Lossless Audio", + "wv", + "wv", + { 0 } + }, }; const size_t gMuxerCount = sizeof(gMuxerTable) / sizeof(media_file_format); diff --git a/src/data/mime_db/audio/x-wavpack b/src/data/mime_db/audio/x-wavpack new file mode 100644 index 0000000000..be58127ea7 --- /dev/null +++ b/src/data/mime_db/audio/x-wavpack @@ -0,0 +1,13 @@ + +resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; + +resource(1, "META:TYPE") "audio/x-wavpack"; + +resource(2, "META:S:DESC") #'MSDC' "WavPack Lossless Audio"; + +resource(3, "META:EXTENS") message(234) { + "extensions" = "wv", + "type" = "audio/x-wavpack" +}; + +resource(4, "META:SNIFF_RULE") "0.50 (\"wvpk\")";