#include <llvoicevisualizer.h>
Inheritance diagram for LLVoiceVisualizer:
Public Member Functions | |
LLVoiceVisualizer (const U8 type) | |
~LLVoiceVisualizer () | |
void | setVoiceSourceWorldPosition (const LLVector3 &p) |
void | setMinGesticulationAmplitude (F32) |
void | setMaxGesticulationAmplitude (F32) |
void | setStartSpeaking () |
void | setVoiceEnabled (bool) |
void | setSpeakingAmplitude (F32) |
void | setStopSpeaking () |
bool | getCurrentlySpeaking () |
VoiceGesticulationLevel | getCurrentGesticulationLevel () |
void | render () |
void | packData (LLMessageSystem *mesgsys) |
void | unpackData (LLMessageSystem *mesgsys, S32 blocknum) |
void | markDead () |
void | setMaxGesticulationAmplitude () |
void | setMinGesticulationAmplitude () |
Private Attributes | |
LLFrameTimer | mTimer |
F64 | mCurrentTime |
F64 | mPreviousTime |
SoundSymbol | mSoundSymbol |
bool | mVoiceEnabled |
bool | mCurrentlySpeaking |
LLVector3 | mVoiceSourceWorldPosition |
F32 | mSpeakingAmplitude |
F32 | mMaxGesticulationAmplitude |
F32 | mMinGesticulationAmplitude |
Friends | |
class | LLHUDObject |
Classes | |
struct | SoundSymbol |
Definition at line 73 of file llvoicevisualizer.h.
LLVoiceVisualizer::LLVoiceVisualizer | ( | const U8 | type | ) |
Definition at line 84 of file llvoicevisualizer.cpp.
References DEFAULT_MAXIMUM_GESTICULATION_AMPLITUDE, DEFAULT_MINIMUM_GESTICULATION_AMPLITUDE, f, LLControlGroup::getString(), LLFrameTimer::getTotalSeconds(), LLViewerImageList::getUIImageByID(), gImageList, gSavedSettings, i, LLVoiceVisualizer::SoundSymbol::mActive, mCurrentlySpeaking, mCurrentTime, mMaxGesticulationAmplitude, mMinGesticulationAmplitude, LLVoiceVisualizer::SoundSymbol::mPosition, mPreviousTime, mSoundSymbol, mSpeakingAmplitude, LLVoiceVisualizer::SoundSymbol::mTexture, mTimer, mVoiceEnabled, mVoiceSourceWorldPosition, LLVoiceVisualizer::SoundSymbol::mWaveActive, LLVoiceVisualizer::SoundSymbol::mWaveExpansion, LLVoiceVisualizer::SoundSymbol::mWaveFadeOutStartTime, LLVoiceVisualizer::SoundSymbol::mWaveOpacity, NUM_VOICE_SYMBOL_WAVES, and LLFrameTimer::reset().
LLVoiceVisualizer::~LLVoiceVisualizer | ( | ) |
Definition at line 402 of file llvoicevisualizer.cpp.
VoiceGesticulationLevel LLVoiceVisualizer::getCurrentGesticulationLevel | ( | ) |
Definition at line 379 of file llvoicevisualizer.cpp.
References f, mMaxGesticulationAmplitude, mMinGesticulationAmplitude, mSpeakingAmplitude, range, VOICE_GESTICULATION_LEVEL_HIGH, VOICE_GESTICULATION_LEVEL_LOW, VOICE_GESTICULATION_LEVEL_MEDIUM, and VOICE_GESTICULATION_LEVEL_OFF.
Referenced by LLVOAvatar::idleUpdate().
bool LLVoiceVisualizer::getCurrentlySpeaking | ( | ) |
Definition at line 153 of file llvoicevisualizer.cpp.
References mCurrentlySpeaking.
Referenced by LLVOAvatar::idleUpdate().
void LLVoiceVisualizer::markDead | ( | ) | [virtual] |
Reimplemented from LLHUDObject.
Definition at line 448 of file llvoicevisualizer.cpp.
References LLVoiceVisualizer::SoundSymbol::mActive, mCurrentlySpeaking, mSoundSymbol, and mVoiceEnabled.
Referenced by LLVOAvatar::markDead().
void LLVoiceVisualizer::packData | ( | LLMessageSystem * | mesgsys | ) | [virtual] |
Reimplemented from LLHUDEffect.
Definition at line 410 of file llvoicevisualizer.cpp.
References _PREHASH_TypeData, LLMessageSystem::addBinaryDataFast(), and LLHUDEffect::packData().
void LLVoiceVisualizer::render | ( | ) | [virtual] |
Reimplemented from LLHUDEffect.
Definition at line 180 of file llvoicevisualizer.cpp.
References BASE_BRIGHTNESS, blue, DOT_OPACITY, DOT_SIZE, EXPANSION_MAX, EXPANSION_RATE, f, FADE_OUT_DURATION, gCamera, LLCoordFrame::getLeftAxis(), LLFrameTimer::getTotalSeconds(), LLCoordFrame::getUpAxis(), glBegin, glColor4fv, glEnd, glTexCoord2i, green, GREEN_THRESHOLD, height, HEIGHT_ABOVE_HEAD, i, level, LLVoiceVisualizer::SoundSymbol::mActive, mCurrentlySpeaking, mCurrentTime, LLVoiceVisualizer::SoundSymbol::mPosition, mPreviousTime, mSoundSymbol, mSpeakingAmplitude, LLVoiceVisualizer::SoundSymbol::mTexture, mTimer, LLVector3::mV, mVoiceEnabled, mVoiceSourceWorldPosition, LLVoiceVisualizer::SoundSymbol::mWaveActive, LLVoiceVisualizer::SoundSymbol::mWaveExpansion, LLVoiceVisualizer::SoundSymbol::mWaveFadeOutStartTime, LLVoiceVisualizer::SoundSymbol::mWaveOpacity, NUM_VOICE_SYMBOL_WAVES, red, RED_THRESHOLD, S32, u, WAVE_HEIGHT_SCALE, WAVE_MOTION_RATE, WAVE_WIDTH_SCALE, width, and WORLD_UPWARD_DIRECTION.
void LLVoiceVisualizer::setMaxGesticulationAmplitude | ( | ) |
void LLVoiceVisualizer::setMinGesticulationAmplitude | ( | ) |
Definition at line 170 of file llvoicevisualizer.cpp.
References mSpeakingAmplitude.
Referenced by LLVOAvatar::idleUpdate().
void LLVoiceVisualizer::setStartSpeaking | ( | ) |
Definition at line 144 of file llvoicevisualizer.cpp.
References LLVoiceVisualizer::SoundSymbol::mActive, mCurrentlySpeaking, and mSoundSymbol.
Referenced by LLVOAvatar::idleUpdate().
void LLVoiceVisualizer::setStopSpeaking | ( | ) |
Definition at line 161 of file llvoicevisualizer.cpp.
References mCurrentlySpeaking, and mSpeakingAmplitude.
Referenced by LLVOAvatar::idleUpdate().
void LLVoiceVisualizer::setVoiceEnabled | ( | bool | ) |
Definition at line 137 of file llvoicevisualizer.cpp.
References mVoiceEnabled.
Referenced by LLVOAvatar::idleUpdate(), and LLVOAvatar::LLVOAvatar().
Definition at line 372 of file llvoicevisualizer.cpp.
References mVoiceSourceWorldPosition, and p.
Referenced by LLVOAvatar::idleUpdate().
void LLVoiceVisualizer::unpackData | ( | LLMessageSystem * | mesgsys, | |
S32 | blocknum | |||
) | [virtual] |
friend class LLHUDObject [friend] |
Definition at line 82 of file llvoicevisualizer.h.
bool LLVoiceVisualizer::mCurrentlySpeaking [private] |
Definition at line 131 of file llvoicevisualizer.h.
Referenced by getCurrentlySpeaking(), LLVoiceVisualizer(), markDead(), render(), setStartSpeaking(), and setStopSpeaking().
F64 LLVoiceVisualizer::mCurrentTime [private] |
Definition at line 127 of file llvoicevisualizer.h.
Referenced by LLVoiceVisualizer(), and render().
Definition at line 134 of file llvoicevisualizer.h.
Referenced by getCurrentGesticulationLevel(), LLVoiceVisualizer(), and setMaxGesticulationAmplitude().
Definition at line 135 of file llvoicevisualizer.h.
Referenced by getCurrentGesticulationLevel(), LLVoiceVisualizer(), and setMinGesticulationAmplitude().
F64 LLVoiceVisualizer::mPreviousTime [private] |
Definition at line 128 of file llvoicevisualizer.h.
Referenced by LLVoiceVisualizer(), and render().
SoundSymbol LLVoiceVisualizer::mSoundSymbol [private] |
Definition at line 129 of file llvoicevisualizer.h.
Referenced by LLVoiceVisualizer(), markDead(), render(), and setStartSpeaking().
F32 LLVoiceVisualizer::mSpeakingAmplitude [private] |
Definition at line 133 of file llvoicevisualizer.h.
Referenced by getCurrentGesticulationLevel(), LLVoiceVisualizer(), render(), setSpeakingAmplitude(), and setStopSpeaking().
LLFrameTimer LLVoiceVisualizer::mTimer [private] |
Definition at line 126 of file llvoicevisualizer.h.
Referenced by LLVoiceVisualizer(), and render().
bool LLVoiceVisualizer::mVoiceEnabled [private] |
Definition at line 130 of file llvoicevisualizer.h.
Referenced by LLVoiceVisualizer(), markDead(), render(), and setVoiceEnabled().
Definition at line 132 of file llvoicevisualizer.h.
Referenced by LLVoiceVisualizer(), render(), and setVoiceSourceWorldPosition().