summaryrefslogtreecommitdiff
path: root/indra/llaudio
diff options
context:
space:
mode:
authorMike Antipov <mantipov@productengine.com>2010-04-28 18:11:34 +0300
committerMike Antipov <mantipov@productengine.com>2010-04-28 18:11:34 +0300
commit8b53588f5768e644875effdccc6c2e74156c24ea (patch)
tree3403c0743766e0189eca7d75f7f8424f790dadce /indra/llaudio
parentf9a120e8983a72b6de2f146acec55e079255b70e (diff)
parentfe4b6a8d78c98db4c7d55877209ca272fa73b3d9 (diff)
merge
--HG-- branch : product-engine
Diffstat (limited to 'indra/llaudio')
-rw-r--r--indra/llaudio/llstreamingaudio_fmod.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llaudio/llstreamingaudio_fmod.cpp b/indra/llaudio/llstreamingaudio_fmod.cpp
index a4620fa13c..fe94688565 100644
--- a/indra/llaudio/llstreamingaudio_fmod.cpp
+++ b/indra/llaudio/llstreamingaudio_fmod.cpp
@@ -271,7 +271,7 @@ void LLStreamingAudio_FMOD::setGain(F32 vol)
if (mFMODInternetStreamChannel != -1)
{
- vol = llclamp(vol, 0.f, 1.f);
+ vol = llclamp(vol * vol, 0.f, 1.f);
int vol_int = llround(vol * 255.f);
FSOUND_SetVolumeAbsolute(mFMODInternetStreamChannel, vol_int);
}