mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Slight change to FX_DetectFormat(); format specifications seem to say there's no such thing as WAVE without RIFF.
git-svn-id: https://svn.eduke32.com/eduke32@6837 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
f952a77c9e
commit
b92d4f6c1b
1 changed files with 3 additions and 10 deletions
|
@ -117,26 +117,19 @@ static wavefmt_t FX_DetectFormat(char const * const ptr, uint32_t length)
|
||||||
case 'C' + ('D' << 8) + ('X' << 16) + ('A' << 24): // CDXA
|
case 'C' + ('D' << 8) + ('X' << 16) + ('A' << 24): // CDXA
|
||||||
fmt = FMT_XA;
|
fmt = FMT_XA;
|
||||||
break;
|
break;
|
||||||
default: fmt = FMT_WAV; break;
|
case 'W' + ('A' << 8) + ('V' << 16) + ('E' << 24): // WAVE
|
||||||
|
fmt = FMT_WAV;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'f' + ('L' << 8) + ('a' << 16) + ('C' << 24): // fLaC
|
case 'f' + ('L' << 8) + ('a' << 16) + ('C' << 24): // fLaC
|
||||||
fmt = FMT_FLAC;
|
fmt = FMT_FLAC;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
switch (B_LITTLE32(*(int32_t const *)(ptr + 8)))
|
|
||||||
{
|
|
||||||
case 'W' + ('A' << 8) + ('V' << 16) + ('E' << 24): // WAVE
|
|
||||||
fmt = FMT_WAV;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (MV_IdentifyXMP(ptr, length))
|
if (MV_IdentifyXMP(ptr, length))
|
||||||
{
|
|
||||||
fmt = FMT_XMP;
|
fmt = FMT_XMP;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
return fmt;
|
return fmt;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue