zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Zeni::Sound_Renderer_AL Class Reference

#include <Sound_Renderer_AL.h>

Inherits Zeni::Sound_Renderer.

Public Types

typedef void(AL_APIENTRYalBufferData_fcn )(ALuint bid, ALenum format, const ALvoid *data, ALsizei size, ALsizei freq)
 
typedef ALCboolean(ALC_APIENTRYalcCloseDevice_fcn )(ALCdevice *device)
 
typedef ALCcontext *(ALC_APIENTRYalcCreateContext_fcn )(ALCdevice *device, const ALCint *attrlist)
 
typedef void(ALC_APIENTRYalcDestroyContext_fcn )(ALCcontext *context)
 
typedef ALCboolean(ALC_APIENTRYalcMakeContextCurrent_fcn )(ALCcontext *context)
 
typedef ALCdevice *(ALC_APIENTRYalcOpenDevice_fcn )(const ALCchar *devicename)
 
typedef void(AL_APIENTRYalDeleteBuffers_fcn )(ALsizei n, const ALuint *buffers)
 
typedef void(AL_APIENTRYalDeleteSources_fcn )(ALsizei n, const ALuint *sources)
 
typedef void(AL_APIENTRYalGenBuffers_fcn )(ALsizei n, ALuint *buffers)
 
typedef void(AL_APIENTRYalGenSources_fcn )(ALsizei n, ALuint *sources)
 
typedef ALenum(AL_APIENTRYalGetError_fcn )(void)
 
typedef void(AL_APIENTRYalGetListenerf_fcn )(ALenum param, ALfloat *value)
 
typedef void(AL_APIENTRYalGetListenerfv_fcn )(ALenum param, ALfloat *values)
 
typedef void(AL_APIENTRYalGetSourcef_fcn )(ALuint sid, ALenum param, ALfloat *value)
 
typedef void(AL_APIENTRYalGetSourcefv_fcn )(ALuint sid, ALenum param, ALfloat *values)
 
typedef void(AL_APIENTRYalGetSourcei_fcn )(ALuint sid, ALenum param, ALint *value)
 
typedef ALboolean(AL_APIENTRYalIsExtensionPresent_fcn )(const ALchar *extname)
 
typedef void(AL_APIENTRYalListenerf_fcn )(ALenum param, ALfloat value)
 
typedef void(AL_APIENTRYalListenerfv_fcn )(ALenum param, const ALfloat *values)
 
typedef void(AL_APIENTRYalSourcef_fcn )(ALuint sid, ALenum param, ALfloat value)
 
typedef void(AL_APIENTRYalSourcefv_fcn )(ALuint sid, ALenum param, const ALfloat *values)
 
typedef void(AL_APIENTRYalSourcei_fcn )(ALuint sid, ALenum param, ALint value)
 
typedef void(AL_APIENTRYalSourcePause_fcn )(ALuint sid)
 
typedef void(AL_APIENTRYalSourcePlay_fcn )(ALuint sid)
 
typedef void(AL_APIENTRYalSourceQueueBuffers_fcn )(ALuint sid, ALsizei numEntries, const ALuint *bids)
 
typedef void(AL_APIENTRYalSourceStop_fcn )(ALuint sid)
 
typedef void(AL_APIENTRYalSourceUnqueueBuffers_fcn )(ALuint sid, ALsizei numEntries, ALuint *bids)
 

Public Member Functions

std::pair< Vector3f, Vector3fget_listener_forward_and_up () const
 Set the orientation of the listener. More...
 
void set_listener_forward_and_up (const Vector3f &forward, const Vector3f &up)
 Set the orientation of the listener. More...
 
void set_listener_gain (const float &gain)
 Set the listener gain. More...
 
void set_listener_position (const Point3f &position)
 Set the position of the listener and BGM. More...
 
void set_listener_velocity (const Vector3f &velocity)
 Set the velocity of the listener and BGM for the doppler effect. More...
 
- Public Member Functions inherited from Zeni::Sound_Renderer
virtual ~Sound_Renderer ()
 
virtual Point3f get_listener_position () const
 Get the position of the listener and BGM. More...
 
virtual Vector3f get_listener_velocity () const
 Get the velocity of the listener and BGM. More...
 

Static Public Member Functions

static alBufferData_fcn alBufferData ()
 
