#include <llaudiosourcevo.h>


Public Member Functions | |
| LLAudioSourceVO (const LLUUID &sound_id, const LLUUID &owner_id, const F32 gain, LLViewerObject *objectp) | |
| virtual | ~LLAudioSourceVO () |
| void | update () |
| void | setGain (const F32 gain) |
Private Member Functions | |
| void | updateGain () |
Private Attributes | |
| LLPointer< LLViewerObject > | mObjectp |
| F32 | mActualGain |
Definition at line 41 of file llaudiosourcevo.h.
| LLAudioSourceVO::LLAudioSourceVO | ( | const LLUUID & | sound_id, | |
| const LLUUID & | owner_id, | |||
| const F32 | gain, | |||
| LLViewerObject * | objectp | |||
| ) |
Definition at line 41 of file llaudiosourcevo.cpp.
References FALSE, LLAudioSource::setAmbient(), update(), and updateGain().

| LLAudioSourceVO::~LLAudioSourceVO | ( | ) | [virtual] |
| void LLAudioSourceVO::update | ( | ) | [virtual] |
Reimplemented from LLAudioSource.
Definition at line 134 of file llaudiosourcevo.cpp.
References gAgent, LLAgent::getCameraPositionGlobal(), mObjectp, LLAudioSource::mPositionGlobal, LLAudioSource::mVelocity, NULL, LLAudioSource::update(), and updateGain().
Referenced by LLAudioSourceVO().


| void LLAudioSourceVO::setGain | ( | const F32 | gain | ) | [virtual] |
Reimplemented from LLAudioSource.
Definition at line 60 of file llaudiosourcevo.cpp.
References llclamp(), mActualGain, and updateGain().
Referenced by LLViewerObject::adjustAudioGain(), LLViewerObject::setAttachedSound(), and LLViewerObject::updateLOD().


| void LLAudioSourceVO::updateGain | ( | ) | [private] |
Definition at line 66 of file llaudiosourcevo.cpp.
References FALSE, LLMute::flagObjectSounds, LLViewerObject::getID(), LLMuteList::getInstance(), LLSingleton< LLViewerParcelMgr >::getInstance(), LLXform::getParent(), LLViewerObject::getPositionGlobal(), LLPrimitive::isAvatar(), LLMuteList::isMuted(), mActualGain, LLAudioSource::mGain, mObjectp, LLAudioSource::mOwnerID, and TRUE.
Referenced by LLAudioSourceVO(), setGain(), and update().


LLPointer<LLViewerObject> LLAudioSourceVO::mObjectp [private] |
Definition at line 53 of file llaudiosourcevo.h.
Referenced by update(), updateGain(), and ~LLAudioSourceVO().
F32 LLAudioSourceVO::mActualGain [private] |
1.5.5