#include <listener.h>
Inheritance diagram for LLListener:
Public Member Functions | |
LLListener () | |
virtual | ~LLListener () |
virtual void | init () |
virtual void | free () |
virtual void | set (LLVector3 pos, LLVector3 vel, LLVector3 up, LLVector3 at) |
virtual void | setPosition (LLVector3 pos) |
virtual void | setVelocity (LLVector3 vel) |
virtual void | orient (LLVector3 up, LLVector3 at) |
virtual void | translate (LLVector3 offset) |
virtual void | setDopplerFactor (F32 factor) |
virtual void | setDistanceFactor (F32 factor) |
virtual void | setRolloffFactor (F32 factor) |
virtual LLVector3 | getPosition () |
virtual LLVector3 | getAt () |
virtual LLVector3 | getUp () |
virtual F32 | getDopplerFactor () |
virtual F32 | getDistanceFactor () |
virtual F32 | getRolloffFactor () |
virtual void | commitDeferredChanges () |
Protected Attributes | |
LLVector3 | mPosition |
LLVector3 | mVelocity |
LLVector3 | mListenAt |
LLVector3 | mListenUp |
Definition at line 37 of file listener.h.
LLListener::LLListener | ( | ) |
LLListener::~LLListener | ( | ) | [virtual] |
Definition at line 48 of file listener.cpp.
void LLListener::commitDeferredChanges | ( | ) | [virtual] |
Reimplemented in LLListener_DS3D, and LLListener_FMOD.
Definition at line 154 of file listener.cpp.
Referenced by LLAudioEngine::commitDeferredChanges().
void LLListener::free | ( | ) | [virtual] |
Definition at line 62 of file listener.cpp.
LLVector3 LLListener::getAt | ( | ) | [virtual] |
F32 LLListener::getDistanceFactor | ( | ) | [virtual] |
Reimplemented in LLListener_DS3D, and LLListener_FMOD.
Definition at line 137 of file listener.cpp.
References f.
Referenced by LLAudioEngine::getDistanceFactor().
F32 LLListener::getDopplerFactor | ( | ) | [virtual] |
Reimplemented in LLListener_DS3D, and LLListener_FMOD.
Definition at line 126 of file listener.cpp.
References f.
Referenced by LLAudioEngine::getDopplerFactor().
LLVector3 LLListener::getPosition | ( | ) | [virtual] |
Definition at line 79 of file listener.cpp.
References mPosition.
Referenced by LLAudioEngine::getListenerPos().
F32 LLListener::getRolloffFactor | ( | ) | [virtual] |
Reimplemented in LLListener_DS3D, and LLListener_FMOD.
Definition at line 148 of file listener.cpp.
References f.
Referenced by LLAudioEngine::getRolloffFactor().
LLVector3 LLListener::getUp | ( | ) | [virtual] |
void LLListener::init | ( | ) | [virtual] |
Reimplemented in LLListener_DS3D, and LLListener_FMOD.
Definition at line 53 of file listener.cpp.
References DEFAULT_AT, DEFAULT_UP, mListenAt, mListenUp, mPosition, mVelocity, LLVector3::setVec(), and LLVector3::zeroVec().
Referenced by LLListener_FMOD::init(), and LLListener().
Reimplemented in LLListener_DS3D, LLListener_FMOD, and LLListener_OpenAL.
Definition at line 103 of file listener.cpp.
References mListenAt, and mListenUp.
Referenced by LLListener_FMOD::orient(), LLAudioEngine::orientListener(), and set().
Definition at line 110 of file listener.cpp.
References mPosition, mVelocity, orient(), setPosition(), and setVelocity().
Referenced by LLAudioEngine::setListener().
Reimplemented in LLListener_DS3D, and LLListener_FMOD.
Definition at line 132 of file listener.cpp.
Referenced by LLAudioEngine::setDistanceFactor().
Reimplemented in LLListener_DS3D, and LLListener_FMOD.
Definition at line 121 of file listener.cpp.
Referenced by LLAudioEngine::setDopplerFactor().
Reimplemented in LLListener_DS3D, LLListener_FMOD, and LLListener_OpenAL.
Definition at line 73 of file listener.cpp.
References mPosition.
Referenced by set(), LLAudioEngine::setListenerPos(), and LLListener_FMOD::setPosition().
Reimplemented in LLListener_DS3D, and LLListener_FMOD.
Definition at line 143 of file listener.cpp.
Referenced by LLAudioEngine::setRolloffFactor().
Reimplemented in LLListener_DS3D, LLListener_FMOD, and LLListener_OpenAL.
Definition at line 97 of file listener.cpp.
References mVelocity.
Referenced by set(), LLAudioEngine::setListenerVelocity(), and LLListener_FMOD::setVelocity().
Reimplemented in LLListener_DS3D, LLListener_FMOD, and LLListener_OpenAL.
Definition at line 67 of file listener.cpp.
References mPosition.
Referenced by LLListener_FMOD::translate(), and LLAudioEngine::translateListener().
LLVector3 LLListener::mListenAt [protected] |
Definition at line 43 of file listener.h.
Referenced by getAt(), init(), orient(), LLListener_FMOD::setPosition(), LLListener_FMOD::setVelocity(), and LLListener_FMOD::translate().
LLVector3 LLListener::mListenUp [protected] |
Definition at line 44 of file listener.h.
Referenced by getUp(), init(), orient(), LLListener_FMOD::setPosition(), LLListener_FMOD::setVelocity(), and LLListener_FMOD::translate().
LLVector3 LLListener::mPosition [protected] |
Definition at line 41 of file listener.h.
Referenced by getPosition(), init(), set(), setPosition(), LLListener_FMOD::translate(), and translate().
LLVector3 LLListener::mVelocity [protected] |