fix .wsi, files are missing incomplete last frame

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@774 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2010-04-10 12:38:04 +00:00
parent 94dca9a32b
commit d67c726073

View File

@ -943,7 +943,8 @@ VGMSTREAM * init_vgmstream_wsi(STREAMFILE *streamFile) {
if (!vgmstream) goto fail;
/* fill in the vital statistics */
vgmstream->num_samples = header[0].sample_count;
/* incomplete last frame is missing */
vgmstream->num_samples = header[0].sample_count/14*14;
vgmstream->sample_rate = header[0].sample_rate;
vgmstream->loop_start_sample = dsp_nibbles_to_samples(