diff options
author | Peter Kohaut | 2019-03-06 20:32:45 +0100 |
---|---|---|
committer | Peter Kohaut | 2019-03-06 20:41:02 +0100 |
commit | d4e7e957b0ec43168e2bf663fb53bbbdf7752fcb (patch) | |
tree | e55f5c9a31069046c256fb9de44f04c8b2329a99 /engines/bladerunner/audio_mixer.cpp | |
parent | b8966ff1ad4fe95cdb7be33e94d18d757031f03a (diff) | |
download | scummvm-rg350-d4e7e957b0ec43168e2bf663fb53bbbdf7752fcb.tar.gz scummvm-rg350-d4e7e957b0ec43168e2bf663fb53bbbdf7752fcb.tar.bz2 scummvm-rg350-d4e7e957b0ec43168e2bf663fb53bbbdf7752fcb.zip |
BLADERUNNER: Fixed panning of speech
Cleanup of other sound pannings
Diffstat (limited to 'engines/bladerunner/audio_mixer.cpp')
-rw-r--r-- | engines/bladerunner/audio_mixer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/bladerunner/audio_mixer.cpp b/engines/bladerunner/audio_mixer.cpp index eb2214e84b..b1562f33f8 100644 --- a/engines/bladerunner/audio_mixer.cpp +++ b/engines/bladerunner/audio_mixer.cpp @@ -171,7 +171,7 @@ void AudioMixer::tick() { channel->volumeDelta = 0.0f; } - _vm->_mixer->setChannelVolume(channel->handle, channel->volume * 255 / 100); + _vm->_mixer->setChannelVolume(channel->handle, (channel->volume * Audio::Mixer::kMaxChannelVolume) / 100); // map [0..100] to [0..kMaxChannelVolume] if (channel->volume <= 0.0f) { stop(i, 0); @@ -185,7 +185,7 @@ void AudioMixer::tick() { channel->panDelta = 0.0f; } - _vm->_mixer->setChannelBalance(channel->handle, channel->pan * 127 / 100); + _vm->_mixer->setChannelBalance(channel->handle, (channel->pan * 127) / 100); // map [-100..100] to [-127..127] } if (!_vm->_mixer->isSoundHandleActive(channel->handle) || channel->stream->endOfStream()) { |