ALL: Resolve multiple clang warnings
This commit is contained in:
parent
d91c8b9add
commit
4d02f67bd1
20 changed files with 38 additions and 47 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue