summaryrefslogtreecommitdiff
path: root/indra/llaudio/llaudioengine.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2011-02-11 11:38:27 -0500
committerOz Linden <oz@lindenlab.com>2011-02-11 11:38:27 -0500
commit924be3f25c2fca57a8d6f5f902eaeca5c2dd91e1 (patch)
tree3ba82720ba6b24830637999bfa605e786d814ced /indra/llaudio/llaudioengine.cpp
parent40abc0fe1e6edd2f018fcdc35ffccdb5475a5fe0 (diff)
parent547b40bfc8b0139789a2d9c5dcd1591343a2c60b (diff)
pull back release tag from viewer-beta
Diffstat (limited to 'indra/llaudio/llaudioengine.cpp')
-rw-r--r--indra/llaudio/llaudioengine.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llaudio/llaudioengine.cpp b/indra/llaudio/llaudioengine.cpp
index c9cb1cd6e7..5e540ad8c5 100644
--- a/indra/llaudio/llaudioengine.cpp
+++ b/indra/llaudio/llaudioengine.cpp
@@ -97,7 +97,11 @@ void LLAudioEngine::setDefaults()
}
mMasterGain = 1.f;
- mInternalGain = 0.f;
+ // Setting mInternalGain to an out of range value fixes the issue reported in STORM-830.
+ // There is an edge case in setMasterGain during startup which prevents setInternalGain from
+ // being called if the master volume setting and mInternalGain both equal 0, so using -1 forces
+ // the if statement in setMasterGain to execute when the viewer starts up.
+ mInternalGain = -1.f;
mNextWindUpdate = 0.f;
mStreamingAudioImpl = NULL;