LLListener Class Reference

#include <listener.h>

Inheritance diagram for LLListener:

Inheritance graph
[legend]
Collaboration diagram for LLListener:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 37 of file listener.h.


Constructor & Destructor Documentation

LLListener::LLListener (  ) 

Definition at line 42 of file listener.cpp.

References init().

LLListener::~LLListener (  )  [virtual]

Definition at line 48 of file listener.cpp.


Member Function Documentation

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]

Definition at line 85 of file listener.cpp.

References mListenAt.

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]

Definition at line 91 of file listener.cpp.

References mListenUp.

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().

void LLListener::orient ( LLVector3  up,
LLVector3  at 
) [virtual]

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().

void LLListener::set ( LLVector3  pos,
LLVector3  vel,
LLVector3  up,
LLVector3  at 
) [virtual]

Definition at line 110 of file listener.cpp.

References mPosition, mVelocity, orient(), setPosition(), and setVelocity().

Referenced by LLAudioEngine::setListener().

void LLListener::setDistanceFactor ( F32  factor  )  [virtual]

Reimplemented in LLListener_DS3D, and LLListener_FMOD.

Definition at line 132 of file listener.cpp.

Referenced by LLAudioEngine::setDistanceFactor().

void LLListener::setDopplerFactor ( F32  factor  )  [virtual]

Reimplemented in LLListener_DS3D, and LLListener_FMOD.

Definition at line 121 of file listener.cpp.

Referenced by LLAudioEngine::setDopplerFactor().

void LLListener::setPosition ( LLVector3  pos  )  [virtual]

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().

void LLListener::setRolloffFactor ( F32  factor  )  [virtual]

Reimplemented in LLListener_DS3D, and LLListener_FMOD.

Definition at line 143 of file listener.cpp.

Referenced by LLAudioEngine::setRolloffFactor().

void LLListener::setVelocity ( LLVector3  vel  )  [virtual]

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().

void LLListener::translate ( LLVector3  offset  )  [virtual]

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().


Member Data Documentation

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]

Definition at line 42 of file listener.h.

Referenced by init(), set(), and setVelocity().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:27 2010 for Second Life Viewer by  doxygen 1.4.7