mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-21 04:48:21 +01:00
Fix PtADPCM clicks when seeking
This commit is contained in:
parent
0614aa7f7c
commit
64bd25c8d9
@ -80,7 +80,7 @@ void decode_ptadpcm(VGMSTREAMCHANNEL *stream, sample_t *outbuf, int channelspaci
|
||||
sample_count++;
|
||||
|
||||
/* decode nibbles */
|
||||
for (i = first_sample; i < first_sample + samples_to_do; i++) {
|
||||
for (i = 0; i < samples_per_frame - 2; i++) {
|
||||
uint8_t nibbles = frame[0x05 + i/2];
|
||||
int32_t sample;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user