diff options
author | Strangerke | 2016-05-21 01:05:53 +0200 |
---|---|---|
committer | Strangerke | 2016-05-21 01:05:53 +0200 |
commit | 4c6ef29b49a92270553b57c9dcb78e4b2fa99c79 (patch) | |
tree | 99136172bf37b6192e6ebd5b18a25750a3774728 /engines | |
parent | 8a946705167a56d8046d13201498ed1bcea413a4 (diff) | |
download | scummvm-rg350-4c6ef29b49a92270553b57c9dcb78e4b2fa99c79.tar.gz scummvm-rg350-4c6ef29b49a92270553b57c9dcb78e4b2fa99c79.tar.bz2 scummvm-rg350-4c6ef29b49a92270553b57c9dcb78e4b2fa99c79.zip |
GNAP: Implement setSoundVolume
Diffstat (limited to 'engines')
-rw-r--r-- | engines/gnap/sound.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/gnap/sound.cpp b/engines/gnap/sound.cpp index 103a649e59..a4a59d7390 100644 --- a/engines/gnap/sound.cpp +++ b/engines/gnap/sound.cpp @@ -57,7 +57,9 @@ void SoundMan::stopSound(int resourceId) { } void SoundMan::setSoundVolume(int resourceId, int volume) { - // TODO + const int index = find(resourceId); + int realVol = volume * 2.55; + _vm->_mixer->setChannelVolume(_items[index]._handle, realVol); } bool SoundMan::isSoundPlaying(int resourceId) { |