mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-12-01 09:37:21 +01:00
add type 9 genh, IMA
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@333 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
dddf5701d1
commit
78a975e081
@ -46,6 +46,7 @@ VGMSTREAM * init_vgmstream_genh(STREAMFILE *streamFile) {
|
|||||||
/* 6 = SDX2 */
|
/* 6 = SDX2 */
|
||||||
/* 7 = DVI IMA */
|
/* 7 = DVI IMA */
|
||||||
/* 8 = MPEG-1 Layer III, possibly also the MPEG-2 and 2.5 extensions */
|
/* 8 = MPEG-1 Layer III, possibly also the MPEG-2 and 2.5 extensions */
|
||||||
|
/* 9 = IMA */
|
||||||
/* ... others to come */
|
/* ... others to come */
|
||||||
switch (read_32bitLE(0x18,streamFile)) {
|
switch (read_32bitLE(0x18,streamFile)) {
|
||||||
case 0:
|
case 0:
|
||||||
@ -79,6 +80,9 @@ VGMSTREAM * init_vgmstream_genh(STREAMFILE *streamFile) {
|
|||||||
coding = coding_MPEG1_L3;
|
coding = coding_MPEG1_L3;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
case 9:
|
||||||
|
coding = coding_IMA;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
@ -123,6 +127,7 @@ VGMSTREAM * init_vgmstream_genh(STREAMFILE *streamFile) {
|
|||||||
case coding_SDX2:
|
case coding_SDX2:
|
||||||
case coding_PSX:
|
case coding_PSX:
|
||||||
case coding_DVI_IMA:
|
case coding_DVI_IMA:
|
||||||
|
case coding_IMA:
|
||||||
vgmstream->interleave_block_size = interleave;
|
vgmstream->interleave_block_size = interleave;
|
||||||
if (channel_count > 1)
|
if (channel_count > 1)
|
||||||
{
|
{
|
||||||
@ -167,6 +172,7 @@ VGMSTREAM * init_vgmstream_genh(STREAMFILE *streamFile) {
|
|||||||
case coding_SDX2:
|
case coding_SDX2:
|
||||||
case coding_SDX2_int:
|
case coding_SDX2_int:
|
||||||
case coding_DVI_IMA:
|
case coding_DVI_IMA:
|
||||||
|
case coding_IMA:
|
||||||
case coding_PCM8:
|
case coding_PCM8:
|
||||||
if (vgmstream->layout_type == layout_interleave) {
|
if (vgmstream->layout_type == layout_interleave) {
|
||||||
if (interleave >= 512) {
|
if (interleave >= 512) {
|
||||||
|
Loading…
Reference in New Issue
Block a user