From b2e33edb5b8f4a5604d3030ec0a4a73515223113 Mon Sep 17 00:00:00 2001 From: halleyscometsw Date: Tue, 1 Jul 2008 03:19:02 +0000 Subject: [PATCH] add 8bit pcm genh support git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@264 51a99a44-fe44-0410-b1ba-c3e57ba2b86b --- src/meta/genh.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/meta/genh.c b/src/meta/genh.c index a616732e..d73d2842 100644 --- a/src/meta/genh.c +++ b/src/meta/genh.c @@ -35,6 +35,7 @@ VGMSTREAM * init_vgmstream_genh(STREAMFILE *streamFile) { /* 2 = NGC ADP/DTK ADPCM */ /* 3 = 16bit big endian PCM */ /* 4 = 16bit little endian PCM */ + /* 5 - 8bit PCM */ /* ... others to come */ switch (read_32bitLE(0x18,streamFile)) { case 0: @@ -53,6 +54,9 @@ VGMSTREAM * init_vgmstream_genh(STREAMFILE *streamFile) { case 4: coding = coding_PCM16LE; break; + case 5: + coding = coding_PCM8; + break; default: goto fail; } @@ -93,6 +97,7 @@ VGMSTREAM * init_vgmstream_genh(STREAMFILE *streamFile) { switch (coding) { case coding_PCM16LE: case coding_PCM16BE: + case coding_PCM8: case coding_PSX: vgmstream->interleave_block_size = interleave; if (channel_count > 1) @@ -126,6 +131,7 @@ VGMSTREAM * init_vgmstream_genh(STREAMFILE *streamFile) { case coding_PSX: case coding_PCM16BE: case coding_PCM16LE: + case coding_PCM8: if (vgmstream->layout_type == layout_interleave) { if (interleave >= 512) { chstreamfile =