#include <ALApp.h>
Public Member Functions | |
| ALApp () | |
| ~ALApp () | |
| void | translateListener (ALfloat x, ALfloat y, ALfloat z) |
| void | rotateListener (ALfloat angle) |
| void | rotateListener (ALfloat x, ALfloat y, ALfloat z) |
| void | setMetersPerUnit (ALfloat meters_per_unit) |
| void | createEAXReverbEffect () |
| void | bindSourceEAXReverbEffect (ALObj *object) |
Initializes the whole OpenAL application. It manages the listener (= what you hear) and all additional effects.
filename: ALApp.h
| sonus::ALApp::ALApp | ( | ) |
Constructor Creates the "world" object for sound with a listener.
| sonus::ALApp::~ALApp | ( | ) |
Destructor Deletes effects and shuts down OpenAL.
| void sonus::ALApp::translateListener | ( | ALfloat | x, | |
| ALfloat | y, | |||
| ALfloat | z | |||
| ) |
Set the new AL_POSITION of the listener object.
| x | The x coordinate position to be set. | |
| y | The y coordinate position to be set. | |
| z | The z coordinate position to be set. |
| void sonus::ALApp::rotateListener | ( | ALfloat | angle | ) |
Set the new AL_ORIENTATION of the listener object.
| angle | The orientation angle to be set. |
| void sonus::ALApp::rotateListener | ( | ALfloat | x, | |
| ALfloat | y, | |||
| ALfloat | z | |||
| ) |
Set the new AL_ORIENTATION of the listener object.
| x | The x coordinate orientation to be set. | |
| y | The y coordinate orientation to be set. | |
| z | The z coordinate orientation to be set. |
| void sonus::ALApp::setMetersPerUnit | ( | ALfloat | meters_per_unit | ) |
Set the AL_METERS_PER_UNIT. See OpenAL documentation for explanation.
| meters_per_unit | Set the meters per application unit. |
| void sonus::ALApp::createEAXReverbEffect | ( | ) |
Creates a reverb effect.
| void sonus::ALApp::bindSourceEAXReverbEffect | ( | ALObj * | object | ) |
Define the ALObj object to be bound to the reverb effect.
| object | The object to be connected to the reverb. |
1.5.4