static alcCloseDevice_fcn alcCloseDevice ()
 
static alcCreateContext_fcn alcCreateContext ()
 
static alcDestroyContext_fcn alcDestroyContext ()
 
static alcMakeContextCurrent_fcn alcMakeContextCurrent ()
 
static alcOpenDevice_fcn alcOpenDevice ()
 
static alDeleteBuffers_fcn alDeleteBuffers ()
 
static alDeleteSources_fcn alDeleteSources ()
 
static alGenBuffers_fcn alGenBuffers ()
 
static alGenSources_fcn alGenSources ()
 
static alGetError_fcn alGetError ()
 
static alGetListenerf_fcn alGetListenerf ()
 
static alGetListenerfv_fcn alGetListenerfv ()
 
static alGetSourcef_fcn alGetSourcef ()
 
static alGetSourcefv_fcn alGetSourcefv ()
 
static alGetSourcei_fcn alGetSourcei ()
 
static alIsExtensionPresent_fcn alIsExtensionPresent ()
 
static alListenerf_fcn alListenerf ()
 
static alListenerfv_fcn alListenerfv ()
 
static alSourcef_fcn alSourcef ()
 
static alSourcefv_fcn alSourcefv ()
 
static alSourcei_fcn alSourcei ()
 
static alSourcePause_fcn alSourcePause ()
 
static alSourcePlay_fcn alSourcePlay ()
 
static alSourceQueueBuffers_fcn alSourceQueueBuffers ()
 
static alSourceStop_fcn alSourceStop ()
 
static alSourceUnqueueBuffers_fcn alSourceUnqueueBuffers ()
 
static String errorString (const ALenum &err)
 
static String errorString ()
 

Friends

class Sound
 

Detailed Description

Definition at line 41 of file Sound_Renderer_AL.h.

Member Typedef Documentation

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alBufferData_fcn)(ALuint bid, ALenum format, const ALvoid *data, ALsizei size, ALsizei freq)

Definition at line 52 of file Sound_Renderer_AL.h.

typedef ALCboolean(ALC_APIENTRY * Zeni::Sound_Renderer_AL::alcCloseDevice_fcn)(ALCdevice *device)

Definition at line 53 of file Sound_Renderer_AL.h.

typedef ALCcontext*(ALC_APIENTRY * Zeni::Sound_Renderer_AL::alcCreateContext_fcn)(ALCdevice *device, const ALCint *attrlist)

Definition at line 54 of file Sound_Renderer_AL.h.

typedef void(ALC_APIENTRY * Zeni::Sound_Renderer_AL::alcDestroyContext_fcn)(ALCcontext *context)

Definition at line 55 of file Sound_Renderer_AL.h.

typedef ALCboolean(ALC_APIENTRY * Zeni::Sound_Renderer_AL::alcMakeContextCurrent_fcn)(ALCcontext *context)

Definition at line 57 of file Sound_Renderer_AL.h.

typedef ALCdevice*(ALC_APIENTRY * Zeni::Sound_Renderer_AL::alcOpenDevice_fcn)(const ALCchar *devicename)

Definition at line 58 of file Sound_Renderer_AL.h.

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alDeleteBuffers_fcn)(ALsizei n, const ALuint *buffers)

Definition at line 59 of file Sound_Renderer_AL.h.

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alDeleteSources_fcn)(ALsizei n, const ALuint *sources)

Definition at line 60 of file Sound_Renderer_AL.h.

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alGenBuffers_fcn)(ALsizei n, ALuint *buffers)

Definition at line 61 of file Sound_Renderer_AL.h.

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alGenSources_fcn)(ALsizei n, ALuint *sources)

Definition at line 68 of file Sound_Renderer_AL.h.

typedef ALenum(AL_APIENTRY * Zeni::Sound_Renderer_AL::alGetError_fcn)(void)

Definition at line 62 of file Sound_Renderer_AL.h.

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alGetListenerf_fcn)(ALenum param, ALfloat *value)

Definition at line 63 of file Sound_Renderer_AL.h.

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alGetListenerfv_fcn)(ALenum param, ALfloat *values)

Definition at line 64 of file Sound_Renderer_AL.h.

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alGetSourcef_fcn)(ALuint sid, ALenum param, ALfloat *value)

