aboutsummaryrefslogtreecommitdiff
path: root/icons/scummvm.info
diff options
context:
space:
mode:
authorTorbjörn Andersson2016-07-06 20:51:28 +0200
committerTorbjörn Andersson2016-07-06 20:51:28 +0200
commit9382dab811428af7a3329deebc3449c6ab8b83c8 (patch)
tree458678d7ca56a953790a792602e85fffac735422 /icons/scummvm.info
parent20ccd3affcbefb6d1bd998c99b57a783266fb879 (diff)
downloadscummvm-rg350-9382dab811428af7a3329deebc3449c6ab8b83c8.tar.gz
scummvm-rg350-9382dab811428af7a3329deebc3449c6ab8b83c8.tar.bz2
scummvm-rg350-9382dab811428af7a3329deebc3449c6ab8b83c8.zip
AUDIO: Fix audio corruption in MS ADPCM decoder
Since _decodedSamples[] is filled with either 2 or 4 samples, we can't use 1 - (count - 1) to "ensure that acts as a FIFO". When we have 4 samples, that index will become negative, putting uninitialized data into the buffer. We could still use a similar trick, but I think it's much clearer to use an index variable like this. We need an addition variable either way.
Diffstat (limited to 'icons/scummvm.info')
0 files changed, 0 insertions, 0 deletions