#include <SoundManager.h>
Definition at line 44 of file SoundManager.h.
◆ SoundManager()
SoundManager::SoundManager |
( |
| ) |
|
◆ ~SoundManager()
SoundManager::~SoundManager |
( |
| ) |
|
◆ assign()
void SoundManager::assign |
( |
int |
source_index, |
|
|
int |
hardware_index |
|
) |
| |
|
private |
◆ createSound()
SoundPtr SoundManager::createSound |
( |
Ogre::String |
filename, |
|
|
Ogre::String |
resource_group_name = "" |
|
) |
| |
- Parameters
-
filename | WAV file. |
resource_group_name | Leave empty to auto-search all groups (classic behavior). |
Definition at line 354 of file SoundManager.cpp.
◆ getHardwareSource()
ALuint RoR::SoundManager::getHardwareSource |
( |
int |
hardware_index | ) |
|
|
inlineprivate |
◆ getNumHardwareSources()
int RoR::SoundManager::getNumHardwareSources |
( |
| ) |
|
|
inline |
◆ isDisabled()
bool RoR::SoundManager::isDisabled |
( |
| ) |
|
|
inline |
◆ loadWAVFile()
bool SoundManager::loadWAVFile |
( |
Ogre::String |
filename, |
|
|
ALuint |
buffer, |
|
|
Ogre::String |
resource_group_name = "" |
|
) |
| |
|
private |
◆ pauseAllSounds()
void SoundManager::pauseAllSounds |
( |
| ) |
|
◆ recomputeAllSources()
void SoundManager::recomputeAllSources |
( |
| ) |
|
|
private |
◆ recomputeSource()
void SoundManager::recomputeSource |
( |
int |
source_index, |
|
|
int |
reason, |
|
|
float |
vfl, |
|
|
Ogre::Vector3 * |
vvec |
|
) |
| |
|
private |
◆ resumeAllSounds()
void SoundManager::resumeAllSounds |
( |
| ) |
|
◆ retire()
void SoundManager::retire |
( |
int |
source_index | ) |
|
|
private |
◆ setCamera()
void SoundManager::setCamera |
( |
Ogre::Vector3 |
position, |
|
|
Ogre::Vector3 |
direction, |
|
|
Ogre::Vector3 |
up, |
|
|
Ogre::Vector3 |
velocity |
|
) |
| |
◆ setMasterVolume()
void SoundManager::setMasterVolume |
( |
float |
v | ) |
|
◆ Sound
◆ audio_buffer_file_name
◆ audio_buffers
◆ audio_buffers_in_use_count
int RoR::SoundManager::audio_buffers_in_use_count = 0 |
|
private |
◆ audio_device
ALCdevice* RoR::SoundManager::audio_device = nullptr |
|
private |
◆ audio_sources
◆ audio_sources_most_audible
std::pair<int, float> RoR::SoundManager::audio_sources_most_audible[MAX_AUDIO_BUFFERS] |
|
private |
◆ camera_position
Ogre::Vector3 RoR::SoundManager::camera_position = Ogre::Vector3::ZERO |
|
private |
◆ hardware_sources
◆ hardware_sources_in_use_count
int RoR::SoundManager::hardware_sources_in_use_count = 0 |
|
private |
◆ hardware_sources_map
◆ hardware_sources_num
int RoR::SoundManager::hardware_sources_num = 0 |
|
private |
◆ MAX_AUDIO_BUFFERS
const unsigned int RoR::SoundManager::MAX_AUDIO_BUFFERS = 8192 |
|
static |
◆ MAX_DISTANCE
const float SoundManager::MAX_DISTANCE = 500.0f |
|
static |
◆ MAX_HARDWARE_SOURCES
const unsigned int RoR::SoundManager::MAX_HARDWARE_SOURCES = 32 |
|
static |
◆ REFERENCE_DISTANCE
const float SoundManager::REFERENCE_DISTANCE = 7.5f |
|
static |
◆ ROLLOFF_FACTOR
const float SoundManager::ROLLOFF_FACTOR = 1.0f |
|
static |
◆ sound_context
ALCcontext* RoR::SoundManager::sound_context = nullptr |
|
private |
The documentation for this class was generated from the following files: