aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Kagerer2010-09-04 11:40:24 +0000
committerFlorian Kagerer2010-09-04 11:40:24 +0000
commit37d28b2fe506a7ef93315c934d3813c71bc5f882 (patch)
tree9e5b6aa432fa8ff7e382bd41db9b77818f72a6bc
parent7836bb87fda6d166786036a33987c5c75bfbce15 (diff)
downloadscummvm-rg350-37d28b2fe506a7ef93315c934d3813c71bc5f882.tar.gz
scummvm-rg350-37d28b2fe506a7ef93315c934d3813c71bc5f882.tar.bz2
scummvm-rg350-37d28b2fe506a7ef93315c934d3813c71bc5f882.zip
FM-TOWNS AUDIO: minor fix in cd audio volume setting
svn-id: r52521
-rw-r--r--sound/softsynth/fmtowns_pc98/towns_audio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/softsynth/fmtowns_pc98/towns_audio.cpp b/sound/softsynth/fmtowns_pc98/towns_audio.cpp
index 5e1ac0201f..66a83f74ce 100644
--- a/sound/softsynth/fmtowns_pc98/towns_audio.cpp
+++ b/sound/softsynth/fmtowns_pc98/towns_audio.cpp
@@ -1406,7 +1406,7 @@ void TownsAudioInterface::updateOutputVolume() {
// 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);