diff options
author | Jonathan Yap <none@none> | 2012-05-20 14:22:38 -0400 |
---|---|---|
committer | Jonathan Yap <none@none> | 2012-05-20 14:22:38 -0400 |
commit | 278d3b15e6f7ecd83e48bb5c7eac11f670776a72 (patch) | |
tree | 8c5f411fb53fc878189abfe840f545a45a8687e3 | |
parent | 031c3bbcc4c1fdba9b8a2c797ebcac03310df93b (diff) |
STORM-1812 Store playing state from an additional place.
-rw-r--r-- | indra/newview/llvieweraudio.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/indra/newview/llvieweraudio.cpp b/indra/newview/llvieweraudio.cpp index 9953bc1f36..542f16cbee 100644 --- a/indra/newview/llvieweraudio.cpp +++ b/indra/newview/llvieweraudio.cpp @@ -382,15 +382,9 @@ void audio_update_volume(bool force_update) if (progress_view_visible && !LLViewerAudio::getInstance()->getForcedTeleportFade()) { // Even though the music was turned off it was starting up (with autoplay disabled) occasionally - // after a failed teleport or after an intra-parcel teleport. - if (gAudiop->getInternetStreamURL().empty()) - { - LLViewerAudio::getInstance()->setWasPlaying(false); - } - else - { - LLViewerAudio::getInstance()->setWasPlaying(true); - } + // after a failed teleport or after an intra-parcel teleport. Also, the music sometimes was not + // restarting after a successful intra-parcel teleport. Setting mWasPlaying fixes these issues. + LLViewerAudio::getInstance()->setWasPlaying(!gAudiop->getInternetStreamURL().empty()); LLViewerAudio::getInstance()->setForcedTeleportFade(true); LLViewerAudio::getInstance()->startInternetStreamWithAutoFade(LLStringUtil::null); LLViewerAudio::getInstance()->setNextStreamURI(LLStringUtil::null); @@ -398,6 +392,7 @@ void audio_update_volume(bool force_update) if (!progress_view_visible && LLViewerAudio::getInstance()->getForcedTeleportFade()) { + LLViewerAudio::getInstance()->setWasPlaying(!gAudiop->getInternetStreamURL().empty()); LLViewerAudio::getInstance()->setForcedTeleportFade(false); } |