mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-26 14:51:50 +01:00
reduce the level of stupid in halpst looping
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@370 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
422aa45563
commit
94f49cec18
@ -32,8 +32,8 @@ VGMSTREAM * init_vgmstream_halpst(STREAMFILE *streamFile) {
|
|||||||
if (channel_count!=2) goto fail;
|
if (channel_count!=2) goto fail;
|
||||||
|
|
||||||
/* yay for redundancy, gives us something to test */
|
/* yay for redundancy, gives us something to test */
|
||||||
samples_l = dsp_nibbles_to_samples(read_32bitBE(0x18,streamFile))+2;
|
samples_l = dsp_nibbles_to_samples(read_32bitBE(0x18,streamFile))+1;
|
||||||
samples_r = dsp_nibbles_to_samples(read_32bitBE(0x50,streamFile))+2;
|
samples_r = dsp_nibbles_to_samples(read_32bitBE(0x50,streamFile))+1;
|
||||||
|
|
||||||
if (samples_l != samples_r) goto fail;
|
if (samples_l != samples_r) goto fail;
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ VGMSTREAM * init_vgmstream_halpst(STREAMFILE *streamFile) {
|
|||||||
offset = read_32bitBE(offset+8,streamFile);
|
offset = read_32bitBE(offset+8,streamFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
start_sample = dsp_nibbles_to_samples(start_nibble)+2;
|
start_sample = dsp_nibbles_to_samples(start_nibble);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user