mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(PcmAudio): refined signature check.
This commit is contained in:
@@ -43,7 +43,7 @@ namespace GameRes.Formats.Ags
|
|||||||
|
|
||||||
public override SoundInput TryOpen (Stream file)
|
public override SoundInput TryOpen (Stream file)
|
||||||
{
|
{
|
||||||
uint signature = FormatCatalog.ReadSignature (file) & 0xFFFFFF;
|
uint signature = FormatCatalog.ReadSignature (file) & 0xF0FFFFFF;
|
||||||
if (0x564157 != signature) // 'WAV'
|
if (0x564157 != signature) // 'WAV'
|
||||||
return null;
|
return null;
|
||||||
return new PcmInput (file);
|
return new PcmInput (file);
|
||||||
|
|||||||
Reference in New Issue
Block a user