diff options
author | leyla_linden <none@none> | 2011-01-19 11:39:25 -0800 |
---|---|---|
committer | leyla_linden <none@none> | 2011-01-19 11:39:25 -0800 |
commit | 17068766b75fbe7dac968705f4f383fb61f73eb4 (patch) | |
tree | 9a6923653b721311b61edac947b2e7682972cce3 /indra/llaudio/llaudioengine.cpp | |
parent | ca1c1eea78ff2ab83979a4308dd5a93ea0032fc8 (diff) | |
parent | eec6071766e6fef7015610b002a9bcb09ce36836 (diff) |
Merge
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; |