mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-18 07:44:43 +01:00
Merge pull request #216 from bxaimc/master
Add SNDS support for The Incredibles (PS2)
This commit is contained in:
commit
47d2b53c23
@ -76,9 +76,10 @@ VGMSTREAM * init_vgmstream_ps2_mib(STREAMFILE *streamFile) {
|
||||
streamFile->get_name(streamFile,filename,sizeof(filename));
|
||||
if (strcasecmp("cvs",filename_extension(filename)) &&
|
||||
strcasecmp("mib",filename_extension(filename)) &&
|
||||
strcasecmp("mi4",filename_extension(filename)) &&
|
||||
strcasecmp("vb",filename_extension(filename)) &&
|
||||
strcasecmp("xag",filename_extension(filename))) goto fail;
|
||||
strcasecmp("mi4",filename_extension(filename)) &&
|
||||
strcasecmp("snds",filename_extension(filename))&&
|
||||
strcasecmp("vb",filename_extension(filename)) &&
|
||||
strcasecmp("xag",filename_extension(filename))) goto fail;
|
||||
|
||||
/* check for .MIH file */
|
||||
strcpy(filenameMIH,filename);
|
||||
@ -264,6 +265,12 @@ VGMSTREAM * init_vgmstream_ps2_mib(STREAMFILE *streamFile) {
|
||||
if(!strcasecmp("mi4",filename_extension(filename)))
|
||||
vgmstream->sample_rate = 48000;
|
||||
|
||||
//Heavy Iron Studios SNDS (The Incredibles)
|
||||
//Do a bogus check to avoid clashing with PC_SNDS IMA
|
||||
if(!strcasecmp("snds", filename_extension(filename)) &&
|
||||
(read_32bitBE(0x0, streamFile) == 0x00000000))
|
||||
vgmstream->sample_rate = 48000;
|
||||
|
||||
if(!strcasecmp("xag",filename_extension(filename))) {
|
||||
vgmstream->channels=2;
|
||||
vgmstream->sample_rate = 44100;
|
||||
|
Loading…
x
Reference in New Issue
Block a user