Skip to content

Commit 9b155db

Browse files
Merge pull request #458 from JeromeMartinez/Wav_7.1wide
Support of 7.1wide WAV ChannelMask
2 parents 5047e91 + ba1407e commit 9b155db

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Project/GNU/CLI/test/test1.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ Formats/WAV/Features/4ExtraNullBytesInFmtChunk/4ExtraNullBytesInFmtChunk.wav pas
267267
Formats/WAV/Features/ChannelMask/48000_24_1_LE_0x00000000.wav pass
268268
Formats/WAV/Features/ChannelMask/48000_24_2_LE_0x00000000.wav pass
269269
Formats/WAV/Features/ChannelMask/48000_24_6_LE_0x00000000.wav pass
270+
Formats/WAV/Features/ChannelMask/48000_24_8_LE_0x000000FF.wav pass
270271
Formats/WAV/Features/RF64/rf64_data_size.wav pass
271272
Formats/WAV/Features/RF64/rf64_extra_after_RIFF.wav pass
272273
Formats/WAV/Features/RF64/rf64_normal.wav pass

Source/Lib/Uncompressed/WAV/WAV.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ void wav::WAVE_fmt_()
517517
&& (Channels != 2 || (ChannelMask != 0x00000000 && ChannelMask != 0x00000003))
518518
&& (Channels != 4 || (ChannelMask != 0x00000000 && ChannelMask != 0x00000107))
519519
&& (Channels != 6 || (ChannelMask != 0x00000000 && ChannelMask != 0x0000003F && ChannelMask != 0x0000060F))
520-
&& (Channels != 8 || (ChannelMask != 0x00000000 && ChannelMask != 0x0000063F)))
520+
&& (Channels != 8 || (ChannelMask != 0x00000000 && ChannelMask != 0x0000063F && ChannelMask != 0x000000FF)))
521521
Unsupported(unsupported::fmt__ChannelMask);
522522
FormatTag = Get_L4();
523523
uint32_t SubFormat2 = Get_L4();

0 commit comments

Comments
 (0)