summaryrefslogtreecommitdiff
path: root/indra/newview/llvieweraudio.cpp
diff options
context:
space:
mode:
authorJosh Bell <josh@lindenlab.com>2008-02-14 01:45:59 +0000
committerJosh Bell <josh@lindenlab.com>2008-02-14 01:45:59 +0000
commit98fd90ddd6595f2ee7e626c14117f51def621ec5 (patch)
tree9a9caf8bffa53b753fe850f445bd133195e9bb03 /indra/newview/llvieweraudio.cpp
parent89d938efe371645756240da72f4c359c36985060 (diff)
svn merge -r 79730:79944 svn+ssh://svn.lindenlab.com/svn/linden/branches/parcel_media/sl-parcelmedia-6 --> release
QAR-275 Parcel Media Sam made me do it.
Diffstat (limited to 'indra/newview/llvieweraudio.cpp')
-rw-r--r--indra/newview/llvieweraudio.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/indra/newview/llvieweraudio.cpp b/indra/newview/llvieweraudio.cpp
index b8c8e62c4b..affce91b79 100644
--- a/indra/newview/llvieweraudio.cpp
+++ b/indra/newview/llvieweraudio.cpp
@@ -35,12 +35,12 @@
#include "audiosettings.h"
#include "llagent.h"
#include "llappviewer.h"
-#include "llmediaengine.h"
#include "llvieweraudio.h"
#include "llviewercamera.h"
#include "llviewercontrol.h"
#include "llviewerwindow.h"
#include "llvoiceclient.h"
+#include "llviewermedia.h"
/////////////////////////////////////////////////////////
@@ -153,13 +153,10 @@ void audio_update_volume(bool force_update)
}
// Streaming Media
- if(LLMediaEngine::getInstance())
- {
- F32 media_volume = gSavedSettings.getF32("AudioLevelMedia");
- media_volume = mute_volume * master_volume * (media_volume*media_volume);
- BOOL media_muted = gSavedSettings.getBOOL("MuteMedia");
- LLMediaEngine::getInstance()->setVolume(media_muted ? 0.f : media_volume);
- }
+ F32 media_volume = gSavedSettings.getF32("AudioLevelMedia");
+ BOOL media_muted = gSavedSettings.getBOOL("MuteMedia");
+ media_volume = mute_volume * master_volume * (media_volume*media_volume);
+ LLViewerMedia::setVolume( media_muted ? 0.0f : media_volume );
// Voice
if (gVoiceClient)