#include "irr_v3d.h"#include "config.h"#include <limits>#include <string>#include <unordered_map>#include <unordered_set>#include <vector>
Include dependency graph for sound.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | SoundFallbackPathProvider |
| class | ISoundManager |
| class | DummySoundManager |
Typedefs | |
| using | sound_handle_t = int |
| IDs for playing sounds. | |
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. | |
Variables | |
| constexpr sound_handle_t | SOUND_HANDLE_T_MAX = std::numeric_limits<sound_handle_t>::max() |
| using sound_handle_t = int |
IDs for playing sounds.
0 is for sounds that are never modified after creation. Negative numbers are invalid. Positive numbers are allocated via allocateId and are manually reference-counted.
| 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:
|
constexpr |
Referenced by ISoundManager::allocateId().