aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sound/mixer.cpp2
-rw-r--r--sound/mixer.h4
2 files changed, 3 insertions, 3 deletions
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;
diff --git a/sound/mixer.h b/sound/mixer.h
index 898ed55f13..b75edcb4b0 100644
--- a/sound/mixer.h
+++ b/sound/mixer.h
@@ -255,14 +255,14 @@ public:
/**
* Set the volume for the given sound type.
*
- * @param volume the new global volume, 0-256
+ * @param volume the new global volume, 0-kMaxMixerVolume
*/
void setVolumeForSoundType(SoundType type, int volume);
/**
* Query the global volume.
*
- * @return the global music volume, 0-256
+ * @return the global music volume, 0-kMaxMixerVolume
*/
int getVolumeForSoundType(SoundType type) const;