mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-29 00:34:33 +01:00
Adjust VPK code to fix some oddities
this is my first time at coding so see if there's some big goof-up i made up here
This commit is contained in:
parent
8b6bc7fb52
commit
dd88a38f8c
@ -34,7 +34,7 @@ VGMSTREAM * init_vgmstream_ps2_vpk(STREAMFILE *streamFile) {
|
|||||||
|
|
||||||
/* Check for Compression Scheme */
|
/* Check for Compression Scheme */
|
||||||
vgmstream->coding_type = coding_PSX;
|
vgmstream->coding_type = coding_PSX;
|
||||||
vgmstream->num_samples = read_32bitLE(0x04,streamFile)/16*28;
|
vgmstream->num_samples = ps_bytes_to_samples(read_32bitLE(0x04,streamFile),channels);
|
||||||
|
|
||||||
/* Get loop point values */
|
/* Get loop point values */
|
||||||
if(vgmstream->loop_flag) {
|
if(vgmstream->loop_flag) {
|
||||||
@ -42,7 +42,7 @@ VGMSTREAM * init_vgmstream_ps2_vpk(STREAMFILE *streamFile) {
|
|||||||
vgmstream->loop_end_sample = vgmstream->num_samples;
|
vgmstream->loop_end_sample = vgmstream->num_samples;
|
||||||
}
|
}
|
||||||
|
|
||||||
vgmstream->interleave_block_size = read_32bitLE(0x0C,streamFile)/2;
|
vgmstream->interleave_block_size = read_32bitLE(0x0C,streamFile)/channels;
|
||||||
vgmstream->layout_type = layout_interleave;
|
vgmstream->layout_type = layout_interleave;
|
||||||
vgmstream->meta_type = meta_PS2_VPK;
|
vgmstream->meta_type = meta_PS2_VPK;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user