diff options
author | Colin Snover | 2017-06-16 20:04:46 -0500 |
---|---|---|
committer | Colin Snover | 2017-06-17 13:09:27 -0500 |
commit | 0d63d2a7adbe4381d945228a9da4471c9409a8f1 (patch) | |
tree | c3fbaaab774fa632d25708e82e3750ee70abf697 /common/debug.h | |
parent | 12afcaec49caf4dad5af9fc46af607044bd4b82f (diff) | |
download | scummvm-rg350-0d63d2a7adbe4381d945228a9da4471c9409a8f1.tar.gz scummvm-rg350-0d63d2a7adbe4381d945228a9da4471c9409a8f1.tar.bz2 scummvm-rg350-0d63d2a7adbe4381d945228a9da4471c9409a8f1.zip |
VIDEO: Wrap out-of-range VMD audio samples instead of clipping
The 16-bit DPCM decompressors in SSCI and Urban Runner use a 16-bit
register to store sample data, without any special handling of
overflow. As such, out-of-range samples simply wrap around, rather
than getting clipped.
It is not totally clear if the wrapping behaviour was intentionally
exploited to handle extreme transients, but in any case, videos
like GK2 5280.VMD that generate samples outside the signed 16-bit
range cause a loud pop when using clipping, but play back correctly
when wrapping.
Diffstat (limited to 'common/debug.h')
0 files changed, 0 insertions, 0 deletions