Skip to content
Snippets Groups Projects
Commit 7fea3a70 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Avoid playing silent sounds. Thanks Chalice!

parent 05b25218
No related branches found
No related tags found
No related merge requests found
...@@ -819,7 +819,8 @@ void LLAudioEngine::triggerSound(const LLUUID &audio_uuid, const LLUUID& owner_i ...@@ -819,7 +819,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. // Create a new source (since this can't be associated with an existing source.
//LL_INFOS() << "Localized: " << audio_uuid << LL_ENDL; //LL_INFOS() << "Localized: " << audio_uuid << LL_ENDL;
if (mMuted) // Do not load mutex or silent sounds.
if (mMuted || gain <FLT_EPSILON*2)
{ {
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment