From b7c32d48f0749645629ede3366dabf6b6905f46b Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 22 Jan 2018 17:27:24 +0400 Subject: [PATCH] (WAV): special case for embedded ogg streams. --- GameRes/AudioWAV.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GameRes/AudioWAV.cs b/GameRes/AudioWAV.cs index 09581687..8f166bf1 100644 --- a/GameRes/AudioWAV.cs +++ b/GameRes/AudioWAV.cs @@ -116,7 +116,8 @@ namespace GameRes var header = file.ReadHeader (0x16); if (!header.AsciiEqual (8, "WAVE")) return null; - if (header.ToUInt16 (0x14) == 0xFFFF) + ushort tag = header.ToUInt16 (0x14); + if (0xFFFF == tag || 0x676F == tag || 0x6770 == tag) return null; file.Position = 0; SoundInput sound = new WaveInput (file.AsStream);