mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-19 00:04:04 +01:00
Fix stereo VADPCM
This commit is contained in:
parent
7497b6370e
commit
9c9e282452
@ -119,7 +119,7 @@ void decode_vadpcm(VGMSTREAMCHANNEL* stream, sample_t* outbuf, int channelspacin
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* update hist once all frame is actually copied */
|
/* update hist once all frame is actually copied */
|
||||||
if (first_sample + sample_count == samples_per_frame) {
|
if (first_sample + sample_count / channelspacing == samples_per_frame) {
|
||||||
stream->adpcm_history2_16 = hist[6];
|
stream->adpcm_history2_16 = hist[6];
|
||||||
stream->adpcm_history1_16 = hist[7];
|
stream->adpcm_history1_16 = hist[7];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user