aboutsummaryrefslogtreecommitdiff
path: root/audio/mixer.cpp
diff options
context:
space:
mode:
authorMax Horn2013-12-10 18:34:48 +0100
committerMax Horn2014-03-30 14:38:02 +0200
commit4d02f67bd1dc3b7fc9eb8729f92a4d5d41a6831a (patch)
tree244c52e0f31f6d4afbff8ea46c08fc013729874e /audio/mixer.cpp
parentd91c8b9add255828bb363020077d91a49ebe3d99 (diff)
downloadscummvm-rg350-4d02f67bd1dc3b7fc9eb8729f92a4d5d41a6831a.tar.gz
scummvm-rg350-4d02f67bd1dc3b7fc9eb8729f92a4d5d41a6831a.tar.bz2
scummvm-rg350-4d02f67bd1dc3b7fc9eb8729f92a4d5d41a6831a.zip
ALL: Resolve multiple clang warnings
Diffstat (limited to 'audio/mixer.cpp')
-rw-r--r--audio/mixer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/audio/mixer.cpp b/audio/mixer.cpp
index 0620d07a29..16cf5640eb 100644
--- a/audio/mixer.cpp
+++ b/audio/mixer.cpp
@@ -333,7 +333,7 @@ void MixerImpl::stopHandle(SoundHandle handle) {
}
void MixerImpl::muteSoundType(SoundType type, bool mute) {
- assert(0 <= type && type < ARRAYSIZE(_soundTypeSettings));
+ assert(0 <= (int)type && (int)type < ARRAYSIZE(_soundTypeSettings));
_soundTypeSettings[type].mute = mute;
for (int i = 0; i != NUM_CHANNELS; ++i) {
@@ -343,7 +343,7 @@ void MixerImpl::muteSoundType(SoundType type, bool mute) {
}
bool MixerImpl::isSoundTypeMuted(SoundType type) const {
- assert(0 <= type && type < ARRAYSIZE(_soundTypeSettings));
+ assert(0 <= (int)type && (int)type < ARRAYSIZE(_soundTypeSettings));
return _soundTypeSettings[type].mute;
}
@@ -468,7 +468,7 @@ bool MixerImpl::hasActiveChannelOfType(SoundType type) {
}
void MixerImpl::setVolumeForSoundType(SoundType type, int volume) {
- assert(0 <= type && type < ARRAYSIZE(_soundTypeSettings));
+ assert(0 <= (int)type && (int)type < ARRAYSIZE(_soundTypeSettings));
// Check range
if (volume > kMaxMixerVolume)
@@ -489,7 +489,7 @@ void MixerImpl::setVolumeForSoundType(SoundType type, int volume) {
}
int MixerImpl::getVolumeForSoundType(SoundType type) const {
- assert(0 <= type && type < ARRAYSIZE(_soundTypeSettings));
+ assert(0 <= (int)type && (int)type < ARRAYSIZE(_soundTypeSettings));
return _soundTypeSettings[type].volume;
}