#include "sound.h"
#include "filesys.h"
#include "log.h"
#include "porting.h"
#include "settings.h"
#include "util/numeric.h"
#include <algorithm>
#include <string>
#include <vector>
Functions | |
void | sound_volume_control (ISoundManager *sound_mgr, bool is_window_active) |
A helper function to control sound volume based on some values: sound volume settings, mute sound setting, and window activity. | |
void sound_volume_control | ( | ISoundManager * | sound_mgr, |
bool | is_window_active ) |
A helper function to control sound volume based on some values: sound volume settings, mute sound setting, and window activity.
References g_settings, Settings::getBool(), Settings::getFloat(), rangelim, Settings::setFloat(), and ISoundManager::setListenerGain().
Referenced by GUIEngine::run(), and Game::updateSound().