diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llvieweraudio.cpp | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llvieweraudio.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/linden/indra/newview/llvieweraudio.cpp b/linden/indra/newview/llvieweraudio.cpp index 58ce7a7..499673f 100644 --- a/linden/indra/newview/llvieweraudio.cpp +++ b/linden/indra/newview/llvieweraudio.cpp | |||
@@ -35,12 +35,12 @@ | |||
35 | #include "audiosettings.h" | 35 | #include "audiosettings.h" |
36 | #include "llagent.h" | 36 | #include "llagent.h" |
37 | #include "llappviewer.h" | 37 | #include "llappviewer.h" |
38 | #include "llmediaengine.h" | ||
39 | #include "llvieweraudio.h" | 38 | #include "llvieweraudio.h" |
40 | #include "llviewercamera.h" | 39 | #include "llviewercamera.h" |
41 | #include "llviewercontrol.h" | 40 | #include "llviewercontrol.h" |
42 | #include "llviewerwindow.h" | 41 | #include "llviewerwindow.h" |
43 | #include "llvoiceclient.h" | 42 | #include "llvoiceclient.h" |
43 | #include "llviewermedia.h" | ||
44 | 44 | ||
45 | ///////////////////////////////////////////////////////// | 45 | ///////////////////////////////////////////////////////// |
46 | 46 | ||
@@ -153,13 +153,10 @@ void audio_update_volume(bool force_update) | |||
153 | } | 153 | } |
154 | 154 | ||
155 | // Streaming Media | 155 | // Streaming Media |
156 | if(LLMediaEngine::getInstance()) | 156 | F32 media_volume = gSavedSettings.getF32("AudioLevelMedia"); |
157 | { | 157 | BOOL media_muted = gSavedSettings.getBOOL("MuteMedia"); |
158 | F32 media_volume = gSavedSettings.getF32("AudioLevelMedia"); | 158 | media_volume = mute_volume * master_volume * (media_volume*media_volume); |
159 | media_volume = mute_volume * master_volume * (media_volume*media_volume); | 159 | LLViewerMedia::setVolume( media_muted ? 0.0f : media_volume ); |
160 | BOOL media_muted = gSavedSettings.getBOOL("MuteMedia"); | ||
161 | LLMediaEngine::getInstance()->setVolume(media_muted ? 0.f : media_volume); | ||
162 | } | ||
163 | 160 | ||
164 | // Voice | 161 | // Voice |
165 | if (gVoiceClient) | 162 | if (gVoiceClient) |