diff options
author | Colin Snover | 2016-07-01 12:38:59 -0500 |
---|---|---|
committer | Colin Snover | 2016-07-01 12:43:39 -0500 |
commit | b7dcf5f6c1f560d668d3857012e98a91bcf881d4 (patch) | |
tree | ce039725fa19114b06fdd20e614fd3d3bc4e743b /engines/mads | |
parent | e8552cf96c91094bd69d7ca5859008a0f18f7957 (diff) | |
download | scummvm-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')
0 files changed, 0 insertions, 0 deletions