diff options
author | Oz Linden <oz@lindenlab.com> | 2011-01-20 20:48:16 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-01-20 20:48:16 -0500 |
commit | 4f3953763de478b15ec6adc5c468b19a0e13bfe8 (patch) | |
tree | df9926a8ef0446a44bbb07126dafb7345760fd8c /indra/llaudio/llaudioengine.cpp | |
parent | f9b9c7a5816cf0b9627a4a50e73a663667937145 (diff) | |
parent | c47ab36b20e102a918257e5fa5452f13bc55a393 (diff) |
merge changes from viewer-beta
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; |