need to divide bytes by channel count to get samples

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@256 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2008-06-25 19:31:00 +00:00
parent d0135eaa99
commit 05ca1c8d29

View File

@ -34,11 +34,11 @@ VGMSTREAM * init_vgmstream_ps2_bmdx(STREAMFILE *streamFile) {
/* Check for Compression Scheme */
vgmstream->coding_type = coding_PSX;
vgmstream->num_samples = read_32bitLE(0x0c,streamFile)*28/16;
vgmstream->num_samples = read_32bitLE(0x0c,streamFile)*28/16/channel_count;
/* Get loop point values */
if(vgmstream->loop_flag) {
vgmstream->loop_start_sample = read_32bitLE(0x10,streamFile)*28/16;
vgmstream->loop_start_sample = read_32bitLE(0x10,streamFile)*28/16/channel_count;
vgmstream->loop_end_sample = vgmstream->num_samples;
}