diff options
author | Eugene Sandulenko | 2009-05-18 21:37:13 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2009-05-18 21:37:13 +0000 |
commit | 8576b162dc99dc706e21ee3d5584e86c89ed3181 (patch) | |
tree | 61856022cc9c5568fd498cac1cb07baad53aa030 /engines | |
parent | 1d90907f93fe551e3d8fee5b246ed29226724ff2 (diff) | |
download | scummvm-rg350-8576b162dc99dc706e21ee3d5584e86c89ed3181.tar.gz scummvm-rg350-8576b162dc99dc706e21ee3d5584e86c89ed3181.tar.bz2 scummvm-rg350-8576b162dc99dc706e21ee3d5584e86c89ed3181.zip |
Implement FR#2103654: "AGI sound volume"
svn-id: r40704
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agi/global.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/agi/global.cpp b/engines/agi/global.cpp index faea416590..9f38b5d775 100644 --- a/engines/agi/global.cpp +++ b/engines/agi/global.cpp @@ -55,6 +55,11 @@ void AgiBase::flipflag(int n) { void AgiEngine::setvar(int var, int val) { _game.vars[var] = val; + + if (var == vVolume) { + _mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, val * 17); + _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, val * 17); + } } int AgiEngine::getvar(int var) { |