aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-02-14 23:16:16 -0700
committerMcCabe Maxsted2009-02-14 23:16:16 -0700
commit5ca6654804dd26f41320b461dbe81d1dba42c3f4 (patch)
tree0aaf5095690f344a2f7fd201eb15ec90552dc24d /linden
parentFixed missing music prompt (streaming now enabled by default) (diff)
downloadmeta-impy-5ca6654804dd26f41320b461dbe81d1dba42c3f4.zip
meta-impy-5ca6654804dd26f41320b461dbe81d1dba42c3f4.tar.gz
meta-impy-5ca6654804dd26f41320b461dbe81d1dba42c3f4.tar.bz2
meta-impy-5ca6654804dd26f41320b461dbe81d1dba42c3f4.tar.xz
Fixed music button not toggling on first run
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/newview/lloverlaybar.cpp7
-rw-r--r--linden/indra/newview/lloverlaybar.h3
-rw-r--r--linden/indra/newview/llviewerparcelmgr.cpp2
3 files changed, 12 insertions, 0 deletions
diff --git a/linden/indra/newview/lloverlaybar.cpp b/linden/indra/newview/lloverlaybar.cpp
index 1087fd8..80cac14 100644
--- a/linden/indra/newview/lloverlaybar.cpp
+++ b/linden/indra/newview/lloverlaybar.cpp
@@ -275,6 +275,7 @@ void LLOverlayBar::refresh()
275 { 275 {
276 layoutButtons(); 276 layoutButtons();
277 } 277 }
278
278} 279}
279 280
280//----------------------------------------------------------------------- 281//-----------------------------------------------------------------------
@@ -360,6 +361,12 @@ void LLOverlayBar::toggleMediaPlay(void*)
360} 361}
361 362
362//static 363//static
364void LLOverlayBar::musicFirstRun()
365{
366 gOverlayBar->mMusicState = PLAYING;
367}
368
369//static
363void LLOverlayBar::toggleMusicPlay(void*) 370void LLOverlayBar::toggleMusicPlay(void*)
364{ 371{
365 if (!gOverlayBar) 372 if (!gOverlayBar)
diff --git a/linden/indra/newview/lloverlaybar.h b/linden/indra/newview/lloverlaybar.h
index 5880ff0..73d0a43 100644
--- a/linden/indra/newview/lloverlaybar.h
+++ b/linden/indra/newview/lloverlaybar.h
@@ -80,6 +80,9 @@ public:
80 static void musicStop(void*); 80 static void musicStop(void*);
81 static void mediaStop(void*); 81 static void mediaStop(void*);
82 82
83 // hack to make sure the music button plays.
84 static void musicFirstRun();
85
83 static void toggleAudioVolumeFloater(void*); 86 static void toggleAudioVolumeFloater(void*);
84 87
85protected: 88protected:
diff --git a/linden/indra/newview/llviewerparcelmgr.cpp b/linden/indra/newview/llviewerparcelmgr.cpp
index e27e284..2dee2bf 100644
--- a/linden/indra/newview/llviewerparcelmgr.cpp
+++ b/linden/indra/newview/llviewerparcelmgr.cpp
@@ -1720,6 +1720,8 @@ void callback_start_music(S32 option, void* data)
1720 // We fetch again to avoid lag while loading. 1720 // We fetch again to avoid lag while loading.
1721 LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel(); 1721 LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel();
1722 gAudiop->startInternetStream(parcel->getMusicURL()); 1722 gAudiop->startInternetStream(parcel->getMusicURL());
1723
1724 LLOverlayBar::musicFirstRun();
1723 } 1725 }
1724 gSavedSettings.setWarning("FirstStreamingMusic", FALSE); 1726 gSavedSettings.setWarning("FirstStreamingMusic", FALSE);
1725} 1727}