Fixed PS2 MSS sample count and description

This commit is contained in:
bnnm 2016-12-16 20:29:02 +01:00
parent 64a14c9158
commit 2a7b645d23
2 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,11 @@
#include "meta.h"
#include "../util.h"
/**
* Guerrilla's MSS
*
* Found in ShellShock Nam '67, Killzone (PS2)
*/
VGMSTREAM * init_vgmstream_ps2_mss(STREAMFILE *streamFile) {
VGMSTREAM * vgmstream = NULL;
char filename[PATH_LIMIT];
@ -26,9 +31,10 @@ VGMSTREAM * init_vgmstream_ps2_mss(STREAMFILE *streamFile) {
/* fill in the vital statistics */
start_offset = read_32bitLE(0x08,streamFile);
vgmstream->channels = channel_count;
/*datasize = read_32bitLE(0x0c,streamFile) */
vgmstream->sample_rate = read_32bitLE(0x10,streamFile);
vgmstream->coding_type = coding_PSX;
vgmstream->num_samples = read_32bitLE(0x1C,streamFile);
vgmstream->num_samples = read_32bitLE(0x1C,streamFile);/* / 16 * 28 */
vgmstream->coding_type = coding_PSX;
if (channel_count == 1)

View File

@ -3222,7 +3222,7 @@ void describe_vgmstream(VGMSTREAM * vgmstream, char * desc, int length) {
snprintf(temp,TEMPSIZE,"Mini Ninjas 'STR' header");
break;
case meta_PS2_MSS:
snprintf(temp,TEMPSIZE,"ShellShock Nam '67 'MSCC' header");
snprintf(temp,TEMPSIZE,"Guerilla MSCC header");
break;
case meta_PS2_HSF:
snprintf(temp,TEMPSIZE,"Lowrider 'HSF' header");