diff options
Diffstat (limited to 'linden/indra/newview/llvoicevisualizer.cpp')
-rw-r--r-- | linden/indra/newview/llvoicevisualizer.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/linden/indra/newview/llvoicevisualizer.cpp b/linden/indra/newview/llvoicevisualizer.cpp index 0046ae0..8c0d0ab 100644 --- a/linden/indra/newview/llvoicevisualizer.cpp +++ b/linden/indra/newview/llvoicevisualizer.cpp | |||
@@ -98,21 +98,21 @@ LLVoiceVisualizer::LLVoiceVisualizer( const U8 type ) | |||
98 | 98 | ||
99 | mTimer.reset(); | 99 | mTimer.reset(); |
100 | 100 | ||
101 | LLUUID sound_level_img[] = | 101 | const char* sound_level_img[] = |
102 | { | 102 | { |
103 | LLUUID(gSavedSettings.getString("VoiceImageLevel0")), | 103 | "041ee5a0-cb6a-9ac5-6e49-41e9320507d5.j2c", |
104 | LLUUID(gSavedSettings.getString("VoiceImageLevel1")), | 104 | "29de489d-0491-fb00-7dab-f9e686d31e83.j2c", |
105 | LLUUID(gSavedSettings.getString("VoiceImageLevel2")), | 105 | "29de489d-0491-fb00-7dab-f9e686d31e83.j2c", |
106 | LLUUID(gSavedSettings.getString("VoiceImageLevel3")), | 106 | "29de489d-0491-fb00-7dab-f9e686d31e83.j2c", |
107 | LLUUID(gSavedSettings.getString("VoiceImageLevel4")), | 107 | "29de489d-0491-fb00-7dab-f9e686d31e83.j2c", |
108 | LLUUID(gSavedSettings.getString("VoiceImageLevel5")), | 108 | "29de489d-0491-fb00-7dab-f9e686d31e83.j2c", |
109 | LLUUID(gSavedSettings.getString("VoiceImageLevel6")) | 109 | "29de489d-0491-fb00-7dab-f9e686d31e83.j2c" |
110 | }; | 110 | }; |
111 | 111 | ||
112 | for (int i=0; i<NUM_VOICE_SYMBOL_WAVES; i++) | 112 | for (int i=0; i<NUM_VOICE_SYMBOL_WAVES; i++) |
113 | { | 113 | { |
114 | mSoundSymbol.mWaveFadeOutStartTime [i] = mCurrentTime; | 114 | mSoundSymbol.mWaveFadeOutStartTime [i] = mCurrentTime; |
115 | mSoundSymbol.mTexture [i] = gImageList.getImageByID(sound_level_img[i]); | 115 | mSoundSymbol.mTexture [i] = gImageList.getImageFromFile(sound_level_img[i], FALSE, TRUE); |
116 | mSoundSymbol.mWaveActive [i] = false; | 116 | mSoundSymbol.mWaveActive [i] = false; |
117 | mSoundSymbol.mWaveOpacity [i] = 1.0f; | 117 | mSoundSymbol.mWaveOpacity [i] = 1.0f; |
118 | mSoundSymbol.mWaveExpansion [i] = 1.0f; | 118 | mSoundSymbol.mWaveExpansion [i] = 1.0f; |
@@ -203,8 +203,8 @@ void LLVoiceVisualizer::render() | |||
203 | //------------------------------------------------------------- | 203 | //------------------------------------------------------------- |
204 | // create coordinates of the geometry for the dot | 204 | // create coordinates of the geometry for the dot |
205 | //------------------------------------------------------------- | 205 | //------------------------------------------------------------- |
206 | LLVector3 l = gCamera->getLeftAxis() * DOT_SIZE; | 206 | LLVector3 l = LLViewerCamera::getInstance()->getLeftAxis() * DOT_SIZE; |
207 | LLVector3 u = gCamera->getUpAxis() * DOT_SIZE; | 207 | LLVector3 u = LLViewerCamera::getInstance()->getUpAxis() * DOT_SIZE; |
208 | 208 | ||
209 | LLVector3 bottomLeft = mSoundSymbol.mPosition + l - u; | 209 | LLVector3 bottomLeft = mSoundSymbol.mPosition + l - u; |
210 | LLVector3 bottomRight = mSoundSymbol.mPosition - l - u; | 210 | LLVector3 bottomRight = mSoundSymbol.mPosition - l - u; |
@@ -330,8 +330,8 @@ void LLVoiceVisualizer::render() | |||
330 | F32 width = i * WAVE_WIDTH_SCALE * mSoundSymbol.mWaveExpansion[i]; | 330 | F32 width = i * WAVE_WIDTH_SCALE * mSoundSymbol.mWaveExpansion[i]; |
331 | F32 height = i * WAVE_HEIGHT_SCALE * mSoundSymbol.mWaveExpansion[i]; | 331 | F32 height = i * WAVE_HEIGHT_SCALE * mSoundSymbol.mWaveExpansion[i]; |
332 | 332 | ||
333 | LLVector3 l = gCamera->getLeftAxis() * width; | 333 | LLVector3 l = LLViewerCamera::getInstance()->getLeftAxis() * width; |
334 | LLVector3 u = gCamera->getUpAxis() * height; | 334 | LLVector3 u = LLViewerCamera::getInstance()->getUpAxis() * height; |
335 | 335 | ||
336 | LLVector3 bottomLeft = mSoundSymbol.mPosition + l - u; | 336 | LLVector3 bottomLeft = mSoundSymbol.mPosition + l - u; |
337 | LLVector3 bottomRight = mSoundSymbol.mPosition - l - u; | 337 | LLVector3 bottomRight = mSoundSymbol.mPosition - l - u; |