weird broken loop from Metal Gear Rising - Revengeance Demo

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@1003 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2012-11-03 13:06:04 +00:00
parent 30e33d70a2
commit a73fad53f5

View File

@ -111,6 +111,10 @@ VGMSTREAM * init_vgmstream_adx(STREAMFILE *streamFile) {
/* high-pass cutoff frequency, always 500 that I've seen */
cutoff = (uint16_t)read_16bitBE(0x10,streamFile);
if (loop_start_sample == 0 && loop_end_sample == 0) {
loop_flag = 0;
}
channel_count = read_8bit(7,streamFile);
vgmstream = allocate_vgmstream(channel_count,loop_flag);
if (!vgmstream) goto fail;