mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-12 09:40:51 +01:00
dsp interleave in genh fixed
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@482 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
cd1e8893dd
commit
3986a97a5f
@ -179,11 +179,16 @@ VGMSTREAM * init_vgmstream_genh(STREAMFILE *streamFile) {
|
||||
break;
|
||||
case coding_NGC_DSP:
|
||||
if (channel_count > 1) {
|
||||
if (interleave < 9) {
|
||||
vgmstream->layout_type = layout_interleave_byte;
|
||||
vgmstream->interleave_block_size = interleave;
|
||||
} else if (interleave > 8) {
|
||||
vgmstream->layout_type = layout_interleave;
|
||||
vgmstream->interleave_block_size = interleave;
|
||||
} else {
|
||||
vgmstream->layout_type = layout_none;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
#ifdef VGM_USE_MPEG
|
||||
|
@ -36,7 +36,7 @@ VGMSTREAM * init_vgmstream_rws(STREAMFILE *streamFile) {
|
||||
|
||||
|
||||
switch (read_32bitLE(0x38,streamFile)) {
|
||||
case 1:
|
||||
case 0x01:
|
||||
vgmstream->sample_rate = read_32bitLE(0xE4,streamFile);
|
||||
vgmstream->num_samples = read_32bitLE(0x98,streamFile)/16*28/vgmstream->channels;
|
||||
if (loop_flag) {
|
||||
@ -44,7 +44,7 @@ switch (read_32bitLE(0x38,streamFile)) {
|
||||
vgmstream->loop_end_sample = read_32bitLE(0x98,streamFile)/16*28/vgmstream->channels;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
case 0x02:
|
||||
vgmstream->sample_rate = read_32bitLE(0x178,streamFile);
|
||||
vgmstream->num_samples = read_32bitLE(0x150,streamFile)/16*28/vgmstream->channels;
|
||||
if (loop_flag) {
|
||||
|
Loading…
Reference in New Issue
Block a user