mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-31 04:13:47 +01:00
add sdx2 as genh codec #6
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@267 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
3d0d7229ae
commit
2e5b731833
@ -36,6 +36,7 @@ VGMSTREAM * init_vgmstream_genh(STREAMFILE *streamFile) {
|
||||
/* 3 = 16bit big endian PCM */
|
||||
/* 4 = 16bit little endian PCM */
|
||||
/* 5 - 8bit PCM */
|
||||
/* 6 - SDX2 */
|
||||
/* ... others to come */
|
||||
switch (read_32bitLE(0x18,streamFile)) {
|
||||
case 0:
|
||||
@ -57,6 +58,9 @@ VGMSTREAM * init_vgmstream_genh(STREAMFILE *streamFile) {
|
||||
case 5:
|
||||
coding = coding_PCM8;
|
||||
break;
|
||||
case 6:
|
||||
coding = coding_SDX2;
|
||||
break;
|
||||
default:
|
||||
goto fail;
|
||||
}
|
||||
@ -98,6 +102,7 @@ VGMSTREAM * init_vgmstream_genh(STREAMFILE *streamFile) {
|
||||
case coding_PCM16LE:
|
||||
case coding_PCM16BE:
|
||||
case coding_PCM8:
|
||||
case coding_SDX2:
|
||||
case coding_PSX:
|
||||
vgmstream->interleave_block_size = interleave;
|
||||
if (channel_count > 1)
|
||||
@ -131,6 +136,7 @@ VGMSTREAM * init_vgmstream_genh(STREAMFILE *streamFile) {
|
||||
case coding_PSX:
|
||||
case coding_PCM16BE:
|
||||
case coding_PCM16LE:
|
||||
case coding_SDX2:
|
||||
case coding_PCM8:
|
||||
if (vgmstream->layout_type == layout_interleave) {
|
||||
if (interleave >= 512) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user