summaryrefslogtreecommitdiff
path: root/indra/llaudio/llaudioengine.cpp
diff options
context:
space:
mode:
authorprep linden <prep@lindenlab.com>2011-01-14 15:30:57 -0500
committerprep linden <prep@lindenlab.com>2011-01-14 15:30:57 -0500
commiteec6071766e6fef7015610b002a9bcb09ce36836 (patch)
tree4f63bb1629b5295a1de10d1a014b5297a6cf34cc /indra/llaudio/llaudioengine.cpp
parenta678ff80af6c48d4232c52aa505b633a1fc22663 (diff)
parent645da31dd70834dd67a854b3775529154e538d7f (diff)
merge
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;