From d875c782604c726ea42307d260a5a4794642f1f6 Mon Sep 17 00:00:00 2001 From: manakoAT Date: Sat, 2 Oct 2010 22:24:00 +0000 Subject: [PATCH] add new MUSX v10 type git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@862 51a99a44-fe44-0410-b1ba-c3e57ba2b86b --- src/meta/musx.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/meta/musx.c b/src/meta/musx.c index 6e01972c..38676aeb 100644 --- a/src/meta/musx.c +++ b/src/meta/musx.c @@ -322,6 +322,21 @@ VGMSTREAM * init_vgmstream_musx_v010(STREAMFILE *streamFile) { vgmstream->loop_end_sample = read_32bitLE(0x40,streamFile); } break; + case 0x5053335F: /* PS3_ */ + start_offset = 0x800; + vgmstream->channels = channel_count; + vgmstream->sample_rate = 32000; + vgmstream->coding_type = coding_DAT4_IMA; + vgmstream->num_samples = read_32bitLE(0x40,streamFile); + vgmstream->layout_type = layout_interleave; + vgmstream->interleave_block_size = 0x20; + vgmstream->meta_type = meta_MUSX_V010; + if (loop_flag) + { + vgmstream->loop_start_sample = read_32bitLE(0x44,streamFile); + vgmstream->loop_end_sample = read_32bitLE(0x40,streamFile); + } + break; case 0x5749495F: /* WII_ */ start_offset = 0x800; vgmstream->channels = channel_count;