Added PCM coding to FSB4 for Rocket Knight (PC)

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@798 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
bxaimc 2010-05-31 02:55:41 +00:00
parent 746ccfac56
commit 184012931a

View File

@ -200,6 +200,18 @@ VGMSTREAM * init_vgmstream_fsb4(STREAMFILE *streamFile) {
vgmstream->loop_end_sample = read_32bitLE(0x50,streamFile);
}
break;
/* Rocket Knight (PC) */
case 0x50210000:
vgmstream->coding_type = coding_PCM16LE;
vgmstream->layout_type = layout_interleave;
vgmstream->interleave_block_size = 0x2;
vgmstream->num_samples = (read_32bitLE(0x54,streamFile))/4/channel_count;
if (loop_flag) {
vgmstream->loop_start_sample = 0;
vgmstream->loop_end_sample = read_32bitLE(0x50,streamFile);
}
break;
default:
goto fail;
}