mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +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);
|
uint fmt_size = header.ToUInt32 (0x10);
|
||||||
long fmt_pos = file.Position;
|
long fmt_pos = file.Position;
|
||||||
ushort format = file.ReadUInt16();
|
ushort format = file.ReadUInt16();
|
||||||
if (format != 0x676F && format != 0x6770 && format != 0x6771)
|
if (format != 0x676F && format != 0x6770 && format != 0x6771 && format != 0x674F)
|
||||||
return null;
|
return null;
|
||||||
// interpret WAVE 'data' section as Ogg stream
|
// interpret WAVE 'data' section as Ogg stream
|
||||||
file.Position = fmt_pos + ((fmt_size + 1) & ~1);
|
file.Position = fmt_pos + ((fmt_size + 1) & ~1);
|
||||||
|
@ -117,7 +117,7 @@ namespace GameRes
|
|||||||
if (!header.AsciiEqual (8, "WAVE"))
|
if (!header.AsciiEqual (8, "WAVE"))
|
||||||
return null;
|
return null;
|
||||||
ushort tag = header.ToUInt16 (0x14);
|
ushort tag = header.ToUInt16 (0x14);
|
||||||
if (0xFFFF == tag || 0x676F == tag || 0x6770 == tag)
|
if (0xFFFF == tag || 0x676F == tag || 0x6770 == tag || 0x674F == 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