diff options
-rw-r--r-- | sound/adpcm.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/adpcm.cpp b/sound/adpcm.cpp index 9522e588d0..519d0d738c 100644 --- a/sound/adpcm.cpp +++ b/sound/adpcm.cpp @@ -266,9 +266,9 @@ int16 ADPCMInputStream::decodeOKI(byte code) { diff = (code & 0x08) ? -E : E; samp = _status.last + diff; - // Clip the values to +/- 2^11 (supposed to be 12 bits) - if (samp > 2048) - samp = 2048; + // Clip the values to +/- 2^11 (supposed to be 12 bits) + if (samp > 2047) + samp = 2047; if (samp < -2048) samp = -2048; |