summaryrefslogtreecommitdiff
path: root/indra/newview/llvoicevisualizer.cpp
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2008-06-06 22:43:38 +0000
committerSteven Bennetts <steve@lindenlab.com>2008-06-06 22:43:38 +0000
commitad332810078a0bbb8fa08fcbfdf3d756de6914f6 (patch)
tree1608b2db5d620d323673607ea7ddadfba9d58bda /indra/newview/llvoicevisualizer.cpp
parenta7d9a543e587ffe84b355db7a2e8193bfe6c68b6 (diff)
QAR-650 - Viewer RC 9 merge -> release (post cmake)
merge release@88802 Branch_1-20-Viewer-2-merge-1@89178 -> release
Diffstat (limited to 'indra/newview/llvoicevisualizer.cpp')
-rw-r--r--indra/newview/llvoicevisualizer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/llvoicevisualizer.cpp b/indra/newview/llvoicevisualizer.cpp
index a0286d3e4b..40e405a313 100644
--- a/indra/newview/llvoicevisualizer.cpp
+++ b/indra/newview/llvoicevisualizer.cpp
@@ -45,7 +45,7 @@
#include "llviewerimage.h"
#include "llviewerimagelist.h"
#include "llvoiceclient.h"
-#include "llglimmediate.h"
+#include "llrender.h"
//brent's wave image
//29de489d-0491-fb00-7dab-f9e686d31e83
@@ -94,7 +94,7 @@ static bool handleVoiceVisualizerPrefsChanged(const LLSD& newvalue)
// Initialize the statics
//------------------------------------------------------------------
bool LLVoiceVisualizer::sPrefsInitialized = false;
-U32 LLVoiceVisualizer::sLipSyncEnabled = 0;
+BOOL LLVoiceVisualizer::sLipSyncEnabled = FALSE;
F32* LLVoiceVisualizer::sOoh = NULL;
F32* LLVoiceVisualizer::sAah = NULL;
U32 LLVoiceVisualizer::sOohs = 0;
@@ -225,7 +225,7 @@ void LLVoiceVisualizer::setSpeakingAmplitude( F32 a )
//---------------------------------------------------
void LLVoiceVisualizer::setPreferences( )
{
- sLipSyncEnabled = gSavedSettings.getU32("LipSyncEnabled");
+ sLipSyncEnabled = gSavedSettings.getBOOL("LipSyncEnabled");
sOohAahRate = gSavedSettings.getF32("LipSyncOohAahRate");
std::string oohString = gSavedSettings.getString("LipSyncOoh");
@@ -290,7 +290,7 @@ void LLVoiceVisualizer::lipStringToF32s ( std::string& in_string, F32*& out_F32s
//--------------------------------------------------------------------------
void LLVoiceVisualizer::lipSyncOohAah( F32& ooh, F32& aah )
{
- if( ( sLipSyncEnabled == 1 ) && mCurrentlySpeaking )
+ if( ( sLipSyncEnabled == TRUE ) && mCurrentlySpeaking )
{
U32 transfer_index = (U32) (sOohPowerTransfersf * mSpeakingAmplitude);
if (transfer_index < 0)