(WAV): special case for embedded ogg streams.

This commit is contained in:
morkt 2018-01-22 17:27:24 +04:00
parent 140173da7a
commit b7c32d48f0

View File

@ -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);