#include <llvoicevisualizer.h>
Definition at line 73 of file llvoicevisualizer.h.
LLVoiceVisualizer::LLVoiceVisualizer | ( | const U8 | type | ) |
Definition at line 114 of file llvoicevisualizer.cpp.
References DEFAULT_MAXIMUM_GESTICULATION_AMPLITUDE, DEFAULT_MINIMUM_GESTICULATION_AMPLITUDE, FALSE, LLControlGroup::getControl(), LLViewerImageList::getImageFromFile(), LLControlVariable::getSignal(), LLFrameTimer::getTotalSeconds(), gImageList, gSavedSettings, handleVoiceVisualizerPrefsChanged(), i, LLVoiceVisualizer::SoundSymbol::mActive, mCurrentlySpeaking, mCurrentTime, mMaxGesticulationAmplitude, mMinGesticulationAmplitude, LLVoiceVisualizer::SoundSymbol::mPosition, mPreviousTime, mSoundSymbol, mSpeakingAmplitude, mStartTime, LLVoiceVisualizer::SoundSymbol::mTexture, mTimer, mVoiceEnabled, mVoiceSourceWorldPosition, LLVoiceVisualizer::SoundSymbol::mWaveActive, LLVoiceVisualizer::SoundSymbol::mWaveExpansion, LLVoiceVisualizer::SoundSymbol::mWaveFadeOutStartTime, LLVoiceVisualizer::SoundSymbol::mWaveOpacity, NUM_VOICE_SYMBOL_WAVES, LLFrameTimer::reset(), setPreferences(), sPrefsInitialized, and TRUE.
LLVoiceVisualizer::~LLVoiceVisualizer | ( | ) |
Definition at line 574 of file llvoicevisualizer.cpp.
void LLVoiceVisualizer::setVoiceSourceWorldPosition | ( | const LLVector3 & | p | ) |
Definition at line 544 of file llvoicevisualizer.cpp.
References mVoiceSourceWorldPosition.
Referenced by LLVOAvatar::idleUpdate().
void LLVoiceVisualizer::setMinGesticulationAmplitude | ( | F32 | m | ) |
void LLVoiceVisualizer::setMaxGesticulationAmplitude | ( | F32 | m | ) |
void LLVoiceVisualizer::setStartSpeaking | ( | ) |
Definition at line 191 of file llvoicevisualizer.cpp.
References LLFrameTimer::getTotalSeconds(), LLVoiceVisualizer::SoundSymbol::mActive, mCurrentlySpeaking, mSoundSymbol, mStartTime, and mTimer.
Referenced by LLVOAvatar::idleUpdate().
void LLVoiceVisualizer::setVoiceEnabled | ( | bool | v | ) |
Definition at line 184 of file llvoicevisualizer.cpp.
References mVoiceEnabled.
Referenced by LLVOAvatar::idleUpdate(), and LLVOAvatar::LLVOAvatar().
void LLVoiceVisualizer::setSpeakingAmplitude | ( | F32 | a | ) |
Definition at line 218 of file llvoicevisualizer.cpp.
References mSpeakingAmplitude.
Referenced by LLVOAvatar::idleUpdate().
void LLVoiceVisualizer::setStopSpeaking | ( | ) |
Definition at line 209 of file llvoicevisualizer.cpp.
References mCurrentlySpeaking, and mSpeakingAmplitude.
Referenced by LLVOAvatar::idleUpdate().
bool LLVoiceVisualizer::getCurrentlySpeaking | ( | ) |
Definition at line 201 of file llvoicevisualizer.cpp.
References mCurrentlySpeaking.
Referenced by LLVOAvatar::idleUpdate().
VoiceGesticulationLevel LLVoiceVisualizer::getCurrentGesticulationLevel | ( | ) |
Definition at line 551 of file llvoicevisualizer.cpp.
References mMaxGesticulationAmplitude, mMinGesticulationAmplitude, mSpeakingAmplitude, VOICE_GESTICULATION_LEVEL_HIGH, VOICE_GESTICULATION_LEVEL_LOW, VOICE_GESTICULATION_LEVEL_MEDIUM, and VOICE_GESTICULATION_LEVEL_OFF.
Referenced by LLVOAvatar::idleUpdate().
void LLVoiceVisualizer::setPreferences | ( | ) | [static] |
Definition at line 226 of file llvoicevisualizer.cpp.
References LLControlGroup::getF32(), LLControlGroup::getString(), LLControlGroup::getU32(), gSavedSettings, lipStringToF32s(), sAah, sAahPowerTransfer, sAahPowerTransfers, sAahPowerTransfersf, sAahs, sLipSyncEnabled, sOoh, sOohAahRate, sOohPowerTransfer, sOohPowerTransfers, sOohPowerTransfersf, and sOohs.
Referenced by handleVoiceVisualizerPrefsChanged(), and LLVoiceVisualizer().
void LLVoiceVisualizer::lipStringToF32s | ( | std::string & | in_string, | |
F32 *& | out_F32s, | |||
U32 & | count_F32s | |||
) | [static] |
Definition at line 253 of file llvoicevisualizer.cpp.
References i.
Referenced by setPreferences().
Definition at line 291 of file llvoicevisualizer.cpp.
References LLFrameTimer::getTotalSeconds(), mCurrentlySpeaking, mSpeakingAmplitude, mStartTime, mTimer, sAah, sAahPowerTransfer, sAahPowerTransfers, sAahPowerTransfersf, sAahs, sLipSyncEnabled, sOoh, sOohAahRate, sOohPowerTransfer, sOohPowerTransfers, sOohPowerTransfersf, and sOohs.
Referenced by LLVOAvatar::idleUpdate().
void LLVoiceVisualizer::render | ( | ) | [virtual] |
Reimplemented from LLHUDEffect.
Definition at line 352 of file llvoicevisualizer.cpp.
References BASE_BRIGHTNESS, LLGLImmediate::begin(), LLGLImmediate::color4fv(), DOT_OPACITY, DOT_SIZE, LLGLImmediate::end(), EXPANSION_MAX, EXPANSION_RATE, FADE_OUT_DURATION, LLSingleton< LLViewerCamera >::getInstance(), LLCoordFrame::getLeftAxis(), LLFrameTimer::getTotalSeconds(), LLCoordFrame::getUpAxis(), gGL, GREEN_THRESHOLD, HEIGHT_ABOVE_HEAD, i, 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_THRESHOLD, S32, LLGLImmediate::texCoord2i(), LLVertexBuffer::TRIANGLE_STRIP, LLGLImmediate::vertex3fv(), WAVE_HEIGHT_SCALE, WAVE_MOTION_RATE, and WAVE_WIDTH_SCALE.
void LLVoiceVisualizer::packData | ( | LLMessageSystem * | mesgsys | ) | [virtual] |
Reimplemented from LLHUDEffect.
Definition at line 582 of file llvoicevisualizer.cpp.
References _PREHASH_TypeData, LLMessageSystem::addBinaryDataFast(), and LLHUDEffect::packData().
void LLVoiceVisualizer::unpackData | ( | LLMessageSystem * | mesgsys, | |
S32 | blocknum | |||
) | [virtual] |
void LLVoiceVisualizer::markDead | ( | ) | [virtual] |
Reimplemented from LLHUDObject.
Definition at line 620 of file llvoicevisualizer.cpp.
References LLVoiceVisualizer::SoundSymbol::mActive, LLHUDObject::markDead(), mCurrentlySpeaking, mSoundSymbol, and mVoiceEnabled.
Referenced by LLVOAvatar::markDead().
void LLVoiceVisualizer::setMaxGesticulationAmplitude | ( | ) |
void LLVoiceVisualizer::setMinGesticulationAmplitude | ( | ) |
friend class LLHUDObject [friend] |
Definition at line 82 of file llvoicevisualizer.h.
LLFrameTimer LLVoiceVisualizer::mTimer [private] |
Definition at line 128 of file llvoicevisualizer.h.
Referenced by lipSyncOohAah(), LLVoiceVisualizer(), render(), and setStartSpeaking().
F64 LLVoiceVisualizer::mStartTime [private] |
Definition at line 129 of file llvoicevisualizer.h.
Referenced by lipSyncOohAah(), LLVoiceVisualizer(), and setStartSpeaking().
F64 LLVoiceVisualizer::mCurrentTime [private] |
Definition at line 130 of file llvoicevisualizer.h.
Referenced by LLVoiceVisualizer(), and render().
F64 LLVoiceVisualizer::mPreviousTime [private] |
Definition at line 131 of file llvoicevisualizer.h.
Referenced by LLVoiceVisualizer(), and render().
SoundSymbol LLVoiceVisualizer::mSoundSymbol [private] |
Definition at line 132 of file llvoicevisualizer.h.
Referenced by LLVoiceVisualizer(), markDead(), render(), and setStartSpeaking().
bool LLVoiceVisualizer::mVoiceEnabled [private] |
Definition at line 133 of file llvoicevisualizer.h.
Referenced by LLVoiceVisualizer(), markDead(), render(), and setVoiceEnabled().
bool LLVoiceVisualizer::mCurrentlySpeaking [private] |
Definition at line 134 of file llvoicevisualizer.h.
Referenced by getCurrentlySpeaking(), lipSyncOohAah(), LLVoiceVisualizer(), markDead(), render(), setStartSpeaking(), and setStopSpeaking().
Definition at line 135 of file llvoicevisualizer.h.
Referenced by LLVoiceVisualizer(), render(), and setVoiceSourceWorldPosition().
F32 LLVoiceVisualizer::mSpeakingAmplitude [private] |
Definition at line 136 of file llvoicevisualizer.h.
Referenced by getCurrentGesticulationLevel(), lipSyncOohAah(), LLVoiceVisualizer(), render(), setSpeakingAmplitude(), and setStopSpeaking().
Definition at line 137 of file llvoicevisualizer.h.
Referenced by getCurrentGesticulationLevel(), LLVoiceVisualizer(), and setMaxGesticulationAmplitude().
Definition at line 138 of file llvoicevisualizer.h.
Referenced by getCurrentGesticulationLevel(), LLVoiceVisualizer(), and setMinGesticulationAmplitude().
U32 LLVoiceVisualizer::sLipSyncEnabled = 0 [static, private] |
Definition at line 144 of file llvoicevisualizer.h.
Referenced by lipSyncOohAah(), and setPreferences().
bool LLVoiceVisualizer::sPrefsInitialized = false [static, private] |
F32 * LLVoiceVisualizer::sOoh = NULL [static, private] |
Definition at line 146 of file llvoicevisualizer.h.
Referenced by lipSyncOohAah(), and setPreferences().
F32 * LLVoiceVisualizer::sAah = NULL [static, private] |
Definition at line 147 of file llvoicevisualizer.h.
Referenced by lipSyncOohAah(), and setPreferences().
U32 LLVoiceVisualizer::sOohs = 0 [static, private] |
Definition at line 148 of file llvoicevisualizer.h.
Referenced by lipSyncOohAah(), and setPreferences().
U32 LLVoiceVisualizer::sAahs = 0 [static, private] |
Definition at line 149 of file llvoicevisualizer.h.
Referenced by lipSyncOohAah(), and setPreferences().
F32 LLVoiceVisualizer::sOohAahRate = 0.0f [static, private] |
Definition at line 150 of file llvoicevisualizer.h.
Referenced by lipSyncOohAah(), and setPreferences().
F32 * LLVoiceVisualizer::sOohPowerTransfer = NULL [static, private] |
Definition at line 151 of file llvoicevisualizer.h.
Referenced by lipSyncOohAah(), and setPreferences().
U32 LLVoiceVisualizer::sOohPowerTransfers = 0 [static, private] |
Definition at line 152 of file llvoicevisualizer.h.
Referenced by lipSyncOohAah(), and setPreferences().
F32 LLVoiceVisualizer::sOohPowerTransfersf = 0.0f [static, private] |
Definition at line 153 of file llvoicevisualizer.h.
Referenced by lipSyncOohAah(), and setPreferences().
F32 * LLVoiceVisualizer::sAahPowerTransfer = NULL [static, private] |
Definition at line 154 of file llvoicevisualizer.h.
Referenced by lipSyncOohAah(), and setPreferences().
U32 LLVoiceVisualizer::sAahPowerTransfers = 0 [static, private] |
Definition at line 155 of file llvoicevisualizer.h.
Referenced by lipSyncOohAah(), and setPreferences().
F32 LLVoiceVisualizer::sAahPowerTransfersf = 0.0f [static, private] |
Definition at line 156 of file llvoicevisualizer.h.
Referenced by lipSyncOohAah(), and setPreferences().