aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/player.cpp
diff options
context:
space:
mode:
authorColin Snover2016-07-01 12:38:59 -0500
committerColin Snover2016-07-01 12:43:39 -0500
commitb7dcf5f6c1f560d668d3857012e98a91bcf881d4 (patch)
treece039725fa19114b06fdd20e614fd3d3bc4e743b /engines/mads/player.cpp
parente8552cf96c91094bd69d7ca5859008a0f18f7957 (diff)
downloadscummvm-rg350-b7dcf5f6c1f560d668d3857012e98a91bcf881d4.tar.gz
scummvm-rg350-b7dcf5f6c1f560d668d3857012e98a91bcf881d4.tar.bz2
scummvm-rg350-b7dcf5f6c1f560d668d3857012e98a91bcf881d4.zip
SCI32: Use better audio fading algorithm
Using the one from SCI2.1mid makes fades very slow because SDL has a larger audio buffer than SSCI DOS. This new algorithm is based on wall time so will always fade at the correct speed, although the larger buffers will have a coarser granularity so the fades may not be as smooth as in the original engine. If anyone cares, the fade volume could be mixed into individual samples in `readBuffer` instead of applying just once per complete buffer. SSCI did not do this, however, so this implementation should be pretty accurate.
Diffstat (limited to 'engines/mads/player.cpp')
0 files changed, 0 insertions, 0 deletions