Definition at line 65 of file Sound_Renderer_AL.h.

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alGetSourcefv_fcn)(ALuint sid, ALenum param, ALfloat *values)

Definition at line 66 of file Sound_Renderer_AL.h.

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alGetSourcei_fcn)(ALuint sid, ALenum param, ALint *value)

Definition at line 67 of file Sound_Renderer_AL.h.

typedef ALboolean(AL_APIENTRY * Zeni::Sound_Renderer_AL::alIsExtensionPresent_fcn)(const ALchar *extname)

Definition at line 56 of file Sound_Renderer_AL.h.

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alListenerf_fcn)(ALenum param, ALfloat value)

Definition at line 69 of file Sound_Renderer_AL.h.

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alListenerfv_fcn)(ALenum param, const ALfloat *values)

Definition at line 70 of file Sound_Renderer_AL.h.

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alSourcef_fcn)(ALuint sid, ALenum param, ALfloat value)

Definition at line 71 of file Sound_Renderer_AL.h.

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alSourcefv_fcn)(ALuint sid, ALenum param, const ALfloat *values)

Definition at line 72 of file Sound_Renderer_AL.h.

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alSourcei_fcn)(ALuint sid, ALenum param, ALint value)

Definition at line 73 of file Sound_Renderer_AL.h.

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alSourcePause_fcn)(ALuint sid)

Definition at line 74 of file Sound_Renderer_AL.h.

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alSourcePlay_fcn)(ALuint sid)

Definition at line 75 of file Sound_Renderer_AL.h.

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alSourceQueueBuffers_fcn)(ALuint sid, ALsizei numEntries, const ALuint *bids)

Definition at line 77 of file Sound_Renderer_AL.h.

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alSourceStop_fcn)(ALuint sid)

Definition at line 76 of file Sound_Renderer_AL.h.

typedef void(AL_APIENTRY * Zeni::Sound_Renderer_AL::alSourceUnqueueBuffers_fcn)(ALuint sid, ALsizei numEntries, ALuint *bids)

Definition at line 78 of file Sound_Renderer_AL.h.

Member Function Documentation

static alBufferData_fcn Zeni::Sound_Renderer_AL::alBufferData ( )
inlinestatic

Definition at line 81 of file Sound_Renderer_AL.h.

Referenced by Zeni::Sound_Buffer::load_ogg_vorbis().

static alcCloseDevice_fcn Zeni::Sound_Renderer_AL::alcCloseDevice ( )
inlinestatic

Definition at line 82 of file Sound_Renderer_AL.h.

static alcCreateContext_fcn Zeni::Sound_Renderer_AL::alcCreateContext ( )
inlinestatic

Definition at line 83 of file Sound_Renderer_AL.h.

static alcDestroyContext_fcn Zeni::Sound_Renderer_AL::alcDestroyContext ( )
inlinestatic

Definition at line 84 of file Sound_Renderer_AL.h.

static alcMakeContextCurrent_fcn Zeni::Sound_Renderer_AL::alcMakeContextCurrent ( )
inlinestatic

Definition at line 86 of file Sound_Renderer_AL.h.

static alcOpenDevice_fcn Zeni::Sound_Renderer_AL::alcOpenDevice ( )
inlinestatic

Definition at line 87 of file Sound_Renderer_AL.h.

static alDeleteBuffers_fcn Zeni::Sound_Renderer_AL::alDeleteBuffers ( )
inlinestatic

Definition at line 88 of file Sound_Renderer_AL.h.

static alDeleteSources_fcn Zeni::Sound_Renderer_AL::alDeleteSources ( )
inlinestatic

Definition at line 89 of file Sound_Renderer_AL.h.

static alGenBuffers_fcn Zeni::Sound_Renderer_AL::alGenBuffers ( )
inlinestatic
static alGenSources_fcn Zeni::Sound_Renderer_AL::alGenSources ( )
inlinestatic

Definition at line 97 of file Sound_Renderer_AL.h.

Referenced by Zeni::Sound_Stream_AL::Sound_Stream_AL().

static alGetError_fcn Zeni::Sound_Renderer_AL::alGetError ( )
inlinestatic

Definition at line 91 of file Sound_Renderer_AL.h.

Referenced by errorString(), and Zeni::Sound_Stream_AL::Sound_Stream_AL().

