mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-18 15:54:05 +01:00
Tiberian Sun reports having an odd number of samples, but doesn't actually have a byte for that extra nibble. We ignore it.
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@281 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
f944267644
commit
253dd60d66
@ -64,6 +64,7 @@ VGMSTREAM * init_vgmstream_ws_aud(STREAMFILE *streamFile) {
|
||||
|
||||
/* fill in the vital statistics */
|
||||
vgmstream->num_samples = read_32bitLE(0x06,streamFile)/bytes_per_sample/channel_count;
|
||||
if (vgmstream->num_samples & 1) vgmstream->num_samples--;
|
||||
vgmstream->sample_rate = (uint16_t)read_16bitLE(0x00,streamFile);
|
||||
|
||||
vgmstream->coding_type = coding_type;
|
||||
|
Loading…
x
Reference in New Issue
Block a user