Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
sound.cpp File Reference
#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>
+ Include dependency graph for sound.cpp:

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.
 

Function Documentation

◆ sound_volume_control()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: