aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvieweraudio.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:42 -0500
committerJacek Antonelli2008-08-15 23:45:42 -0500
commitce28e056c20bf2723f565bbf464b87781ec248a2 (patch)
treeef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llvieweraudio.cpp
parentSecond Life viewer sources 1.19.1.4b (diff)
downloadmeta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz
Second Life viewer sources 1.20.2
Diffstat (limited to 'linden/indra/newview/llvieweraudio.cpp')
-rw-r--r--linden/indra/newview/llvieweraudio.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/linden/indra/newview/llvieweraudio.cpp b/linden/indra/newview/llvieweraudio.cpp
index 499673f..122a0bc 100644
--- a/linden/indra/newview/llvieweraudio.cpp
+++ b/linden/indra/newview/llvieweraudio.cpp
@@ -32,7 +32,6 @@
32#include "llviewerprecompiledheaders.h" 32#include "llviewerprecompiledheaders.h"
33 33
34#include "audioengine.h" 34#include "audioengine.h"
35#include "audiosettings.h"
36#include "llagent.h" 35#include "llagent.h"
37#include "llappviewer.h" 36#include "llappviewer.h"
38#include "llvieweraudio.h" 37#include "llvieweraudio.h"
@@ -57,15 +56,15 @@ void init_audio()
57 lpos_global_f.setVec(lpos_global); 56 lpos_global_f.setVec(lpos_global);
58 57
59 gAudiop->setListener(lpos_global_f, 58 gAudiop->setListener(lpos_global_f,
60 LLVector3::zero, // gCamera->getVelocity(), // !!! BUG need to replace this with smoothed velocity! 59 LLVector3::zero, // LLViewerCamera::getInstance()->getVelocity(), // !!! BUG need to replace this with smoothed velocity!
61 gCamera->getUpAxis(), 60 LLViewerCamera::getInstance()->getUpAxis(),
62 gCamera->getAtAxis()); 61 LLViewerCamera::getInstance()->getAtAxis());
63 62
64// load up our initial set of sounds we'll want so they're in memory and ready to be played 63// load up our initial set of sounds we'll want so they're in memory and ready to be played
65 64
66 BOOL mute_audio = gSavedSettings.getBOOL("MuteAudio"); 65 BOOL mute_audio = gSavedSettings.getBOOL("MuteAudio");
67 66
68 if (!mute_audio && gPreloadSounds) 67 if (!mute_audio && FALSE == gSavedSettings.getBOOL("NoPreload"))
69 { 68 {
70 gAudiop->preloadSound(LLUUID(gSavedSettings.getString("UISndAlert"))); 69 gAudiop->preloadSound(LLUUID(gSavedSettings.getString("UISndAlert")));
71 gAudiop->preloadSound(LLUUID(gSavedSettings.getString("UISndBadKeystroke"))); 70 gAudiop->preloadSound(LLUUID(gSavedSettings.getString("UISndBadKeystroke")));
@@ -188,11 +187,11 @@ void audio_update_listener()
188 lpos_global_f.setVec(lpos_global); 187 lpos_global_f.setVec(lpos_global);
189 188
190 gAudiop->setListener(lpos_global_f, 189 gAudiop->setListener(lpos_global_f,
191 // gCameraVelocitySmoothed, 190 // LLViewerCamera::getInstance()VelocitySmoothed,
192 // LLVector3::zero, 191 // LLVector3::zero,
193 gAgent.getVelocity(), // !!! *TODO: need to replace this with smoothed velocity! 192 gAgent.getVelocity(), // !!! *TODO: need to replace this with smoothed velocity!
194 gCamera->getUpAxis(), 193 LLViewerCamera::getInstance()->getUpAxis(),
195 gCamera->getAtAxis()); 194 LLViewerCamera::getInstance()->getAtAxis());
196 } 195 }
197} 196}
198 197