Update ngc_dsp_std.c

This commit is contained in:
Hexagon123 2022-09-06 01:28:25 -05:00 committed by GitHub
parent fc3bfa209d
commit fb0beb0f17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -572,13 +572,14 @@ fail:
return NULL; return NULL;
} }
/* .(mp)dsp - single header + interleaved dsp [Monopoly Party! (GC)] */ /* .STE - single header + interleaved dsp [Monopoly Party! (GC)] */
VGMSTREAM* init_vgmstream_ngc_mpdsp(STREAMFILE* sf) { VGMSTREAM* init_vgmstream_ngc_mpdsp(STREAMFILE* sf) {
dsp_meta dspm = {0}; dsp_meta dspm = {0};
/* checks */ /* checks */
/* .mpdsp: renamed since standard .dsp would catch it otherwise */ /* .STE: real extension */
if (!check_extensions(sf, "mpdsp")) /* .mpdsp: fake/renamed since standard .dsp would catch it otherwise */
if (!check_extensions(sf, "mpdsp,ste"))
goto fail; goto fail;
/* at 0x48 is extra data that could help differenciating these DSPs, but seems like /* at 0x48 is extra data that could help differenciating these DSPs, but seems like
@ -757,7 +758,7 @@ fail:
return NULL; return NULL;
} }
/* IDSP - from Next Level games [Super Mario Strikers (GC), Mario Strikers: Charged (Wii)] */ /* IDSP - from Next Level games [Super Mario Strikers (GC), Spider-Man: Friend or Foe (Wii)] */
VGMSTREAM* init_vgmstream_idsp_nl(STREAMFILE* sf) { VGMSTREAM* init_vgmstream_idsp_nl(STREAMFILE* sf) {
dsp_meta dspm = {0}; dsp_meta dspm = {0};
@ -826,7 +827,10 @@ VGMSTREAM* init_vgmstream_dsp_ddsp(STREAMFILE* sf) {
dsp_meta dspm = {0}; dsp_meta dspm = {0};
/* checks */ /* checks */
if (!check_extensions(sf, "ddsp")) /* .ddsp: assumed?
* .wav/lwav: Wacky Races
* .adp: The Tale of Despereaux */
if (!check_extensions(sf, "ddsp,adp,wav,lwav"))
goto fail; goto fail;
dspm.channels = 2; dspm.channels = 2;