aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewercontrol.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-04-02 08:03:59 -0700
committerMcCabe Maxsted2009-04-02 08:03:59 -0700
commitf305714a96729f42edecdc3d7a544383bece7ba4 (patch)
tree24d844d82b77957e763e6bc9a3103e29aa77f5f3 /linden/indra/newview/llviewercontrol.cpp
parentCleaned up logic for bad streams (diff)
parentApply saved MediaDebugLevel at media init time. (diff)
downloadmeta-impy-f305714a96729f42edecdc3d7a544383bece7ba4.zip
meta-impy-f305714a96729f42edecdc3d7a544383bece7ba4.tar.gz
meta-impy-f305714a96729f42edecdc3d7a544383bece7ba4.tar.bz2
meta-impy-f305714a96729f42edecdc3d7a544383bece7ba4.tar.xz
Fixed merge conflicts
Diffstat (limited to 'linden/indra/newview/llviewercontrol.cpp')
-rw-r--r--linden/indra/newview/llviewercontrol.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewercontrol.cpp b/linden/indra/newview/llviewercontrol.cpp
index 7a30b22..a8a3b16 100644
--- a/linden/indra/newview/llviewercontrol.cpp
+++ b/linden/indra/newview/llviewercontrol.cpp
@@ -70,6 +70,7 @@
70#include "llvosurfacepatch.h" 70#include "llvosurfacepatch.h"
71#include "llvowlsky.h" 71#include "llvowlsky.h"
72#include "llrender.h" 72#include "llrender.h"
73#include "llmediamanager.h"
73 74
74#ifdef TOGGLE_HACKED_GODLIKE_VIEWER 75#ifdef TOGGLE_HACKED_GODLIKE_VIEWER
75BOOL gHackGodmode = FALSE; 76BOOL gHackGodmode = FALSE;
@@ -429,6 +430,22 @@ bool handleVoiceClientPrefsChanged(const LLSD& newvalue)
429 return true; 430 return true;
430} 431}
431 432
433bool handleMediaDebugLevelChanged(const LLSD& newvalue)
434{
435 LLMediaManager *mgr = LLMediaManager::getInstance();
436 if (mgr)
437 {
438 LLMediaBase *impl =
439 mgr->createSourceFromMimeType("http", "audio/mpeg");
440
441 if (impl)
442 {
443 impl->setDebugLevel( (LLMediaBase::EDebugLevel)newvalue.asInteger() );
444 }
445 }
446 return true;
447}
448
432//////////////////////////////////////////////////////////////////////////// 449////////////////////////////////////////////////////////////////////////////
433 450
434void settings_setup_listeners() 451void settings_setup_listeners()
@@ -556,6 +573,7 @@ void settings_setup_listeners()
556 gSavedSettings.getControl("VoiceInputAudioDevice")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); 573 gSavedSettings.getControl("VoiceInputAudioDevice")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1));
557 gSavedSettings.getControl("VoiceOutputAudioDevice")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); 574 gSavedSettings.getControl("VoiceOutputAudioDevice")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1));
558 gSavedSettings.getControl("LipSyncEnabled")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); 575 gSavedSettings.getControl("LipSyncEnabled")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1));
576 gSavedSettings.getControl("MediaDebugLevel")->getSignal()->connect(boost::bind(&handleMediaDebugLevelChanged, _1));
559} 577}
560 578
561template <> eControlType get_control_type<U32>(const U32& in, LLSD& out) 579template <> eControlType get_control_type<U32>(const U32& in, LLSD& out)