aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llstartup.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llstartup.cpp35
1 files changed, 23 insertions, 12 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp
index b70253e..a03ce1d 100644
--- a/linden/indra/newview/llstartup.cpp
+++ b/linden/indra/newview/llstartup.cpp
@@ -39,15 +39,16 @@
39#else 39#else
40# include <sys/stat.h> // mkdir() 40# include <sys/stat.h> // mkdir()
41#endif 41#endif
42 42#include "llpluginclassmediaowner.h"
43#include "audioengine.h" 43#include "llviewermedia_streamingaudio.h"
44#include "llaudioengine.h"
44 45
45#ifdef LL_FMOD 46#ifdef LL_FMOD
46# include "audioengine_fmod.h" 47# include "llaudioengine_fmod.h"
47#endif 48#endif
48 49
49#ifdef LL_OPENAL 50#ifdef LL_OPENAL
50#include "audioengine_openal.h" 51#include "llaudioengine_openal.h"
51#endif 52#endif
52 53
53#include "llares.h" 54#include "llares.h"
@@ -100,6 +101,7 @@
100#include "llfloatergesture.h" 101#include "llfloatergesture.h"
101#include "llfloaterhud.h" 102#include "llfloaterhud.h"
102#include "llfloaterland.h" 103#include "llfloaterland.h"
104#include "llfloaterteleporthistory.h"
103#include "llfloatertopobjects.h" 105#include "llfloatertopobjects.h"
104#include "llfloatertos.h" 106#include "llfloatertos.h"
105#include "llfloaterworldmap.h" 107#include "llfloaterworldmap.h"
@@ -679,6 +681,16 @@ bool idle_startup()
679 delete gAudiop; 681 delete gAudiop;
680 gAudiop = NULL; 682 gAudiop = NULL;
681 } 683 }
684
685 if (gAudiop)
686 {
687 // 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
688 if (NULL == gAudiop->getStreamingAudioImpl())
689 {
690 LL_INFOS("AppInit") << "Using media plugins to render streaming audio" << LL_ENDL;
691 gAudiop->setStreamingAudioImpl(new LLStreamingAudio_MediaPlugins());
692 }
693 }
682 } 694 }
683 } 695 }
684 696
@@ -764,7 +776,7 @@ bool idle_startup()
764 std::string msg = LLTrans::getString("LoginInitializingBrowser"); 776 std::string msg = LLTrans::getString("LoginInitializingBrowser");
765 set_startup_status(0.03f, msg.c_str(), gAgent.mMOTD.c_str()); 777 set_startup_status(0.03f, msg.c_str(), gAgent.mMOTD.c_str());
766 display_startup(); 778 display_startup();
767 LLViewerMedia::initBrowser(); 779 // LLViewerMedia::initBrowser();
768 780
769 LLStartUp::setStartupState( STATE_LOGIN_SHOW ); 781 LLStartUp::setStartupState( STATE_LOGIN_SHOW );
770 return FALSE; 782 return FALSE;
@@ -2240,6 +2252,8 @@ bool idle_startup()
2240 LLStringUtil::truncate(gWindowTitle, 255); 2252 LLStringUtil::truncate(gWindowTitle, 255);
2241 gViewerWindow->getWindow()->setWindowTitle(gWindowTitle); 2253 gViewerWindow->getWindow()->setWindowTitle(gWindowTitle);
2242 } 2254 }
2255 // Inform simulator of our language preference
2256 LLAgentLanguage::update();
2243 2257
2244 // unpack thin inventory 2258 // unpack thin inventory
2245 LLUserAuth::options_t options; 2259 LLUserAuth::options_t options;
@@ -2559,9 +2573,6 @@ bool idle_startup()
2559 // JC - 7/20/2002 2573 // JC - 7/20/2002
2560 gViewerWindow->sendShapeToSim(); 2574 gViewerWindow->sendShapeToSim();
2561 2575
2562 // Inform simulator of our language preference
2563 LLAgentLanguage::update();
2564
2565 2576
2566 // Ignore stipend information for now. Money history is on the web site. 2577 // Ignore stipend information for now. Money history is on the web site.
2567 // if needed, show the L$ history window 2578 // if needed, show the L$ history window
@@ -3724,7 +3735,7 @@ void init_start_screen(S32 location_id)
3724 } 3735 }
3725 3736
3726 raw->expandToPowerOfTwo(); 3737 raw->expandToPowerOfTwo();
3727 gStartImageGL->createGLTexture(0, raw, 0, TRUE, LLViewerImageBoostLevel::OTHER); 3738 gStartImageGL->createGLTexture(0, raw);
3728} 3739}
3729 3740
3730 3741
@@ -3830,7 +3841,7 @@ void LLStartUp::multimediaInit()
3830 set_startup_status(0.42f, msg.c_str(), gAgent.mMOTD.c_str()); 3841 set_startup_status(0.42f, msg.c_str(), gAgent.mMOTD.c_str());
3831 display_startup(); 3842 display_startup();
3832 3843
3833 LLViewerMedia::initClass(); 3844 //LLViewerMedia::initClass();
3834 LLViewerParcelMedia::initClass(); 3845 LLViewerParcelMedia::initClass();
3835} 3846}
3836 3847
@@ -3839,7 +3850,7 @@ bool LLStartUp::dispatchURL()
3839 // ok, if we've gotten this far and have a startup URL 3850 // ok, if we've gotten this far and have a startup URL
3840 if (!sSLURLCommand.empty()) 3851 if (!sSLURLCommand.empty())
3841 { 3852 {
3842 LLWebBrowserCtrl* web = NULL; 3853 LLMediaCtrl* web = NULL;
3843 const bool trusted_browser = false; 3854 const bool trusted_browser = false;
3844 LLURLDispatcher::dispatch(sSLURLCommand, web, trusted_browser); 3855 LLURLDispatcher::dispatch(sSLURLCommand, web, trusted_browser);
3845 } 3856 }
@@ -3857,7 +3868,7 @@ bool LLStartUp::dispatchURL()
3857 || (dy*dy > SLOP*SLOP) ) 3868 || (dy*dy > SLOP*SLOP) )
3858 { 3869 {
3859 std::string url = LLURLSimString::getURL(); 3870 std::string url = LLURLSimString::getURL();
3860 LLWebBrowserCtrl* web = NULL; 3871 LLMediaCtrl* web = NULL;
3861 const bool trusted_browser = false; 3872 const bool trusted_browser = false;
3862 LLURLDispatcher::dispatch(url, web, trusted_browser); 3873 LLURLDispatcher::dispatch(url, web, trusted_browser);
3863 } 3874 }