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

#include <SoundAL.h>

Collaboration diagram for SoundAL:
[legend]

Static Public Member Functions

static int initialize ()
 
static void shutdown ()
 
static void clear ()
 
static int numBuffers ()
 
static int loadBuffer (unsigned char *buffer, unsigned int length)
 
static int numSources (bool atListener)
 
static int addSource (int buffer, float volume, bool atListener, bool loop)
 
static int sourceAt (int source, glm::vec3 pos)
 
static void listenAt (glm::vec3 pos, glm::vec3 at, glm::vec3 up)
 
static void play (int source, bool atListener)
 
static void stop (int source)
 
static void stopAll ()
 
static void setEnabled (bool on)
 
static bool getEnabled ()
 
static void setVolume (float vol)
 
static float getVolume ()
 

Static Private Attributes

static bool init = false
 
static bool enabled = true
 
static float volume = 1.0f
 
static std::vector< unsigned int > buffers
 
static std::vector< unsigned int > sources
 
static std::vector< unsigned int > listenerSources
 
static glm::vec3 lastPosition
 

Detailed Description

Definition at line 13 of file SoundAL.h.

Member Function Documentation

int SoundAL::initialize ( )
static

Definition at line 33 of file SoundAL.cpp.

void SoundAL::shutdown ( )
static

Definition at line 61 of file SoundAL.cpp.

void SoundAL::clear ( )
static

Definition at line 74 of file SoundAL.cpp.

int SoundAL::numBuffers ( )
static

Definition at line 109 of file SoundAL.cpp.

int SoundAL::loadBuffer ( unsigned char *  buffer,
unsigned int  length 
)
static

Definition at line 113 of file SoundAL.cpp.

int SoundAL::numSources ( bool  atListener)
static

Definition at line 129 of file SoundAL.cpp.

int SoundAL::addSource ( int  buffer,
float  volume,
bool  atListener,
bool  loop 
)
static

Definition at line 136 of file SoundAL.cpp.

int SoundAL::sourceAt ( int  source,
glm::vec3  pos 
)
static

Definition at line 175 of file SoundAL.cpp.

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

Definition at line 191 of file SoundAL.cpp.

void SoundAL::play ( int  source,
bool  atListener 
)
static

Definition at line 208 of file SoundAL.cpp.

void SoundAL::stop ( int  source)
static

Definition at line 225 of file SoundAL.cpp.

void SoundAL::stopAll ( )
static

Definition at line 235 of file SoundAL.cpp.

void SoundAL::setEnabled ( bool  on)
static

Definition at line 243 of file SoundAL.cpp.

bool SoundAL::getEnabled ( )
static

Definition at line 247 of file SoundAL.cpp.

void SoundAL::setVolume ( float  vol)
static

Definition at line 251 of file SoundAL.cpp.

float SoundAL::getVolume ( )
static

Definition at line 258 of file SoundAL.cpp.

Member Data Documentation

bool SoundAL::init = false
staticprivate

Definition at line 39 of file SoundAL.h.

bool SoundAL::enabled = true
staticprivate

Definition at line 40 of file SoundAL.h.

float SoundAL::volume = 1.0f
staticprivate

Definition at line 41 of file SoundAL.h.

std::vector< unsigned int > SoundAL::buffers
staticprivate

Definition at line 43 of file SoundAL.h.

std::vector< unsigned int > SoundAL::sources
staticprivate

Definition at line 44 of file SoundAL.h.

std::vector< unsigned int > SoundAL::listenerSources
staticprivate

Definition at line 45 of file SoundAL.h.

glm::vec3 SoundAL::lastPosition
staticprivate

Definition at line 47 of file SoundAL.h.


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