mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 15:44:00 +08:00
(WAV): special case for embedded ogg streams.
This commit is contained in:
parent
140173da7a
commit
b7c32d48f0
@ -116,7 +116,8 @@ namespace GameRes
|
|||||||
var header = file.ReadHeader (0x16);
|
var header = file.ReadHeader (0x16);
|
||||||
if (!header.AsciiEqual (8, "WAVE"))
|
if (!header.AsciiEqual (8, "WAVE"))
|
||||||
return null;
|
return null;
|
||||||
if (header.ToUInt16 (0x14) == 0xFFFF)
|
ushort tag = header.ToUInt16 (0x14);
|
||||||
|
if (0xFFFF == tag || 0x676F == tag || 0x6770 == tag)
|
||||||
return null;
|
return null;
|
||||||
file.Position = 0;
|
file.Position = 0;
|
||||||
SoundInput sound = new WaveInput (file.AsStream);
|
SoundInput sound = new WaveInput (file.AsStream);
|
||||||
|
Loading…
Reference in New Issue
Block a user