mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(WAV): special case for embedded ogg streams.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user