diff options
author | Oz Linden <oz@lindenlab.com> | 2011-01-21 07:21:51 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-01-21 07:21:51 -0500 |
commit | a426a4b65b4914c2469a0db1dbde4051b59c289b (patch) | |
tree | 4e801959d76b3acf2cb6d84bd07c65757ee6a50e /indra/llaudio/llaudioengine.cpp | |
parent | 8864a1b4db54b1ae5b335dec6372ee763b05ece9 (diff) | |
parent | 3015e4310564684702d5eb4c9be56c8870561706 (diff) |
merge changes for storm-834
Diffstat (limited to 'indra/llaudio/llaudioengine.cpp')
-rw-r--r-- | indra/llaudio/llaudioengine.cpp | 6 |
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; |