fluidvis
|
#include <SXCore.h>
Public Member Functions | |
EX | AudioListener (const string &id) |
EX | ~AudioListener () |
EX void | load () |
EX void | unload () |
EX bool | isLoaded () const |
EX void | setPosition (const UniformVector *pos) |
EX void | setView (const UniformVector *view) |
EX void | setUp (const UniformVector *up) |
EX void | setVelocity (const UniformVector *vel) |
EX void | setVolume (const UniformFloat *v) |
EX void | update () |
![]() | |
virtual EX | ~SXResource () |
EX const string & | getID () const |
Additional Inherited Members | |
![]() | |
string | id |
Class specifying the state of the listener listening to the SoundObjects. At each particular moment of time, only one listener can exist. Sound is always perceived from the state of the AudioListener object, which was used the last time to invoke update.
EX sx::AudioListener::AudioListener | ( | const string & | id | ) |
constructor
EX sx::AudioListener::~AudioListener | ( | ) |
deconstructor
|
virtual |
returns true iff this is loaded
Implements sx::SXResource.
|
virtual |
Loads the resources needed to update the listener's state.
Implements sx::SXResource.
EX void sx::AudioListener::setPosition | ( | const UniformVector * | pos | ) |
setter
EX void sx::AudioListener::setUp | ( | const UniformVector * | up | ) |
setter
EX void sx::AudioListener::setVelocity | ( | const UniformVector * | vel | ) |
setter
EX void sx::AudioListener::setView | ( | const UniformVector * | view | ) |
setter
EX void sx::AudioListener::setVolume | ( | const UniformFloat * | v | ) |
setter
EX void sx::AudioListener::unload | ( | ) |
unloads the resources loaded by load, and leaves this unloaded
EX void sx::AudioListener::update | ( | ) |
Updates this copying the content from position, velocity, view, up and volume. In between two update calls, the change of those parameters won't influence the sound! Hence update must be called periodically!