diff options
author | Thanasis Antoniou | 2019-07-17 19:08:43 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-07-17 19:09:15 +0300 |
commit | caa4578add35021bfbb00b5f81359592402096a3 (patch) | |
tree | 2133b0dd3f4e71324bafc1ca65699ba79483e512 /engines/bladerunner/audio_player.cpp | |
parent | d1ff73cbb381db1876e2dbdf0457c9efc76fcd1a (diff) | |
download | scummvm-rg350-caa4578add35021bfbb00b5f81359592402096a3.tar.gz scummvm-rg350-caa4578add35021bfbb00b5f81359592402096a3.tar.bz2 scummvm-rg350-caa4578add35021bfbb00b5f81359592402096a3.zip |
BLADERUNNER: Use unsigned 32bit diff for time durations
Diffstat (limited to 'engines/bladerunner/audio_player.cpp')
-rw-r--r-- | engines/bladerunner/audio_player.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/bladerunner/audio_player.cpp b/engines/bladerunner/audio_player.cpp index 4fb2fef5af..e5045f01d8 100644 --- a/engines/bladerunner/audio_player.cpp +++ b/engines/bladerunner/audio_player.cpp @@ -66,7 +66,7 @@ void AudioPlayer::stopAll() { } } -void AudioPlayer::adjustVolume(int track, int volume, int delay, bool overrideVolume) { +void AudioPlayer::adjustVolume(int track, int volume, uint32 delay, bool overrideVolume) { if (track < 0 || track >= kTracks || !_tracks[track].isActive || _tracks[track].channel == -1) { return; } @@ -77,16 +77,16 @@ void AudioPlayer::adjustVolume(int track, int volume, int delay, bool overrideVo } _tracks[track].volume = actualVolume; - _vm->_audioMixer->adjustVolume(_tracks[track].channel, actualVolume, 60 * delay); + _vm->_audioMixer->adjustVolume(_tracks[track].channel, actualVolume, 60u * delay); } -void AudioPlayer::adjustPan(int track, int pan, int delay) { +void AudioPlayer::adjustPan(int track, int pan, uint32 delay) { if (track < 0 || track >= kTracks || !_tracks[track].isActive || _tracks[track].channel == -1) { return; } _tracks[track].pan = pan; - _vm->_audioMixer->adjustPan(_tracks[track].channel, pan, 60 * delay); + _vm->_audioMixer->adjustPan(_tracks[track].channel, pan, 60u * delay); } void AudioPlayer::setVolume(int volume) { |