mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-31 04:13:47 +01:00
revise nibble to sample conversion
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@56 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
b5c0a6a6a7
commit
4bad78dc4d
@ -35,8 +35,8 @@ VGMSTREAM * init_vgmstream_halpst(const char * const filename) {
|
||||
if (channel_count!=2) goto fail;
|
||||
|
||||
/* yay for redundancy, gives us something to test */
|
||||
samples_l = dsp_nibbles_to_samples(read_32bitBE(0x18,infile));
|
||||
samples_r = dsp_nibbles_to_samples(read_32bitBE(0x50,infile));
|
||||
samples_l = dsp_nibbles_to_samples(read_32bitBE(0x18,infile))+2;
|
||||
samples_r = dsp_nibbles_to_samples(read_32bitBE(0x50,infile))+2;
|
||||
|
||||
if (samples_l != samples_r) goto fail;
|
||||
|
||||
@ -66,7 +66,7 @@ VGMSTREAM * init_vgmstream_halpst(const char * const filename) {
|
||||
offset = read_32bitBE(offset+8,infile);
|
||||
}
|
||||
|
||||
start_sample = dsp_nibbles_to_samples(start_nibble);
|
||||
start_sample = dsp_nibbles_to_samples(start_nibble)+2;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user