altEngine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Audio Class Reference

#include <audio.h>

Public Member Functions

void init ()
 
void load (wave_t &wave)
 
int load_ogg (char *filename, wave_t &wave)
 
void load_doom (wave_t &wave, int *buffer)
 
void play (int hSource)
 
void stop (int hSource)
 
int create_source (bool loop, bool global)
 
void source_position (int hSource, float *position)
 
void source_velocity (int hSource, float *velocity)
 
void listener_position (float *position)
 
void listener_velocity (float *velocity)
 
void listener_orientation (float *orientation)
 
void delete_source (int hSource)
 
bool select_buffer (int hSource, int hBuffer)
 
void delete_buffer (int hBuffer)
 
void destroy ()
 
void effects (int source)
 
void set_audio_model (int model)
 

Private Member Functions

int checkFormat (char *data, char *format)
 
char * findChunk (char *chunk, char *id, int *size, char *end)
 
ALenum alFormat (wave_t *wave)
 

Private Attributes

ALCdevice * device
 
ALCcontext * context
 

Member Function Documentation

ALenum Audio::alFormat ( wave_t wave)
private

Here is the caller graph for this function:

int Audio::checkFormat ( char *  data,
char *  format 
)
private

Here is the caller graph for this function:

int Audio::create_source ( bool  loop,
bool  global 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Audio::delete_buffer ( int  hBuffer)

Here is the call graph for this function:

void Audio::delete_source ( int  hSource)

Here is the call graph for this function:

Here is the caller graph for this function:

void Audio::destroy ( )

Here is the caller graph for this function:

void Audio::effects ( int  source)

Here is the call graph for this function:

Here is the caller graph for this function:

char * Audio::findChunk ( char *  chunk,
char *  id,
int *  size,
char *  end 
)
private

Here is the caller graph for this function:

void Audio::init ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void Audio::listener_orientation ( float *  orientation)

Here is the call graph for this function:

Here is the caller graph for this function:

void Audio::listener_position ( float *  position)

Here is the call graph for this function:

Here is the caller graph for this function:

void Audio::listener_velocity ( float *  velocity)

Here is the call graph for this function:

Here is the caller graph for this function:

void Audio::load ( wave_t wave)

Here is the call graph for this function:

Here is the caller graph for this function:

void Audio::load_doom ( wave_t wave,
int *  buffer 
)

Here is the caller graph for this function:

int Audio::load_ogg ( char *  filename,
wave_t wave 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Audio::play ( int  hSource)

Here is the caller graph for this function:

bool Audio::select_buffer ( int  hSource,
int  hBuffer 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Audio::set_audio_model ( int  model)

Here is the caller graph for this function:

void Audio::source_position ( int  hSource,
float *  position 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Audio::source_velocity ( int  hSource,
float *  velocity 
)

Here is the call graph for this function:

void Audio::stop ( int  hSource)

Here is the caller graph for this function:

Member Data Documentation

ALCcontext* Audio::context
private
ALCdevice* Audio::device
private

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