diff options
Diffstat (limited to 'linden/indra/newview/llviewercontrol.cpp')
-rw-r--r-- | linden/indra/newview/llviewercontrol.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewercontrol.cpp b/linden/indra/newview/llviewercontrol.cpp index 2c48766..a81def7 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 |
75 | BOOL gHackGodmode = FALSE; | 76 | BOOL gHackGodmode = FALSE; |
@@ -431,6 +432,22 @@ bool handleVoiceClientPrefsChanged(const LLSD& newvalue) | |||
431 | return true; | 432 | return true; |
432 | } | 433 | } |
433 | 434 | ||
435 | bool handleMediaDebugLevelChanged(const LLSD& newvalue) | ||
436 | { | ||
437 | LLMediaManager *mgr = LLMediaManager::getInstance(); | ||
438 | if (mgr) | ||
439 | { | ||
440 | LLMediaBase *impl = | ||
441 | mgr->createSourceFromMimeType("http", "audio/mpeg"); | ||
442 | |||
443 | if (impl) | ||
444 | { | ||
445 | impl->setDebugLevel( (LLMediaBase::EDebugLevel)newvalue.asInteger() ); | ||
446 | } | ||
447 | } | ||
448 | return true; | ||
449 | } | ||
450 | |||
434 | //////////////////////////////////////////////////////////////////////////// | 451 | //////////////////////////////////////////////////////////////////////////// |
435 | 452 | ||
436 | void settings_setup_listeners() | 453 | void settings_setup_listeners() |
@@ -560,6 +577,7 @@ void settings_setup_listeners() | |||
560 | gSavedSettings.getControl("VoiceOutputAudioDevice")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); | 577 | gSavedSettings.getControl("VoiceOutputAudioDevice")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); |
561 | gSavedSettings.getControl("AudioLevelMic")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); | 578 | gSavedSettings.getControl("AudioLevelMic")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); |
562 | gSavedSettings.getControl("LipSyncEnabled")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); | 579 | gSavedSettings.getControl("LipSyncEnabled")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); |
580 | gSavedSettings.getControl("MediaDebugLevel")->getSignal()->connect(boost::bind(&handleMediaDebugLevelChanged, _1)); | ||
563 | } | 581 | } |
564 | 582 | ||
565 | template <> eControlType get_control_type<U32>(const U32& in, LLSD& out) | 583 | template <> eControlType get_control_type<U32>(const U32& in, LLSD& out) |