[Scummvm-cvs-logs] SF.net SVN: scummvm:[40704] scummvm/trunk/engines/agi/global.cpp

sev at users.sourceforge.net sev at users.sourceforge.net
Mon May 18 23:37:13 CEST 2009


Revision: 40704
          http://scummvm.svn.sourceforge.net/scummvm/?rev=40704&view=rev
Author:   sev
Date:     2009-05-18 21:37:13 +0000 (Mon, 18 May 2009)

Log Message:
-----------
Implement FR#2103654: "AGI sound volume"

Modified Paths:
--------------
    scummvm/trunk/engines/agi/global.cpp

Modified: scummvm/trunk/engines/agi/global.cpp
===================================================================
--- scummvm/trunk/engines/agi/global.cpp	2009-05-18 21:35:08 UTC (rev 40703)
+++ scummvm/trunk/engines/agi/global.cpp	2009-05-18 21:37:13 UTC (rev 40704)
@@ -55,6 +55,11 @@
 
 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) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list