static alGetListenerf_fcn Zeni::Sound_Renderer_AL::alGetListenerf ( )
inlinestatic

Definition at line 92 of file Sound_Renderer_AL.h.

static alGetListenerfv_fcn Zeni::Sound_Renderer_AL::alGetListenerfv ( )
inlinestatic

Definition at line 93 of file Sound_Renderer_AL.h.

Referenced by get_listener_forward_and_up().

static alIsExtensionPresent_fcn Zeni::Sound_Renderer_AL::alIsExtensionPresent ( )
inlinestatic

Definition at line 85 of file Sound_Renderer_AL.h.

static alListenerf_fcn Zeni::Sound_Renderer_AL::alListenerf ( )
inlinestatic

Definition at line 98 of file Sound_Renderer_AL.h.

Referenced by set_listener_gain().

static alListenerfv_fcn Zeni::Sound_Renderer_AL::alListenerfv ( )
inlinestatic
static alSourcei_fcn Zeni::Sound_Renderer_AL::alSourcei ( )
inlinestatic
static alSourcePause_fcn Zeni::Sound_Renderer_AL::alSourcePause ( )
inlinestatic
static alSourcePlay_fcn Zeni::Sound_Renderer_AL::alSourcePlay ( )
inlinestatic
static alSourceQueueBuffers_fcn Zeni::Sound_Renderer_AL::alSourceQueueBuffers ( )
inlinestatic

Definition at line 106 of file Sound_Renderer_AL.h.

Referenced by Zeni::Sound_Stream_AL::update().

static alSourceStop_fcn Zeni::Sound_Renderer_AL::alSourceStop ( )
inlinestatic
static alSourceUnqueueBuffers_fcn Zeni::Sound_Renderer_AL::alSourceUnqueueBuffers ( )
inlinestatic

Definition at line 107 of file Sound_Renderer_AL.h.

Referenced by Zeni::Sound_Stream_AL::update().

String Zeni::Sound_Renderer_AL::errorString ( const ALenum err)
static
String Zeni::Sound_Renderer_AL::errorString ( )
static

Definition at line 214 of file Sound_Renderer_AL.cpp.

References alGetError().

Referenced by print_errors(), and Zeni::Sound_Stream_AL::Sound_Stream_AL().

std::pair< Vector3f, Vector3f > Zeni::Sound_Renderer_AL::get_listener_forward_and_up ( ) const
virtual

Set the orientation of the listener.

Reimplemented from Zeni::Sound_Renderer.

Definition at line 240 of file Sound_Renderer_AL.cpp.

References AL_ORIENTATION, and alGetListenerfv().

void Zeni::Sound_Renderer_AL::set_listener_forward_and_up ( const Vector3f forward,
const Vector3f up 
)
virtual

Set the orientation of the listener.

Reimplemented from Zeni::Sound_Renderer.

Definition at line 231 of file Sound_Renderer_AL.cpp.

References AL_ORIENTATION, alListenerfv(), Zeni::Vector3f::i, Zeni::Vector3f::j, and Zeni::Vector3f::k.

void Zeni::Sound_Renderer_AL::set_listener_gain ( const float &  gain)
virtual

Set the listener gain.

Reimplemented from Zeni::Sound_Renderer.

Definition at line 236 of file Sound_Renderer_AL.cpp.

References AL_GAIN, and alListenerf().

void Zeni::Sound_Renderer_AL::set_listener_position ( const Point3f position)
virtual

Set the position of the listener and BGM.

Reimplemented from Zeni::Sound_Renderer.

Definition at line 221 of file Sound_Renderer_AL.cpp.

References AL_POSITION, alListenerfv(), Zeni::Point3f::x, Zeni::Point3f::y, and Zeni::Point3f::z.

void Zeni::Sound_Renderer_AL::set_listener_velocity ( const Vector3f velocity)
virtual

Set the velocity of the listener and BGM for the doppler effect.

Reimplemented from Zeni::Sound_Renderer.

Definition at line 226 of file Sound_Renderer_AL.cpp.

References AL_VELOCITY, alListenerfv(), Zeni::Vector3f::i, Zeni::Vector3f::j, and Zeni::Vector3f::k.

Friends And Related Function Documentation

friend class Sound
friend

Definition at line 42 of file Sound_Renderer_AL.h.


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