diff --git a/src/libvgmstream.vcproj b/src/libvgmstream.vcproj index 7cd0ff45..1d03e4cd 100644 --- a/src/libvgmstream.vcproj +++ b/src/libvgmstream.vcproj @@ -1,7 +1,7 @@  + + diff --git a/src/meta/meta.h b/src/meta/meta.h index 0cb950b2..b4594d74 100644 --- a/src/meta/meta.h +++ b/src/meta/meta.h @@ -349,4 +349,6 @@ VGMSTREAM * init_vgmstream_ps2_tk5(STREAMFILE *streamFile); VGMSTREAM * init_vgmstream_ps2_vsf_tta(STREAMFILE *streamFile); +VGMSTREAM * init_vgmstream_ads(STREAMFILE *streamFile); + #endif diff --git a/src/meta/rsd.c b/src/meta/rsd.c index ad4e288c..3ba56fe1 100644 --- a/src/meta/rsd.c +++ b/src/meta/rsd.c @@ -702,7 +702,8 @@ fail: } -/* RSD6XMA *//* +#if 0 +/* RSD6XMA */ VGMSTREAM * init_vgmstream_rsd6xma(STREAMFILE *streamFile) { VGMSTREAM * vgmstream = NULL; char filename[260]; @@ -711,24 +712,24 @@ VGMSTREAM * init_vgmstream_rsd6xma(STREAMFILE *streamFile) { int loop_flag; int channel_count; - /* check extension, case insensitive *//* + /* check extension, case insensitive */ streamFile->get_name(streamFile,filename,sizeof(filename)); if (strcasecmp("rsd",filename_extension(filename))) goto fail; - /* check header *//* - if (read_32bitBE(0x0,streamFile) != 0x52534436) /* RSD6 *//* + /* check header */ + if (read_32bitBE(0x0,streamFile) != 0x52534436) /* RSD6 */ goto fail; - if (read_32bitBE(0x4,streamFile) != 0x584D4120) /* XMA *//* + if (read_32bitBE(0x4,streamFile) != 0x584D4120) /* XMA */ goto fail; loop_flag = 0; channel_count = read_32bitLE(0x8,streamFile); - /* build the VGMSTREAM *//* + /* build the VGMSTREAM */ vgmstream = allocate_vgmstream(channel_count,loop_flag); if (!vgmstream) goto fail; - /* fill in the vital statistics *//* + /* fill in the vital statistics */ start_offset = 0x800; vgmstream->channels = channel_count; vgmstream->sample_rate = read_32bitLE(0x10,streamFile); @@ -743,7 +744,7 @@ VGMSTREAM * init_vgmstream_rsd6xma(STREAMFILE *streamFile) { vgmstream->interleave_block_size = 0x10; vgmstream->meta_type = meta_RSD6XMA; - /* open the file for reading *//* + /* open the file for reading */ { int i; STREAMFILE * file; @@ -768,7 +769,9 @@ VGMSTREAM * init_vgmstream_rsd6xma(STREAMFILE *streamFile) { return vgmstream; fail: - /* clean up anything we may have opened *//* + /* clean up anything we may have opened */ if (vgmstream) close_vgmstream(vgmstream); return NULL; -}*/ \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/src/vgmstream.c b/src/vgmstream.c index d366f775..0753b834 100644 --- a/src/vgmstream.c +++ b/src/vgmstream.c @@ -194,6 +194,7 @@ VGMSTREAM * (*init_vgmstream_fcns[])(STREAMFILE *streamFile) = { init_vgmstream_nds_rrds, init_vgmstream_ps2_tk5, init_vgmstream_ps2_vsf_tta, + init_vgmstream_ads, }; #define INIT_VGMSTREAM_FCNS (sizeof(init_vgmstream_fcns)/sizeof(init_vgmstream_fcns[0])) @@ -2094,6 +2095,9 @@ void describe_vgmstream(VGMSTREAM * vgmstream, char * desc, int length) { case meta_PS2_VSF_TTA: snprintf(temp,TEMPSIZE,"VSF with SMSS Header"); break; + case meta_ADS: + snprintf(temp,TEMPSIZE,"dhSS Header"); + break; default: snprintf(temp,TEMPSIZE,"THEY SHOULD HAVE SENT A POET"); } diff --git a/src/vgmstream.h b/src/vgmstream.h index 5b23babd..85d58fa4 100644 --- a/src/vgmstream.h +++ b/src/vgmstream.h @@ -314,6 +314,7 @@ typedef enum { meta_SAT_BAKA, /* Crypt Killer */ meta_PS2_VSF, /* Musashi: Samurai Legend */ meta_PS2_VSF_TTA, /* Tiny Toon Adventures: Defenders of the Universe */ + meta_ADS, /* Gauntlet Dark Legends (GC) */ meta_XBOX_WAVM, /* XBOX WAVM File */ meta_XBOX_RIFF, /* XBOX RIFF/WAVE File */