aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvieweraudio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llvieweraudio.cpp')
-rw-r--r--linden/indra/newview/llvieweraudio.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/linden/indra/newview/llvieweraudio.cpp b/linden/indra/newview/llvieweraudio.cpp
index bc25649..fb0c59e 100644
--- a/linden/indra/newview/llvieweraudio.cpp
+++ b/linden/indra/newview/llvieweraudio.cpp
@@ -4,7 +4,7 @@
4 * 4 *
5 * $LicenseInfo:firstyear=2002&license=viewergpl$ 5 * $LicenseInfo:firstyear=2002&license=viewergpl$
6 * 6 *
7 * Copyright (c) 2002-2008, Linden Research, Inc. 7 * Copyright (c) 2002-2009, Linden Research, Inc.
8 * 8 *
9 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 10 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -141,6 +141,14 @@ void audio_update_volume(bool force_update)
141 { 141 {
142 audio_update_wind(true); 142 audio_update_wind(true);
143 } 143 }
144
145 // handle secondary gains
146 gAudiop->setSecondaryGain(LLAudioEngine::AUDIO_TYPE_SFX,
147 gSavedSettings.getBOOL("MuteSounds") ? 0.f : gSavedSettings.getF32("AudioLevelSFX"));
148 gAudiop->setSecondaryGain(LLAudioEngine::AUDIO_TYPE_UI,
149 gSavedSettings.getBOOL("MuteUI") ? 0.f : gSavedSettings.getF32("AudioLevelUI"));
150 gAudiop->setSecondaryGain(LLAudioEngine::AUDIO_TYPE_AMBIENT,
151 gSavedSettings.getBOOL("MuteAmbient") ? 0.f : gSavedSettings.getF32("AudioLevelAmbient"));
144 } 152 }
145 153
146 // Streaming Music 154 // Streaming Music