diff options
Diffstat (limited to 'linden/indra/newview')
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 11 | ||||
-rw-r--r-- | linden/indra/newview/llviewercontrol.cpp | 18 | ||||
-rw-r--r-- | linden/indra/newview/llviewermedia.cpp | 7 |
3 files changed, 36 insertions, 0 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index 7405aad..1ecab2b 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -4659,6 +4659,17 @@ | |||
4659 | <key>Value</key> | 4659 | <key>Value</key> |
4660 | <integer>0</integer> | 4660 | <integer>0</integer> |
4661 | </map> | 4661 | </map> |
4662 | <key>MediaDebugLevel</key> | ||
4663 | <map> | ||
4664 | <key>Comment</key> | ||
4665 | <string>How spammy media (GStreamer) debug output should be. (0-4)</string> | ||
4666 | <key>Persist</key> | ||
4667 | <integer>1</integer> | ||
4668 | <key>Type</key> | ||
4669 | <string>U32</string> | ||
4670 | <key>Value</key> | ||
4671 | <integer>0</integer> | ||
4672 | </map> | ||
4662 | <key>MemoryLogFrequency</key> | 4673 | <key>MemoryLogFrequency</key> |
4663 | <map> | 4674 | <map> |
4664 | <key>Comment</key> | 4675 | <key>Comment</key> |
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 |
75 | BOOL gHackGodmode = FALSE; | 76 | BOOL gHackGodmode = FALSE; |
@@ -429,6 +430,22 @@ bool handleVoiceClientPrefsChanged(const LLSD& newvalue) | |||
429 | return true; | 430 | return true; |
430 | } | 431 | } |
431 | 432 | ||
433 | bool 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 | ||
434 | void settings_setup_listeners() | 451 | void 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 | ||
561 | template <> eControlType get_control_type<U32>(const U32& in, LLSD& out) | 579 | template <> eControlType get_control_type<U32>(const U32& in, LLSD& out) |
diff --git a/linden/indra/newview/llviewermedia.cpp b/linden/indra/newview/llviewermedia.cpp index e99c838..d8fcdcb 100644 --- a/linden/indra/newview/llviewermedia.cpp +++ b/linden/indra/newview/llviewermedia.cpp | |||
@@ -496,6 +496,13 @@ void LLViewerMedia::initClass() | |||
496 | const LLMIMETypes::LLMIMEInfo& info = it->second; | 496 | const LLMIMETypes::LLMIMEInfo& info = it->second; |
497 | mm->addMimeTypeImplNameMap( mime_type, info.mImpl ); | 497 | mm->addMimeTypeImplNameMap( mime_type, info.mImpl ); |
498 | } | 498 | } |
499 | |||
500 | LLMediaBase *impl = mm->createSourceFromMimeType("http", "audio/mpeg"); | ||
501 | if (impl) | ||
502 | { | ||
503 | U32 level = gSavedSettings.getU32("MediaDebugLevel"); | ||
504 | impl->setDebugLevel( (LLMediaBase::EDebugLevel)level ); | ||
505 | } | ||
499 | } | 506 | } |
500 | 507 | ||
501 | ////////////////////////////////////////////////////////////////////////////////////////// | 508 | ////////////////////////////////////////////////////////////////////////////////////////// |