Added ADS with dhSS & dbSS headers from Gauntlet Dark Legend (GC). Fixed RSD6XMA commenting.

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@593 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
bxaimc 2009-03-11 22:34:30 +00:00
parent dd693435c2
commit acf54a8fca
5 changed files with 25 additions and 11 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9,00"
Version="9.00"
Name="libvgmstream"
ProjectGUID="{54A6AD11-5369-4895-A06F-E255ABB99B11}"
RootNamespace="libvgmstream"
@ -204,6 +204,10 @@
RelativePath=".\meta\acm.c"
>
</File>
<File
RelativePath=".\meta\ads.c"
>
</File>
<File
RelativePath=".\meta\adx_header.c"
>

View File

@ -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

View File

@ -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;
}*/
}
#endif

View File

@ -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");
}

View File

@ -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 */