mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-12-01 01:27:20 +01:00
Merge pull request #600 from slashiee/diva
Fix random init with .diva looping
This commit is contained in:
commit
01a03cc40b
@ -7,7 +7,7 @@ VGMSTREAM * init_vgmstream_diva(STREAMFILE *streamFile) {
|
||||
off_t start_offset;
|
||||
int channel_count;
|
||||
int loop_end;
|
||||
int loop_flag = (loop_end != 0);
|
||||
int loop_flag;
|
||||
|
||||
/* checks */
|
||||
if (!check_extensions(streamFile, "diva"))
|
||||
@ -20,6 +20,8 @@ VGMSTREAM * init_vgmstream_diva(STREAMFILE *streamFile) {
|
||||
channel_count = read_8bit(0x1C, streamFile);
|
||||
loop_end = read_32bitLE(0x18, streamFile);
|
||||
|
||||
loop_flag = (loop_end != 0);
|
||||
|
||||
/* build the VGMSTREAM */
|
||||
vgmstream = allocate_vgmstream(channel_count, loop_flag);
|
||||
if (!vgmstream) goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user