[Scummvm-cvs-logs] SF.net SVN: scummvm:[47161] scummvm/trunk/engines/teenagent/music.cpp
megath at users.sourceforge.net
megath at users.sourceforge.net
Fri Jan 8 17:31:49 CET 2010
Revision: 47161
http://scummvm.svn.sourceforge.net/scummvm/?rev=47161&view=rev
Author: megath
Date: 2010-01-08 16:31:48 +0000 (Fri, 08 Jan 2010)
Log Message:
-----------
fixed invalid volume setting
Modified Paths:
--------------
scummvm/trunk/engines/teenagent/music.cpp
Modified: scummvm/trunk/engines/teenagent/music.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/music.cpp 2010-01-08 16:27:29 UTC (rev 47160)
+++ scummvm/trunk/engines/teenagent/music.cpp 2010-01-08 16:31:48 UTC (rev 47161)
@@ -95,7 +95,8 @@
} else if ((cmd & 0xF0) == 0x40) {
byte vol = stream->readByte();
//debug(1, "%02x: set volume %02x -> %02x", cmd, row.channels[(cmd & 0x0F) - 1].volume, vol);
- row.channels[(cmd & 0x0F) - 1].volume = vol;
+ //channel volume 0x40 * music volume 0x40 mixed with high bytes
+ row.channels[(cmd & 0x0F) - 1].volume = vol * 16;
} else {
debug(0, "unhandled music command %02x", cmd);
}
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