[Scummvm-cvs-logs] SF.net SVN: scummvm:[52521] scummvm/trunk/sound/softsynth/fmtowns_pc98/ towns_audio.cpp
athrxx at users.sourceforge.net
athrxx at users.sourceforge.net
Sat Sep 4 13:40:24 CEST 2010
Revision: 52521
http://scummvm.svn.sourceforge.net/scummvm/?rev=52521&view=rev
Author: athrxx
Date: 2010-09-04 11:40:24 +0000 (Sat, 04 Sep 2010)
Log Message:
-----------
FM-TOWNS AUDIO: minor fix in cd audio volume setting
Modified Paths:
--------------
scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_audio.cpp
Modified: scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_audio.cpp
===================================================================
--- scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_audio.cpp 2010-09-04 11:27:03 UTC (rev 52520)
+++ scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_audio.cpp 2010-09-04 11:40:24 UTC (rev 52521)
@@ -1406,7 +1406,7 @@
// CD-AUDIO
uint32 maxVol = MAX(_outputLevel[12], _outputLevel[13]);
- int volume = (int)(maxVol * (255.0f / 63.0f));
+ int volume = (int)(((float)(maxVol * 255) / 63.0f));
int balance = maxVol ? (int)( ( ((int)_outputLevel[13] - _outputLevel[12]) * 127) / (float)maxVol) : 0;
AudioCD.setVolume(volume);
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