diff options
author | Jacek Antonelli | 2008-12-01 17:39:58 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-01 17:40:06 -0600 |
commit | 7abecb48babe6a6f09bf6692ba55076546cfced9 (patch) | |
tree | 8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/newview/llvieweraudio.cpp | |
parent | Second Life viewer sources 1.21.6 (diff) | |
download | meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.zip meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.gz meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.bz2 meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.xz |
Second Life viewer sources 1.22.0-RC
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 |