mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
(WAV): another OGG format tag.
This commit is contained in:
parent
c38c84a422
commit
927d335a61
@ -151,7 +151,7 @@ namespace GameRes.Formats
|
||||
uint fmt_size = header.ToUInt32 (0x10);
|
||||
long fmt_pos = file.Position;
|
||||
ushort format = file.ReadUInt16();
|
||||
if (format != 0x676F && format != 0x6770 && format != 0x6771)
|
||||
if (format != 0x676F && format != 0x6770 && format != 0x6771 && format != 0x674F)
|
||||
return null;
|
||||
// interpret WAVE 'data' section as Ogg stream
|
||||
file.Position = fmt_pos + ((fmt_size + 1) & ~1);
|
||||
|
@ -117,7 +117,7 @@ namespace GameRes
|
||||
if (!header.AsciiEqual (8, "WAVE"))
|
||||
return null;
|
||||
ushort tag = header.ToUInt16 (0x14);
|
||||
if (0xFFFF == tag || 0x676F == tag || 0x6770 == tag)
|
||||
if (0xFFFF == tag || 0x676F == tag || 0x6770 == tag || 0x674F == tag)
|
||||
return null;
|
||||
file.Position = 0;
|
||||
SoundInput sound = new WaveInput (file.AsStream);
|
||||
|
Loading…
x
Reference in New Issue
Block a user