LLAudioSourceVO Class Reference

#include <llaudiosourcevo.h>

Inheritance diagram for LLAudioSourceVO:

Inheritance graph
Collaboration diagram for LLAudioSourceVO:

Collaboration graph
List of all members.

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< LLViewerObjectmObjectp
F32 mActualGain

Detailed Description

Definition at line 41 of file llaudiosourcevo.h.

Constructor & Destructor Documentation

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]

Definition at line 51 of file llaudiosourcevo.cpp.

References mObjectp, and NULL.

Member Function Documentation

void LLAudioSourceVO::setGain ( const F32  gain  )  [virtual]

Reimplemented from LLAudioSource.

Definition at line 60 of file llaudiosourcevo.cpp.

References f, llclamp(), mActualGain, and updateGain().

Referenced by LLViewerObject::adjustAudioGain(), LLViewerObject::setAttachedSound(), and LLViewerObject::updateLOD().

void LLAudioSourceVO::update (  )  [virtual]

Reimplemented from LLAudioSource.

Definition at line 136 of file llaudiosourcevo.cpp.

References gAgent, LLAgent::getCameraPositionGlobal(), mObjectp, LLAudioSource::mPositionGlobal, LLAudioSource::mVelocity, NULL, LLAudioSource::update(), and updateGain().

Referenced by LLAudioSourceVO().

void LLAudioSourceVO::updateGain (  )  [private]

Definition at line 66 of file llaudiosourcevo.cpp.

References LLViewerParcelMgr::canHearSound(), FALSE, LLMute::flagObjectSounds, gMuteListp, gParcelMgr, LLMuteList::isMuted(), mActualGain, LLAudioSource::mGain, mObjectp, LLAudioSource::mOwnerID, and TRUE.

Referenced by LLAudioSourceVO(), setGain(), and update().

Member Data Documentation

F32 LLAudioSourceVO::mActualGain [private]

Definition at line 54 of file llaudiosourcevo.h.

Referenced by setGain(), and updateGain().

LLPointer<LLViewerObject> LLAudioSourceVO::mObjectp [private]

Definition at line 53 of file llaudiosourcevo.h.

Referenced by update(), updateGain(), and ~LLAudioSourceVO().

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