diff options
author | Oz Linden <oz@lindenlab.com> | 2011-01-17 10:30:36 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-01-17 10:30:36 -0500 |
commit | 74fdba829574e5132fec6633b0ddcd2feb9fe51e (patch) | |
tree | bf17dba56b38a3b228f6174f950e3d405b6329af /indra/llaudio | |
parent | fe28f89e7e79b9de5a455b9c9833d243d8039774 (diff) | |
parent | 1d7b46e2c32c6bdf2e6cf5a8b9dcb0c8cb767b1b (diff) |
merge changes for vwr-24420
Diffstat (limited to 'indra/llaudio')
-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; |