From cda823ea63243df943daac5b2ee35e86fe43856c Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 6 Feb 2005 20:35:06 +0000 Subject: It's kMaxMixerVolume, not 256 (we might change it to 255 eventually) svn-id: r16747 --- sound/mixer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sound/mixer.cpp') diff --git a/sound/mixer.cpp b/sound/mixer.cpp index cc74c74589..78a2e9f7dd 100644 --- a/sound/mixer.cpp +++ b/sound/mixer.cpp @@ -480,7 +480,7 @@ void Channel::mix(int16 *data, uint len) { // slightly odd divisor: the 255 reflects the fact that the maximal // value for _volume is 255, while the 127 is there because the // balance value ranges from -127 to 127. The mixer (music/sound) - // volume is in the range 0 - 256. + // volume is in the range 0 - kMaxMixerVolume. // Hence, the vol_l/vol_r values will be in that range, too int vol = _mixer->getVolumeForSoundType(_type) * _volume; -- cgit v1.2.3