mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-31 04:13:47 +01:00
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:
parent
94dca9a32b
commit
d67c726073
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user