diff --git a/indra/newview/llstatusbar.cpp b/indra/newview/llstatusbar.cpp index 0775a516e5..845db463c5 100644 --- a/indra/newview/llstatusbar.cpp +++ b/indra/newview/llstatusbar.cpp @@ -102,6 +102,7 @@ #include #include "llpanelpathfindingrebakenavmesh.h" // Pathfinding rebake functions +#include "llvieweraudio.h" // // Globals @@ -803,7 +804,7 @@ void LLStatusBar::toggleStream(bool enable) { // 'false' means unpause //gAudiop->pauseInternetStream(false); - gAudiop->startInternetStream(LLViewerMedia::getParcelAudioURL()); + LLViewerAudio::getInstance()->startInternetStreamWithAutoFade(LLViewerMedia::getParcelAudioURL()); } else { @@ -813,13 +814,13 @@ void LLStatusBar::toggleStream(bool enable) } else { - gAudiop->startInternetStream(LLViewerMedia::getParcelAudioURL()); + LLViewerAudio::getInstance()->startInternetStreamWithAutoFade(LLViewerMedia::getParcelAudioURL()); } } } else { - gAudiop->stopInternetStream(); + LLViewerAudio::getInstance()->stopInternetStreamWithAutoFade(); } // Split up handling cont.