aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx/softseq/adlib.cpp
diff options
context:
space:
mode:
authorWalter van Niftrik2010-01-01 23:48:55 +0000
committerWalter van Niftrik2010-01-01 23:48:55 +0000
commit8407b4d723b7e0b88960a55308ba88db6a3ed3a0 (patch)
tree48b0b530a86343383d5d61cca7dd969b7dfb38cf /engines/sci/sfx/softseq/adlib.cpp
parent205f7437ea668be302e22b278a106f27af23fabf (diff)
downloadscummvm-rg350-8407b4d723b7e0b88960a55308ba88db6a3ed3a0.tar.gz
scummvm-rg350-8407b4d723b7e0b88960a55308ba88db6a3ed3a0.tar.bz2
scummvm-rg350-8407b4d723b7e0b88960a55308ba88db6a3ed3a0.zip
SCI: Adlib: Fix bug in master volume handling.
svn-id: r46865
Diffstat (limited to 'engines/sci/sfx/softseq/adlib.cpp')
-rw-r--r--engines/sci/sfx/softseq/adlib.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/sci/sfx/softseq/adlib.cpp b/engines/sci/sfx/softseq/adlib.cpp
index 7eda6a09a2..1ecf22c925 100644
--- a/engines/sci/sfx/softseq/adlib.cpp
+++ b/engines/sci/sfx/softseq/adlib.cpp
@@ -648,9 +648,12 @@ int MidiDriver_Adlib::calcVelocity(int voice, int op) {
if (_isSCI0) {
int velocity = _masterVolume;
- if ((velocity > 0) && (velocity < 13))
+ if (velocity > 0)
velocity += 3;
+ if (velocity > 15)
+ velocity = 15;
+
int insVelocity;
if (_channels[_voices[voice].channel].enableVelocity)
insVelocity = _voices[voice].velocity;