LLVoiceVisualizer Class Reference

#include <llvoicevisualizer.h>

Inheritance diagram for LLVoiceVisualizer:

Inheritance graph
[legend]
Collaboration diagram for LLVoiceVisualizer:

Collaboration graph
[legend]

List of all members.

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 lipSyncOohAah (F32 &ooh, F32 &aah)
void render ()
void packData (LLMessageSystem *mesgsys)
void unpackData (LLMessageSystem *mesgsys, S32 blocknum)
void markDead ()
void setMaxGesticulationAmplitude ()
void setMinGesticulationAmplitude ()

Static Public Member Functions

static void setPreferences ()
static void lipStringToF32s (std::string &in_string, F32 *&out_F32s, U32 &count_F32s)

Private Attributes

LLFrameTimer mTimer
F64 mStartTime
F64 mCurrentTime
F64 mPreviousTime
SoundSymbol mSoundSymbol
bool mVoiceEnabled
bool mCurrentlySpeaking
LLVector3 mVoiceSourceWorldPosition
F32 mSpeakingAmplitude
F32 mMaxGesticulationAmplitude
F32 mMinGesticulationAmplitude

Static Private Attributes

static U32 sLipSyncEnabled = 0
static bool sPrefsInitialized = false
static F32sOoh = NULL
static F32sAah = NULL
static U32 sOohs = 0
static U32 sAahs = 0
static F32 sOohAahRate = 0.0f
static F32sOohPowerTransfer = NULL
static U32 sOohPowerTransfers = 0
static F32 sOohPowerTransfersf = 0.0f
static F32sAahPowerTransfer = NULL
static U32 sAahPowerTransfers = 0
static F32 sAahPowerTransfersf = 0.0f

Friends

class LLHUDObject

Classes

struct  SoundSymbol


Detailed Description

Definition at line 73 of file llvoicevisualizer.h.


Constructor & Destructor Documentation

LLVoiceVisualizer::LLVoiceVisualizer ( const U8  type  ) 

LLVoiceVisualizer::~LLVoiceVisualizer (  ) 

Definition at line 574 of file llvoicevisualizer.cpp.


Member Function Documentation

void LLVoiceVisualizer::setVoiceSourceWorldPosition ( const LLVector3 p  ) 

Definition at line 544 of file llvoicevisualizer.cpp.

References mVoiceSourceWorldPosition.

Referenced by LLVOAvatar::idleUpdate().

Here is the caller graph for this function:

void LLVoiceVisualizer::setMinGesticulationAmplitude ( F32  m  ) 

Definition at line 170 of file llvoicevisualizer.cpp.

References mMinGesticulationAmplitude.

void LLVoiceVisualizer::setMaxGesticulationAmplitude ( F32  m  ) 

Definition at line 177 of file llvoicevisualizer.cpp.

References mMaxGesticulationAmplitude.

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceVisualizer::setVoiceEnabled ( bool  v  ) 

Definition at line 184 of file llvoicevisualizer.cpp.

References mVoiceEnabled.

Referenced by LLVOAvatar::idleUpdate(), and LLVOAvatar::LLVOAvatar().

Here is the caller graph for this function:

void LLVoiceVisualizer::setSpeakingAmplitude ( F32  a  ) 

Definition at line 218 of file llvoicevisualizer.cpp.

References mSpeakingAmplitude.

Referenced by LLVOAvatar::idleUpdate().

Here is the caller graph for this function:

void LLVoiceVisualizer::setStopSpeaking (  ) 

Definition at line 209 of file llvoicevisualizer.cpp.

References mCurrentlySpeaking, and mSpeakingAmplitude.

Referenced by LLVOAvatar::idleUpdate().

Here is the caller graph for this function:

bool LLVoiceVisualizer::getCurrentlySpeaking (  ) 

Definition at line 201 of file llvoicevisualizer.cpp.

References mCurrentlySpeaking.

Referenced by LLVOAvatar::idleUpdate().

Here is the caller graph for this function:

VoiceGesticulationLevel LLVoiceVisualizer::getCurrentGesticulationLevel (  ) 

void LLVoiceVisualizer::setPreferences (  )  [static]

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

Here is the caller graph for this function:

void LLVoiceVisualizer::lipSyncOohAah ( F32 ooh,
F32 aah 
)

void LLVoiceVisualizer::render (  )  [virtual]

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

Here is the call graph for this function:

void LLVoiceVisualizer::unpackData ( LLMessageSystem mesgsys,
S32  blocknum 
) [virtual]

Reimplemented from LLHUDEffect.

Definition at line 599 of file llvoicevisualizer.cpp.

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVoiceVisualizer::setMaxGesticulationAmplitude (  ) 

void LLVoiceVisualizer::setMinGesticulationAmplitude (  ) 


Friends And Related Function Documentation

friend class LLHUDObject [friend]

Definition at line 82 of file llvoicevisualizer.h.


Member Data Documentation

Definition at line 128 of file llvoicevisualizer.h.

Referenced by lipSyncOohAah(), LLVoiceVisualizer(), render(), and setStartSpeaking().

Definition at line 129 of file llvoicevisualizer.h.

Referenced by lipSyncOohAah(), LLVoiceVisualizer(), and setStartSpeaking().

Definition at line 130 of file llvoicevisualizer.h.

Referenced by LLVoiceVisualizer(), and render().

Definition at line 131 of file llvoicevisualizer.h.

Referenced by LLVoiceVisualizer(), and render().

Definition at line 132 of file llvoicevisualizer.h.

Referenced by LLVoiceVisualizer(), markDead(), render(), and setStartSpeaking().

Definition at line 133 of file llvoicevisualizer.h.

Referenced by LLVoiceVisualizer(), markDead(), render(), and setVoiceEnabled().

Definition at line 135 of file llvoicevisualizer.h.

Referenced by LLVoiceVisualizer(), render(), and setVoiceSourceWorldPosition().

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]

Definition at line 145 of file llvoicevisualizer.h.

Referenced by LLVoiceVisualizer().

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

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

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


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:37:25 2008 for SecondLife by  doxygen 1.5.5