86 |
return; // SDL_mixer crashes without this check |
return; // SDL_mixer crashes without this check |
87 |
|
|
88 |
int soundvol = int(options::SoundVolume * MIX_MAX_VOLUME); |
int soundvol = int(options::SoundVolume * MIX_MAX_VOLUME); |
89 |
Mix_Volume(-1, Max(0, Min(soundvol, MIX_MAX_VOLUME))); |
Mix_Volume (-1, Clamp (soundvol, 0, MIX_MAX_VOLUME)); |
90 |
int musicvol = int(options::MusicVolume * MIX_MAX_VOLUME); |
int musicvol = int(options::MusicVolume * MIX_MAX_VOLUME); |
91 |
Mix_VolumeMusic(Max(0, Min(musicvol, MIX_MAX_VOLUME))); |
Mix_VolumeMusic (Clamp (musicvol, 0, MIX_MAX_VOLUME)); |
92 |
} |
} |
93 |
|
|
94 |
void |
void |