mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-29 19:37:30 +01:00
Support for Turok: Evolution (NGC)
Support for Teenage Mutant Ninja Turtles 2 (NGC) renamed ps2_rkv.c to rkv.c fixes in tec.c git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@749 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
28c6dc5d5a
commit
130f1f4dff
@ -122,7 +122,7 @@ META_OBJS=meta/adx_header.o \
|
||||
meta/sfl.o \
|
||||
meta/pcm.o \
|
||||
meta/ps2_psw.o \
|
||||
meta/ps2_rkv.o \
|
||||
meta/rkv.o \
|
||||
meta/ps2_vas.o \
|
||||
meta/ps2_tec.o \
|
||||
meta/ps2_enth.o \
|
||||
@ -220,7 +220,9 @@ META_OBJS=meta/adx_header.o \
|
||||
meta/myspd.o \
|
||||
meta/his.o \
|
||||
meta/ps2_ast.o \
|
||||
meta/dmsg_segh.o
|
||||
meta/dmsg_segh.o \
|
||||
meta/ngc_aaap.o \
|
||||
meta/ngc_dsp_tmnt2.o
|
||||
|
||||
OBJECTS=vgmstream.o streamfile.o util.o $(CODING_OBJS) $(LAYOUT_OBJS) $(META_OBJS)
|
||||
|
||||
|
@ -426,6 +426,10 @@
|
||||
RelativePath=".\meta\nds_swav.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\meta\ngc_aaap.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\meta\ngc_adpdtk.c"
|
||||
>
|
||||
@ -442,6 +446,10 @@
|
||||
RelativePath=".\meta\ngc_dsp_std.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\meta\ngc_dsp_tmnt2.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\meta\ngc_dsp_ygo.c"
|
||||
>
|
||||
@ -622,10 +630,6 @@
|
||||
RelativePath=".\meta\ps2_psw.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\meta\ps2_rkv.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\meta\ps2_rnd.c"
|
||||
>
|
||||
@ -734,6 +738,10 @@
|
||||
RelativePath=".\meta\riff.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\meta\rkv.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\meta\rs03.c"
|
||||
>
|
||||
|
@ -80,7 +80,7 @@ libmeta_la_SOURCES += sli.c
|
||||
libmeta_la_SOURCES += sfl.c
|
||||
libmeta_la_SOURCES += pcm.c
|
||||
libmeta_la_SOURCES += ps2_psw.c
|
||||
libmeta_la_SOURCES += ps2_rkv.c
|
||||
libmeta_la_SOURCES += rkv.c
|
||||
libmeta_la_SOURCES += ps2_vas.c
|
||||
libmeta_la_SOURCES += ps2_tec.c
|
||||
libmeta_la_SOURCES += ps2_enth.c
|
||||
@ -178,5 +178,7 @@ libmeta_la_SOURCES += myspd.c
|
||||
libmeta_la_SOURCES += his.c
|
||||
libmeta_la_SOURCES += ps2_ast.c
|
||||
libmeta_la_SOURCES += dmsg_segh.c
|
||||
libmeta_la_SOURCES += ngc_aaap.c
|
||||
libmeta_la_SOURCES += ngc_dsp_tmnt2.c
|
||||
|
||||
EXTRA_DIST = meta.h
|
||||
|
@ -110,13 +110,14 @@ VGMSTREAM * init_vgmstream_dc_str_v2(STREAMFILE *streamFile) {
|
||||
/* check extension, case insensitive */
|
||||
streamFile->get_name(streamFile,filename,sizeof(filename));
|
||||
if (strcasecmp("str",filename_extension(filename))) goto fail;
|
||||
#if 0
|
||||
|
||||
/* check header */
|
||||
if ((read_32bitBE(0x00,streamFile) != 0x00000002) &&
|
||||
(read_32bitBE(0x10,streamFile) != 0x00000100) &&
|
||||
(read_32bitBE(0x1C,streamFile) != 0x1F000000))
|
||||
goto fail;
|
||||
#endif
|
||||
if ((read_32bitLE(0x00,streamFile) != 0x2))
|
||||
goto fail;
|
||||
if ((read_32bitLE(0x10,streamFile) != 0x10000))
|
||||
goto fail;
|
||||
if ((read_32bitLE(0x1C,streamFile) != 0x1F))
|
||||
goto fail;
|
||||
|
||||
channel_count = 2;
|
||||
|
||||
|
@ -119,6 +119,7 @@ VGMSTREAM * init_vgmstream_fsb4(STREAMFILE *streamFile) {
|
||||
loop_flag = 0;
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (read_32bitBE(0x60,streamFile) != 0x20000882 &&
|
||||
read_32bitBE(0x60,streamFile) != 0x20100002 &&
|
||||
read_32bitBE(0x60,streamFile) != 0x20100882 &&
|
||||
@ -129,6 +130,9 @@ VGMSTREAM * init_vgmstream_fsb4(STREAMFILE *streamFile) {
|
||||
} else {
|
||||
channel_count = 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
channel_count = (uint16_t)read_16bitLE(0x6E,streamFile);
|
||||
|
||||
/* build the VGMSTREAM */
|
||||
vgmstream = allocate_vgmstream(channel_count,loop_flag);
|
||||
|
@ -35,7 +35,7 @@ VGMSTREAM * init_vgmstream_gsp_gsb(STREAMFILE *streamFile) {
|
||||
goto fail;
|
||||
|
||||
channel_count = (uint16_t)read_16bitBE(0x3A,streamFileGSP);
|
||||
loop_flag = (read_32bitBE(0x64,streamFileGSP) !=0xFFFFFFFF);
|
||||
loop_flag = (read_32bitBE(0x64,streamFileGSP) != 0xFFFFFFFF);
|
||||
header_len = read_32bitBE(0x1C,streamFileGSP);
|
||||
|
||||
coef1_start = header_len-0x4C;
|
||||
|
@ -441,4 +441,8 @@ VGMSTREAM * init_vgmstream_ps2_ast(STREAMFILE* streamFile);
|
||||
|
||||
VGMSTREAM * init_vgmstream_dmsg(STREAMFILE* streamFile);
|
||||
|
||||
VGMSTREAM * init_vgmstream_ngc_aaap(STREAMFILE* streamFile);
|
||||
|
||||
VGMSTREAM * init_vgmstream_ngc_dsp_tmnt2(STREAMFILE* streamFile);
|
||||
|
||||
#endif
|
||||
|
83
src/meta/ngc_aaap.c
Normal file
83
src/meta/ngc_aaap.c
Normal file
@ -0,0 +1,83 @@
|
||||
#include "meta.h"
|
||||
#include "../util.h"
|
||||
|
||||
/* AAAP
|
||||
found in: Turok Evoluttion (NGC)
|
||||
*/
|
||||
VGMSTREAM * init_vgmstream_ngc_aaap(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
int i, j;
|
||||
off_t start_offset;
|
||||
off_t coef_table[8] = {0x24,0x84,0xE4,0x144,0x1A4,0x204,0x264,0x2C4};
|
||||
|
||||
/* check extension, case insensitive */
|
||||
streamFile->get_name(streamFile,filename,sizeof(filename));
|
||||
if (strcasecmp("aaap",filename_extension(filename)))
|
||||
goto fail;
|
||||
|
||||
/* check header */
|
||||
if (read_32bitBE(0x00,streamFile) != 0x41414170) /* "AAAp" */
|
||||
goto fail;
|
||||
|
||||
loop_flag = 0;
|
||||
channel_count = (uint16_t)read_16bitBE(0x06,streamFile);
|
||||
|
||||
if ((read_32bitBE(0x0C,streamFile)+0x8+(channel_count*0x60)) != (get_streamfile_size(streamFile)))
|
||||
goto fail;
|
||||
|
||||
/* build the VGMSTREAM */
|
||||
vgmstream = allocate_vgmstream(channel_count,loop_flag);
|
||||
if (!vgmstream) goto fail;
|
||||
|
||||
/* fill in the vital statistics */
|
||||
start_offset = 0x8 + (channel_count * 0x60);
|
||||
vgmstream->channels = channel_count;
|
||||
vgmstream->sample_rate = read_32bitBE(0x10,streamFile);
|
||||
vgmstream->coding_type = coding_NGC_DSP;
|
||||
vgmstream->num_samples = read_32bitBE(0x8,streamFile);
|
||||
if (loop_flag) {
|
||||
vgmstream->loop_start_sample = 0;
|
||||
vgmstream->loop_end_sample = read_32bitBE(0x8,streamFile);
|
||||
}
|
||||
|
||||
if (channel_count == 1) {
|
||||
vgmstream->layout_type = layout_none;
|
||||
} else if (channel_count > 1) {
|
||||
vgmstream->layout_type = layout_interleave;
|
||||
vgmstream->interleave_block_size = (uint16_t)read_16bitBE(0x04,streamFile);
|
||||
}
|
||||
|
||||
vgmstream->meta_type = meta_NGC_AAAP;
|
||||
|
||||
{
|
||||
for (j=0;j<vgmstream->channels;j++) {
|
||||
for (i=0;i<16;i++) {
|
||||
vgmstream->ch[j].adpcm_coef[i] = read_16bitBE(coef_table[j]+i*2,streamFile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* open the file for reading */
|
||||
{
|
||||
int i;
|
||||
STREAMFILE * file;
|
||||
file = streamFile->open(streamFile,filename,STREAMFILE_DEFAULT_BUFFER_SIZE);
|
||||
if (!file) goto fail;
|
||||
for (i=0;i<channel_count;i++) {
|
||||
vgmstream->ch[i].streamfile = file;
|
||||
vgmstream->ch[i].channel_start_offset=
|
||||
vgmstream->ch[i].offset=start_offset+
|
||||
vgmstream->interleave_block_size*i;
|
||||
}
|
||||
}
|
||||
|
||||
return vgmstream;
|
||||
|
||||
fail:
|
||||
/* clean up anything we may have opened */
|
||||
if (vgmstream) close_vgmstream(vgmstream);
|
||||
return NULL;
|
||||
}
|
75
src/meta/ngc_dsp_tmnt2.c
Normal file
75
src/meta/ngc_dsp_tmnt2.c
Normal file
@ -0,0 +1,75 @@
|
||||
#include "meta.h"
|
||||
#include "../util.h"
|
||||
|
||||
/* DSP
|
||||
Teenage Mutant Ninja Turtles 2 (NGC)
|
||||
*/
|
||||
VGMSTREAM * init_vgmstream_ngc_dsp_tmnt2(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
int i, j;
|
||||
off_t start_offset;
|
||||
off_t coef_table[8] = {0x90,0xD0,0x110,0x150,0x190,0x1D0,0x210,0x250};
|
||||
|
||||
/* check extension, case insensitive */
|
||||
streamFile->get_name(streamFile,filename,sizeof(filename));
|
||||
if (strcasecmp("dsp",filename_extension(filename)))
|
||||
goto fail;
|
||||
|
||||
/* check header */
|
||||
if ((read_32bitBE(0x00,streamFile)+0x800) != (get_streamfile_size(streamFile)))
|
||||
goto fail;
|
||||
|
||||
loop_flag = (read_32bitBE(0x10,streamFile) != 0x0);
|
||||
channel_count = 2;
|
||||
|
||||
/* build the VGMSTREAM */
|
||||
vgmstream = allocate_vgmstream(channel_count,loop_flag);
|
||||
if (!vgmstream) goto fail;
|
||||
|
||||
/* fill in the vital statistics */
|
||||
start_offset = 0x800;
|
||||
vgmstream->channels = channel_count;
|
||||
vgmstream->sample_rate = read_32bitBE(0x04,streamFile);
|
||||
vgmstream->coding_type = coding_NGC_DSP;
|
||||
vgmstream->num_samples = (read_32bitBE(0x00,streamFile)/channel_count/8*14);
|
||||
if (loop_flag) {
|
||||
vgmstream->loop_start_sample = (read_32bitBE(0x14,streamFile)/channel_count/8*14);
|
||||
vgmstream->loop_end_sample = (read_32bitBE(0x00,streamFile)/channel_count/8*14);
|
||||
}
|
||||
|
||||
vgmstream->layout_type = layout_interleave;
|
||||
vgmstream->interleave_block_size = 0x100;
|
||||
vgmstream->meta_type = meta_NGC_DSP_TMNT2;
|
||||
|
||||
{
|
||||
for (j=0;j<vgmstream->channels;j++) {
|
||||
for (i=0;i<16;i++) {
|
||||
vgmstream->ch[j].adpcm_coef[i] = read_16bitBE(coef_table[j]+i*2,streamFile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* open the file for reading */
|
||||
{
|
||||
int i;
|
||||
STREAMFILE * file;
|
||||
file = streamFile->open(streamFile,filename,STREAMFILE_DEFAULT_BUFFER_SIZE);
|
||||
if (!file) goto fail;
|
||||
for (i=0;i<channel_count;i++) {
|
||||
vgmstream->ch[i].streamfile = file;
|
||||
vgmstream->ch[i].channel_start_offset=
|
||||
vgmstream->ch[i].offset=start_offset+
|
||||
vgmstream->interleave_block_size*i;
|
||||
}
|
||||
}
|
||||
|
||||
return vgmstream;
|
||||
|
||||
fail:
|
||||
/* clean up anything we may have opened */
|
||||
if (vgmstream) close_vgmstream(vgmstream);
|
||||
return NULL;
|
||||
}
|
@ -6,9 +6,12 @@
|
||||
VGMSTREAM * init_vgmstream_ps2_tec(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
int current_chunk;
|
||||
off_t start_offset;
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
int dataBuffer = 0;
|
||||
int Founddata = 0;
|
||||
|
||||
/* check extension, case insensitive */
|
||||
streamFile->get_name(streamFile,filename,sizeof(filename));
|
||||
@ -17,13 +20,13 @@ VGMSTREAM * init_vgmstream_ps2_tec(STREAMFILE *streamFile) {
|
||||
loop_flag = 0;
|
||||
channel_count = 2;
|
||||
|
||||
/* build the VGMSTREAM */
|
||||
/* build the VGMSTREAM */
|
||||
vgmstream = allocate_vgmstream(channel_count,loop_flag);
|
||||
if (!vgmstream) goto fail;
|
||||
|
||||
/* fill in the vital statistics */
|
||||
start_offset = 0x0;
|
||||
vgmstream->channels = channel_count;
|
||||
/* fill in the vital statistics */
|
||||
start_offset = 0x0;
|
||||
vgmstream->channels = channel_count;
|
||||
vgmstream->sample_rate = 44100;
|
||||
vgmstream->coding_type = coding_PSX_badflags;
|
||||
vgmstream->num_samples = get_streamfile_size(streamFile)*28/16/channel_count;
|
||||
@ -32,10 +35,39 @@ VGMSTREAM * init_vgmstream_ps2_tec(STREAMFILE *streamFile) {
|
||||
vgmstream->loop_end_sample = get_streamfile_size(streamFile)*28/16/channel_count;
|
||||
}
|
||||
|
||||
vgmstream->layout_type = layout_interleave;
|
||||
vgmstream->interleave_block_size = 0x4000;
|
||||
vgmstream->meta_type = meta_PS2_TEC;
|
||||
// Check the first frame header (should be always zero)
|
||||
if ((uint8_t)(read_8bit(0x00,streamFile) != 0x0))
|
||||
goto fail;
|
||||
|
||||
// Scan for Interleave
|
||||
{
|
||||
current_chunk = 16;
|
||||
while (!Founddata && current_chunk < 65536) {
|
||||
dataBuffer = (uint8_t)(read_8bit(current_chunk,streamFile));
|
||||
if (dataBuffer == 0x0) { /* "0x0" */
|
||||
Founddata = 1;
|
||||
break;
|
||||
}
|
||||
current_chunk = current_chunk + 16;
|
||||
}
|
||||
}
|
||||
|
||||
// Cancel if we can't find an interleave
|
||||
if (Founddata == 0) {
|
||||
goto fail;
|
||||
} else if (Founddata == 1) {
|
||||
vgmstream->layout_type = layout_interleave;
|
||||
vgmstream->interleave_block_size = current_chunk;
|
||||
}
|
||||
|
||||
// Cancel if the first flag isn't invalid/bad
|
||||
if ((uint8_t)(read_8bit(0x01,streamFile) == 0x0))
|
||||
goto fail;
|
||||
if ((uint8_t)(read_8bit(0x01+current_chunk,streamFile) == 0x0))
|
||||
goto fail;
|
||||
|
||||
vgmstream->meta_type = meta_PS2_TEC;
|
||||
|
||||
/* open the file for reading */
|
||||
{
|
||||
int i;
|
||||
|
@ -1,75 +1,77 @@
|
||||
#include "meta.h"
|
||||
#include "../util.h"
|
||||
|
||||
/* RKV (from Legacy of Kain - Blood Omen 2) */
|
||||
VGMSTREAM * init_vgmstream_ps2_rkv(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
off_t start_offset=0;
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
|
||||
/* check extension, case insensitive */
|
||||
streamFile->get_name(streamFile,filename,sizeof(filename));
|
||||
if (strcasecmp("rkv",filename_extension(filename))) goto fail;
|
||||
|
||||
// Some RKV got info @ offset 0
|
||||
// Some other @ offset 4
|
||||
if(read_32bitLE(0,streamFile)==0)
|
||||
start_offset=4;
|
||||
|
||||
loop_flag = (read_32bitLE(start_offset+4,streamFile)!=0xFFFFFFFF);
|
||||
channel_count = read_32bitLE(start_offset+0x0c,streamFile)+1;
|
||||
|
||||
/* build the VGMSTREAM */
|
||||
vgmstream = allocate_vgmstream(channel_count,loop_flag);
|
||||
if (!vgmstream) goto fail;
|
||||
|
||||
/* fill in the vital statistics */
|
||||
vgmstream->channels = channel_count;
|
||||
vgmstream->sample_rate = read_32bitLE(start_offset,streamFile);
|
||||
vgmstream->coding_type = coding_PSX;
|
||||
|
||||
// sometimes sample count is not set on the header
|
||||
vgmstream->num_samples = (get_streamfile_size(streamFile)-0x800)/16*28/channel_count;
|
||||
|
||||
if (loop_flag) {
|
||||
vgmstream->loop_start_sample = read_32bitLE(start_offset+4,streamFile);
|
||||
vgmstream->loop_end_sample = read_32bitLE(start_offset+8,streamFile);
|
||||
}
|
||||
|
||||
start_offset = 0x800;
|
||||
|
||||
if((get_streamfile_size(streamFile)-0x800)%0x400)
|
||||
{
|
||||
vgmstream->layout_type = layout_interleave_shortblock;
|
||||
vgmstream->interleave_smallblock_size=((get_streamfile_size(streamFile)-0x800)%0x400)/channel_count;
|
||||
} else {
|
||||
vgmstream->layout_type = layout_interleave;
|
||||
}
|
||||
|
||||
vgmstream->interleave_block_size = 0x400;
|
||||
vgmstream->meta_type = meta_PS2_RKV;
|
||||
/* open the file for reading */
|
||||
{
|
||||
int i;
|
||||
STREAMFILE * file;
|
||||
file = streamFile->open(streamFile,filename,STREAMFILE_DEFAULT_BUFFER_SIZE);
|
||||
if (!file) goto fail;
|
||||
for (i=0;i<channel_count;i++) {
|
||||
vgmstream->ch[i].streamfile = file;
|
||||
|
||||
vgmstream->ch[i].channel_start_offset=
|
||||
vgmstream->ch[i].offset=start_offset+
|
||||
vgmstream->interleave_block_size*i;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return vgmstream;
|
||||
|
||||
/* clean up anything we may have opened */
|
||||
fail:
|
||||
if (vgmstream) close_vgmstream(vgmstream);
|
||||
return NULL;
|
||||
}
|
||||
#include "meta.h"
|
||||
#include "../util.h"
|
||||
|
||||
/* RKV (from Legacy of Kain - Blood Omen 2) */
|
||||
VGMSTREAM * init_vgmstream_ps2_rkv(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
off_t start_offset=0;
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
|
||||
/* check extension, case insensitive */
|
||||
streamFile->get_name(streamFile,filename,sizeof(filename));
|
||||
if (strcasecmp("rkv",filename_extension(filename))) goto fail;
|
||||
|
||||
// Some RKV got info @ offset 0
|
||||
// Some other @ offset 4
|
||||
if(read_32bitLE(0,streamFile)==0)
|
||||
start_offset=4;
|
||||
|
||||
loop_flag = (read_32bitLE(start_offset+4,streamFile)!=0xFFFFFFFF);
|
||||
channel_count = read_32bitLE(start_offset+0x0c,streamFile)+1;
|
||||
|
||||
/* build the VGMSTREAM */
|
||||
vgmstream = allocate_vgmstream(channel_count,loop_flag);
|
||||
if (!vgmstream) goto fail;
|
||||
|
||||
/* fill in the vital statistics */
|
||||
vgmstream->channels = channel_count;
|
||||
vgmstream->sample_rate = read_32bitLE(start_offset,streamFile);
|
||||
vgmstream->coding_type = coding_PSX;
|
||||
|
||||
// sometimes sample count is not set on the header
|
||||
vgmstream->num_samples = (get_streamfile_size(streamFile)-0x800)/16*28/channel_count;
|
||||
|
||||
if (loop_flag) {
|
||||
vgmstream->loop_start_sample = read_32bitLE(start_offset+4,streamFile);
|
||||
vgmstream->loop_end_sample = read_32bitLE(start_offset+8,streamFile);
|
||||
}
|
||||
|
||||
start_offset = 0x800;
|
||||
|
||||
if((get_streamfile_size(streamFile)-0x800)%0x400)
|
||||
{
|
||||
vgmstream->layout_type = layout_interleave_shortblock;
|
||||
vgmstream->interleave_smallblock_size=((get_streamfile_size(streamFile)-0x800)%0x400)/channel_count;
|
||||
} else {
|
||||
vgmstream->layout_type = layout_interleave;
|
||||
}
|
||||
|
||||
vgmstream->interleave_block_size = 0x400;
|
||||
vgmstream->meta_type = meta_PS2_RKV;
|
||||
/* open the file for reading */
|
||||
{
|
||||
int i;
|
||||
STREAMFILE * file;
|
||||
file = streamFile->open(streamFile,filename,STREAMFILE_DEFAULT_BUFFER_SIZE);
|
||||
if (!file) goto fail;
|
||||
for (i=0;i<channel_count;i++) {
|
||||
vgmstream->ch[i].streamfile = file;
|
||||
|
||||
vgmstream->ch[i].channel_start_offset=
|
||||
vgmstream->ch[i].offset=start_offset+
|
||||
vgmstream->interleave_block_size*i;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return vgmstream;
|
||||
|
||||
/* clean up anything we may have opened */
|
||||
fail:
|
||||
if (vgmstream) close_vgmstream(vgmstream);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -109,7 +109,7 @@ VGMSTREAM * (*init_vgmstream_fcns[])(STREAMFILE *streamFile) = {
|
||||
init_vgmstream_ps2_dxh,
|
||||
init_vgmstream_ps2_psh,
|
||||
init_vgmstream_pcm_scd,
|
||||
init_vgmstream_pcm_ps2,
|
||||
init_vgmstream_pcm_ps2,
|
||||
init_vgmstream_ps2_rkv,
|
||||
init_vgmstream_ps2_psw,
|
||||
init_vgmstream_ps2_vas,
|
||||
@ -241,6 +241,8 @@ VGMSTREAM * (*init_vgmstream_fcns[])(STREAMFILE *streamFile) = {
|
||||
init_vgmstream_his,
|
||||
init_vgmstream_ps2_ast,
|
||||
init_vgmstream_dmsg,
|
||||
init_vgmstream_ngc_aaap,
|
||||
init_vgmstream_ngc_dsp_tmnt2,
|
||||
};
|
||||
|
||||
#define INIT_VGMSTREAM_FCNS (sizeof(init_vgmstream_fcns)/sizeof(init_vgmstream_fcns[0]))
|
||||
@ -2392,6 +2394,12 @@ void describe_vgmstream(VGMSTREAM * vgmstream, char * desc, int length) {
|
||||
case meta_PONA_PSX:
|
||||
snprintf(temp,TEMPSIZE,"Policenauts BGM header");
|
||||
break;
|
||||
case meta_NGC_AAAP:
|
||||
snprintf(temp,TEMPSIZE,"Turok: Evolution 'AAAp' dsp header");
|
||||
break;
|
||||
case meta_NGC_DSP_TMNT2:
|
||||
snprintf(temp,TEMPSIZE,"TMNT2 dsp header");
|
||||
break;
|
||||
default:
|
||||
snprintf(temp,TEMPSIZE,"THEY SHOULD HAVE SENT A POET");
|
||||
}
|
||||
|
@ -265,7 +265,7 @@ typedef enum {
|
||||
meta_PS2_DXH, /* Tokobot Plus - Myteries of the Karakuri */
|
||||
meta_PS2_PSH, /* Dawn of Mana - Seiken Densetsu 4 */
|
||||
meta_PCM_SCD, /* Ephemeral Fantasia */
|
||||
meta_PCM_PS2, /* Lunar - Eternal Blue */
|
||||
meta_PCM_PS2, /* Lunar - Eternal Blue */
|
||||
meta_PS2_RKV, /* Legacy of Kain - Blood Omen 2 */
|
||||
meta_PS2_PSW, /* Rayman Raving Rabbids */
|
||||
meta_PS2_VAS, /* Pro Baseball Spirits 5 */
|
||||
@ -285,41 +285,41 @@ typedef enum {
|
||||
meta_PS2_XA2, /* XG3 Extreme-G Racing */
|
||||
meta_IDSP, /* Chronicles of Narnia */
|
||||
meta_IDSP2, /* Soul Calibur */
|
||||
meta_IDSP3, /* Mario Strikers Charged */
|
||||
meta_SPT_SPD, /* Variouis */
|
||||
meta_IDSP3, /* Mario Strikers Charged */
|
||||
meta_SPT_SPD, /* Variouis */
|
||||
meta_ISH_ISD, /* Various */
|
||||
meta_GSP_GSB, /* Various */
|
||||
meta_YDSP, /* WWE Day of Reckoning */
|
||||
meta_FFCC_STR, /* Final Fantasy: Crystal Chronicles */
|
||||
meta_FFCC_STR, /* Final Fantasy: Crystal Chronicles */
|
||||
|
||||
|
||||
meta_WAA_WAC_WAD_WAM, /* Beyond Good & Evil */
|
||||
meta_GCA, /* Metal Slug Anthology */
|
||||
meta_MSVP, /* Popcap Hits */
|
||||
meta_NGC_SSM, /* Golden Gashbell Full Power */
|
||||
meta_PS2_JOE, /* Wall-E / Pixar games */
|
||||
meta_GCA, /* Metal Slug Anthology */
|
||||
meta_MSVP, /* Popcap Hits */
|
||||
meta_NGC_SSM, /* Golden Gashbell Full Power */
|
||||
meta_PS2_JOE, /* Wall-E / Pixar games */
|
||||
|
||||
meta_NGC_YMF, /* WWE WrestleMania X8 */
|
||||
meta_SADL, /* .sad */
|
||||
meta_PS2_CCC, /* Tokyo Xtreme Racer DRIFT 2 */
|
||||
meta_PSX_FAG, /* Jackie Chan - Stuntmaster */
|
||||
meta_PS2_MIHB, /* Merged MIH+MIB */
|
||||
meta_NGC_PDT, /* Mario Party 6 */
|
||||
meta_DC_ASD, /* Miss Moonligh */
|
||||
meta_NAOMI_SPSD, /* Guilty Gear X */
|
||||
meta_NGC_YMF, /* WWE WrestleMania X8 */
|
||||
meta_SADL, /* .sad */
|
||||
meta_PS2_CCC, /* Tokyo Xtreme Racer DRIFT 2 */
|
||||
meta_PSX_FAG, /* Jackie Chan - Stuntmaster */
|
||||
meta_PS2_MIHB, /* Merged MIH+MIB */
|
||||
meta_NGC_PDT, /* Mario Party 6 */
|
||||
meta_DC_ASD, /* Miss Moonligh */
|
||||
meta_NAOMI_SPSD, /* Guilty Gear X */
|
||||
|
||||
meta_RSD2VAG, /* RSD2VAG */
|
||||
meta_RSD2VAG, /* RSD2VAG */
|
||||
meta_RSD2PCMB, /* RSD2PCMB */
|
||||
meta_RSD2XADP, /* RSD2XADP */
|
||||
meta_RSD3VAG, /* RSD3VAG */
|
||||
meta_RSD3GADP, /* RSD3GADP */
|
||||
meta_RSD3PCM, /* RSD3PCM */
|
||||
meta_RSD3VAG, /* RSD3VAG */
|
||||
meta_RSD3GADP, /* RSD3GADP */
|
||||
meta_RSD3PCM, /* RSD3PCM */
|
||||
meta_RSD3PCMB, /* RSD3PCMB */
|
||||
meta_RSD4PCMB, /* RSD4PCMB */
|
||||
meta_RSD4PCM, /* RSD4PCM */
|
||||
meta_RSD4RADP, /* RSD4RADP */
|
||||
meta_RSD4VAG, /* RSD4VAG */
|
||||
meta_RSD6VAG, /* RSD6VAG */
|
||||
meta_RSD4PCM, /* RSD4PCM */
|
||||
meta_RSD4RADP, /* RSD4RADP */
|
||||
meta_RSD4VAG, /* RSD4VAG */
|
||||
meta_RSD6VAG, /* RSD6VAG */
|
||||
meta_RSD6WADP, /* RSD6WADP */
|
||||
meta_RSD6XADP, /* RSD6XADP */
|
||||
meta_RSD6RADP, /* RSD6RADP */
|
||||
@ -336,17 +336,18 @@ typedef enum {
|
||||
meta_EMFF_PS2, /* Eidos Music File Format for PS2*/
|
||||
meta_EMFF_NGC, /* Eidos Music File Format for NGC/WII */
|
||||
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_PS2_SPS, /* Ape Escape 2 */
|
||||
meta_PS2_XA2_RRP, /* RC Revenge Pro */
|
||||
meta_PS2_STM, /* Red Dead Revolver .stm, renamed .ps2stm */
|
||||
meta_PS2_VSF, /* Musashi: Samurai Legend */
|
||||
meta_PS2_VSF_TTA, /* Tiny Toon Adventures: Defenders of the Universe */
|
||||
meta_ADS, /* Gauntlet Dark Legends (GC) */
|
||||
meta_PS2_SPS, /* Ape Escape 2 */
|
||||
meta_PS2_XA2_RRP, /* RC Revenge Pro */
|
||||
meta_PS2_STM, /* Red Dead Revolver .stm, renamed .ps2stm */
|
||||
meta_NGC_DSP_TMNT2, /* Teenage Mutant Ninja Turtles 2 */
|
||||
|
||||
meta_XBOX_WAVM, /* XBOX WAVM File */
|
||||
meta_XBOX_RIFF, /* XBOX RIFF/WAVE File */
|
||||
meta_XBOX_WVS, /* XBOX WVS */
|
||||
meta_NGC_WVS, /* NGC WVS */
|
||||
meta_NGC_WVS, /* NGC WVS */
|
||||
meta_XBOX_STMA, /* XBOX STMA */
|
||||
meta_XBOX_MATX, /* XBOX MATX */
|
||||
meta_XBOX_XMU, /* XBOX XMU */
|
||||
@ -429,6 +430,7 @@ typedef enum {
|
||||
meta_XBOX_HLWAV, /* Half Life 2 (XBOX) */
|
||||
meta_PS2_AST, /* Some KOEI game (PS2) */
|
||||
meta_DMSG, /* Nightcaster II - Equinox (XBOX) */
|
||||
meta_NGC_AAAP, /* Turok: Evolution (NGC) */
|
||||
} meta_t;
|
||||
|
||||
typedef struct {
|
||||
|
@ -80,9 +80,10 @@ char * extension_list[] = {
|
||||
"pdt\0PDT Audio File (*.PDT)\0", /* Mario Party and some other games */
|
||||
#endif
|
||||
|
||||
"2dx\0""2DX Audio File (*.2DX)\0",
|
||||
"2dx\0""2DX Audio File (*.2DX)\0",
|
||||
|
||||
"aax\0AAX Audio File (*.AAX)\0",
|
||||
"aaap\0AAAP Audio File (*.AAAP)\0",
|
||||
"aax\0AAX Audio File (*.AAX)\0",
|
||||
"acm\0ACM Audio File (*.ACM)\0",
|
||||
"adpcm\0ADPCM Audio File (*.ADPCM)\0",
|
||||
"adp\0ADP Audio File (*.ADP)\0",
|
||||
@ -112,14 +113,14 @@ char * extension_list[] = {
|
||||
"brstm;brstmspm\0BRSTM Audio File (*.BRSTM)\0",
|
||||
|
||||
"caf\0CAF Audio File (*.CAF)\0",
|
||||
"capdsp\0CAPDSP Audio File (*.CAPDSP)\0", /* Capcom custom coefs */
|
||||
"ccc\0CCC Audio File (*.CCC)\0",
|
||||
"capdsp\0CAPDSP Audio File (*.CAPDSP)\0", /* Capcom custom coefs */
|
||||
"ccc\0CCC Audio File (*.CCC)\0",
|
||||
"cfn\0CFN Audio File (*.CFN)\0",
|
||||
"cnk\0CNK Audio File (*.CNK)\0",
|
||||
|
||||
"dcs\0DCS Audio File (*.DCS)\0",
|
||||
"de2\0DE2 Audio File (*.DE2)\0",
|
||||
"dmsg\0DMSG Audio File (*.DMSG)\0",
|
||||
"dmsg\0DMSG Audio File (*.DMSG)\0",
|
||||
"dsp\0DSP Audio File (*.DSP)\0",
|
||||
"dtk\0DTK Audio File (*.DTK)\0",
|
||||
"dvi\0DVI Audio File (*.DVI)\0",
|
||||
@ -154,7 +155,7 @@ char * extension_list[] = {
|
||||
"ild\0ILD Audio File (*.ILD)\0",
|
||||
"int\0PS2 RAW Interleaved PCM (*.INT)\0",
|
||||
"isd\0ISD Audio File (*.ISD)\0",
|
||||
"isws\0ISWS Audio File (*.ISWS)\0",
|
||||
"isws\0ISWS Audio File (*.ISWS)\0",
|
||||
"ivaud\0IVAUD Audio File (*.IVAUD)\0",
|
||||
"ivb\0IVB Audio File (*.IVB)\0",
|
||||
|
||||
@ -215,7 +216,7 @@ char * extension_list[] = {
|
||||
"rwx\0RWX Audio File (*.RWX)\0",
|
||||
"rxw\0PS2 RXWS File (*.RXW)\0",
|
||||
|
||||
"sab\0SAB Audio File (*.SAB)\0",
|
||||
"sab\0SAB Audio File (*.SAB)\0",
|
||||
"sad\0SAD Audio File (*.SAD)\0",
|
||||
"sap\0SAP Audio File (*.SAP)\0",
|
||||
"sc\0SC Audio File (*.SC)\0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user