From 35f1a85fe1c7f18256f305f68c8b1e46f7b8696d Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Sat, 7 Mar 2009 10:39:53 -0700 Subject: Applied patch by Zwagoth Klaar for muting sounds before decoding --- linden/indra/llaudio/audioengine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'linden/indra/llaudio/audioengine.cpp') diff --git a/linden/indra/llaudio/audioengine.cpp b/linden/indra/llaudio/audioengine.cpp index 7bb65e9..75901e8 100644 --- a/linden/indra/llaudio/audioengine.cpp +++ b/linden/indra/llaudio/audioengine.cpp @@ -879,7 +879,8 @@ void LLAudioEngine::triggerSound(const LLUUID &audio_uuid, const LLUUID& owner_i // Create a new source (since this can't be associated with an existing source. //LL_INFOS("AudioEngine") << "Localized: " << audio_uuid << llendl; - if (mMuted) + //If we cannot hear it, dont even try to load the sound. + if (mMuted || gain == 0.0) { return; } -- cgit v1.1