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

#include <Sound.h>

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=false)
 
static int addSource (int buffer, float volume=1.0f, bool atListener=false, bool loop=false)
 
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=false)
 
static void stop (int source)
 
static void stopAll ()
 
static void setEnabled (bool on=true)
 
static bool getEnabled ()
 
static void setVolume (float vol=1.0f)
 
static float getVolume ()
 

Detailed Description

Definition at line 11 of file Sound.h.

Member Function Documentation

int Sound::initialize ( )
static

Definition at line 15 of file Sound.cpp.

void Sound::shutdown ( )
static

Definition at line 23 of file Sound.cpp.

void Sound::clear ( )
static

Definition at line 29 of file Sound.cpp.

int Sound::numBuffers ( )
static

Definition at line 35 of file Sound.cpp.

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

Definition at line 43 of file Sound.cpp.

int Sound::numSources ( bool  atListener = false)
static

Definition at line 51 of file Sound.cpp.

int Sound::addSource ( int  buffer,
float  volume = 1.0f,
bool  atListener = false,
bool  loop = false 
)
static

Definition at line 59 of file Sound.cpp.

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

Definition at line 67 of file Sound.cpp.

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

Definition at line 75 of file Sound.cpp.

void Sound::play ( int  source,
bool  atListener = false 
)
static

Definition at line 81 of file Sound.cpp.

void Sound::stop ( int  source)
static

Definition at line 87 of file Sound.cpp.

void Sound::stopAll ( )
static

Definition at line 93 of file Sound.cpp.

void Sound::setEnabled ( bool  on = true)
static

Definition at line 99 of file Sound.cpp.

bool Sound::getEnabled ( )
static

Definition at line 105 of file Sound.cpp.

void Sound::setVolume ( float  vol = 1.0f)
static

Definition at line 113 of file Sound.cpp.

float Sound::getVolume ( )
static

Definition at line 119 of file Sound.cpp.


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