diff options
Diffstat (limited to 'indra/newview/llstartup.cpp')
| -rw-r--r-- | indra/newview/llstartup.cpp | 41 | 
1 files changed, 39 insertions, 2 deletions
diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index bf7c58a3cb..eca5ba82ac 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -39,6 +39,10 @@  #include "llviewermedia_streamingaudio.h"  #include "llaudioengine.h" +#ifdef LL_FMODSTUDIO +# include "llaudioengine_fmodstudio.h" +#endif +  #ifdef LL_OPENAL  #include "llaudioengine_openal.h"  #endif @@ -206,11 +210,14 @@  #include "threadpool.h"  #include "llperfstats.h" +#include "rlvhandler.h"  #if LL_WINDOWS  #include "lldxhardware.h"  #endif +#include "fsfloatersearch.h" +  //  // exported globals  // @@ -683,6 +690,15 @@ bool idle_startup()              delete gAudiop;              gAudiop = NULL; +#ifdef LL_FMODSTUDIO +#if !LL_WINDOWS +            if (NULL == getenv("LL_BAD_FMODSTUDIO_DRIVER")) +#endif // !LL_WINDOWS +            { +                gAudiop = (LLAudioEngine *) new LLAudioEngine_FMODSTUDIO(gSavedSettings.getBOOL("FMODExProfilerEnable")); +            } +#endif +  #ifdef LL_OPENAL  #if !LL_WINDOWS              if (NULL == getenv("LL_BAD_OPENAL_DRIVER")) @@ -703,8 +719,19 @@ bool idle_startup()  #endif                  if (gAudiop->init(window_handle, LLAppViewer::instance()->getSecondLifeTitle()))                  { -                    LL_INFOS("AppInit") << "Using media plugins to render streaming audio" << LL_ENDL; -                    gAudiop->setStreamingAudioImpl(new LLStreamingAudio_MediaPlugins()); +                    if (FALSE == gSavedSettings.getBOOL("UseMediaPluginsForStreamingAudio")) +                    { +                        LL_INFOS("AppInit") << "Using default impl to render streaming audio" << LL_ENDL; +                        gAudiop->setStreamingAudioImpl(gAudiop->createDefaultStreamingAudioImpl()); +                    } + +                    // if the audio engine hasn't set up its own preferred handler for streaming audio +                    // then set up the generic streaming audio implementation which uses media plugins +                    if (NULL == gAudiop->getStreamingAudioImpl()) +                    { +                        LL_INFOS("AppInit") << "Using media plugins to render streaming audio" << LL_ENDL; +                        gAudiop->setStreamingAudioImpl(new LLStreamingAudio_MediaPlugins()); +                    }                      gAudiop->setMuted(true);                  } @@ -911,6 +938,8 @@ bool idle_startup()              return false;          } +        RlvHandler::setEnabled(gSavedSettings.get<bool>(Rlv::Settings::Main)); +          // reset the values that could have come in from a slurl          // DEV-42215: Make sure they're not empty -- gUserCredential          // might already have been set from gSavedSettings, and it's too bad @@ -2852,6 +2881,14 @@ void register_viewer_callbacks(LLMessageSystem* msg)      msg->setHandlerFunc("AvatarPickerReply", LLFloaterAvatarPicker::processAvatarPickerReply); +        // directory search +    msg->setHandlerFuncFast(_PREHASH_DirPeopleReply, FSPanelSearchPeople::processSearchReply); +    msg->setHandlerFuncFast(_PREHASH_DirPlacesReply, FSPanelSearchPlaces::processSearchReply); +    msg->setHandlerFuncFast(_PREHASH_DirGroupsReply, FSPanelSearchGroups::processSearchReply); +    msg->setHandlerFuncFast(_PREHASH_DirEventsReply, FSPanelSearchEvents::processSearchReply); +    msg->setHandlerFuncFast(_PREHASH_DirLandReply,   FSPanelSearchLand::processSearchReply); +    msg->setHandlerFuncFast(_PREHASH_DirClassifiedReply,  FSPanelSearchClassifieds::processSearchReply); +      msg->setHandlerFunc("MapBlockReply", LLWorldMapMessage::processMapBlockReply);      msg->setHandlerFunc("MapItemReply", LLWorldMapMessage::processMapItemReply);      msg->setHandlerFunc("EventInfoReply", LLEventNotifier::processEventInfoReply);  | 
