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:
halleyscometsw 2008-07-03 20:09:36 +00:00
parent f944267644
commit 253dd60d66

View File

@ -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;