OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Static Public Member Functions | Static Private Attributes | List of all members
SoundManager Class Reference

#include <SoundManager.h>

Collaboration diagram for SoundManager:
[legend]

Static Public Member Functions

static void clear ()
 
static int prepareSources ()
 
static void addSoundSource (glm::vec3 p, int id, int flags)
 
static void addSoundMapEntry (int id)
 
static void addSoundDetail (int sample, float volume)
 
static void addSampleIndex (int index)
 
static int getIndex (int index, float *volume=nullptr, SoundDetail **sd=nullptr)
 
static int playSound (int index)
 
static void listenAt (glm::vec3 pos, glm::vec3 at, glm::vec3 up)
 
static void display ()
 

Static Private Attributes

static std::vector< SoundSourcesoundSources
 
static std::vector< int > soundMap
 
static std::vector< SoundDetailsoundDetails
 
static std::vector< int > sampleIndices
 

Detailed Description

Definition at line 45 of file SoundManager.h.

Member Function Documentation

void SoundManager::clear ( )
static

Definition at line 60 of file SoundManager.cpp.

int SoundManager::prepareSources ( )
static

Definition at line 69 of file SoundManager.cpp.

void SoundManager::addSoundSource ( glm::vec3  p,
int  id,
int  flags 
)
static

Definition at line 91 of file SoundManager.cpp.

void SoundManager::addSoundMapEntry ( int  id)
static

Definition at line 95 of file SoundManager.cpp.

void SoundManager::addSoundDetail ( int  sample,
float  volume 
)
static

Definition at line 99 of file SoundManager.cpp.

void SoundManager::addSampleIndex ( int  index)
static

Definition at line 103 of file SoundManager.cpp.

int SoundManager::getIndex ( int  index,
float *  volume = nullptr,
SoundDetail **  sd = nullptr 
)
static

Definition at line 107 of file SoundManager.cpp.

int SoundManager::playSound ( int  index)
static

Definition at line 144 of file SoundManager.cpp.

static void SoundManager::listenAt ( glm::vec3  pos,
glm::vec3  at,
glm::vec3  up 
)
static
void SoundManager::display ( )
static

Definition at line 158 of file SoundManager.cpp.

Member Data Documentation

std::vector< SoundSource > SoundManager::soundSources
staticprivate

Definition at line 63 of file SoundManager.h.

std::vector< int > SoundManager::soundMap
staticprivate

Definition at line 64 of file SoundManager.h.

std::vector< SoundDetail > SoundManager::soundDetails
staticprivate

Definition at line 65 of file SoundManager.h.

std::vector< int > SoundManager::sampleIndices
staticprivate

Definition at line 66 of file SoundManager.h.


The documentation for this class was generated from the following files: