diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llvieweraudio.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/linden/indra/newview/llvieweraudio.cpp b/linden/indra/newview/llvieweraudio.cpp index 122a0bc..23a685a 100644 --- a/linden/indra/newview/llvieweraudio.cpp +++ b/linden/indra/newview/llvieweraudio.cpp | |||
@@ -139,6 +139,14 @@ void audio_update_volume(bool force_update) | |||
139 | { | 139 | { |
140 | audio_update_wind(true); | 140 | audio_update_wind(true); |
141 | } | 141 | } |
142 | |||
143 | // handle secondary gains | ||
144 | gAudiop->setSecondaryGain(LLAudioEngine::AUDIO_TYPE_SFX, | ||
145 | gSavedSettings.getBOOL("MuteSounds") ? 0.f : gSavedSettings.getF32("AudioLevelSFX")); | ||
146 | gAudiop->setSecondaryGain(LLAudioEngine::AUDIO_TYPE_UI, | ||
147 | gSavedSettings.getBOOL("MuteUI") ? 0.f : gSavedSettings.getF32("AudioLevelUI")); | ||
148 | gAudiop->setSecondaryGain(LLAudioEngine::AUDIO_TYPE_AMBIENT, | ||
149 | gSavedSettings.getBOOL("MuteAmbient") ? 0.f : gSavedSettings.getF32("AudioLevelAmbient")); | ||
142 | } | 150 | } |
143 | 151 | ||
144 | // Streaming Music | 152 | // Streaming Music |