add psx coding to msf

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@854 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
manakoAT 2010-09-17 19:00:21 +00:00
parent 399d570a83
commit fe0df93e2f

View File

@ -42,6 +42,26 @@ VGMSTREAM * init_vgmstream_ps3_msf(STREAMFILE *streamFile) {
start_offset = 0x40;
switch (codec_id) {
case 0x3:
{
vgmstream->coding_type = coding_PSX;
vgmstream->num_samples = read_32bitBE(0x0C,streamFile)/16/channel_count*28;
if (loop_flag) {
vgmstream->loop_start_sample = read_32bitBE(0x18,streamFile)/16/channel_count*28;
vgmstream->loop_end_sample = read_32bitBE(0x0C,streamFile)/16/channel_count*28;
}
if (channel_count == 1)
{
vgmstream->layout_type = layout_none;
}
else if (channel_count > 1)
{
vgmstream->layout_type = layout_interleave;
vgmstream->interleave_block_size = read_32bitBE(0x14,streamFile); // Not sure
}
}
break;
#ifdef VGM_USE_MPEG
case 0x7:
/* MPEG */