MGS3 VAG2

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@947 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2011-05-08 04:09:34 +00:00
parent c98cb8f25e
commit cf60da0f24
3 changed files with 15 additions and 0 deletions

View File

@ -50,6 +50,9 @@ VGMSTREAM * init_vgmstream_ps2_vag(STREAMFILE *streamFile) {
switch(vagID) {
case '1':
channel_count=1;
break;
case '2':
channel_count=2;
break;
case 'i':
channel_count=2;
@ -116,6 +119,14 @@ VGMSTREAM * init_vgmstream_ps2_vag(STREAMFILE *streamFile) {
vgmstream->meta_type=meta_PS2_VAG1;
start_offset=0x40;
break;
case '2': // VAG2
vgmstream->layout_type=layout_interleave;
vgmstream->sample_rate = read_32bitBE(0x10,streamFile);
vgmstream->num_samples = read_32bitBE(0x0C,streamFile)/16*28;
interleave = 0x800;
vgmstream->meta_type=meta_PS2_VAG2;
start_offset=0x40;
break;
case 'i': // VAGi
vgmstream->layout_type=layout_interleave;
vgmstream->sample_rate = read_32bitBE(0x10,streamFile);

View File

@ -2851,6 +2851,9 @@ void describe_vgmstream(VGMSTREAM * vgmstream, char * desc, int length) {
break;
case meta_PS2_VAG1:
snprintf(temp,TEMPSIZE,"Konami VAG Mono header (VAG1)");
break;
case meta_PS2_VAG2:
snprintf(temp,TEMPSIZE,"Konami VAG Stereo header (VAG2)");
break;
default:
snprintf(temp,TEMPSIZE,"THEY SHOULD HAVE SENT A POET");

View File

@ -523,6 +523,7 @@ typedef enum {
meta_PS3_SGX,
meta_PS2_MTAF, // Metal Gear Solid 3 MTAF
meta_PS2_VAG1, // Metal Gear Solid 3 VAG1
meta_PS2_VAG2, // Metal Gear Solid 3 VAG2
} meta_t;
typedef struct {