From ba1407e93e155b8da3156913123368833f7e6119 Mon Sep 17 00:00:00 2001 From: Jerome Martinez Date: Fri, 24 Oct 2025 12:12:01 +0200 Subject: [PATCH] Support of 7.1wide WAV ChannelMask --- Project/GNU/CLI/test/test1.txt | 1 + Source/Lib/Uncompressed/WAV/WAV.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Project/GNU/CLI/test/test1.txt b/Project/GNU/CLI/test/test1.txt index 6b546918..31e3ac0e 100644 --- a/Project/GNU/CLI/test/test1.txt +++ b/Project/GNU/CLI/test/test1.txt @@ -267,6 +267,7 @@ Formats/WAV/Features/4ExtraNullBytesInFmtChunk/4ExtraNullBytesInFmtChunk.wav pas Formats/WAV/Features/ChannelMask/48000_24_1_LE_0x00000000.wav pass Formats/WAV/Features/ChannelMask/48000_24_2_LE_0x00000000.wav pass Formats/WAV/Features/ChannelMask/48000_24_6_LE_0x00000000.wav pass +Formats/WAV/Features/ChannelMask/48000_24_8_LE_0x000000FF.wav pass Formats/WAV/Features/RF64/rf64_data_size.wav pass Formats/WAV/Features/RF64/rf64_extra_after_RIFF.wav pass Formats/WAV/Features/RF64/rf64_normal.wav pass diff --git a/Source/Lib/Uncompressed/WAV/WAV.cpp b/Source/Lib/Uncompressed/WAV/WAV.cpp index f7ab082d..1d8fd85b 100644 --- a/Source/Lib/Uncompressed/WAV/WAV.cpp +++ b/Source/Lib/Uncompressed/WAV/WAV.cpp @@ -517,7 +517,7 @@ void wav::WAVE_fmt_() && (Channels != 2 || (ChannelMask != 0x00000000 && ChannelMask != 0x00000003)) && (Channels != 4 || (ChannelMask != 0x00000000 && ChannelMask != 0x00000107)) && (Channels != 6 || (ChannelMask != 0x00000000 && ChannelMask != 0x0000003F && ChannelMask != 0x0000060F)) - && (Channels != 8 || (ChannelMask != 0x00000000 && ChannelMask != 0x0000063F))) + && (Channels != 8 || (ChannelMask != 0x00000000 && ChannelMask != 0x0000063F && ChannelMask != 0x000000FF))) Unsupported(unsupported::fmt__ChannelMask); FormatTag = Get_L4(); uint32_t SubFormat2 = Get_L4();