summaryrefslogtreecommitdiff
path: root/indra/llaudio
diff options
context:
space:
mode:
authorRichard Nelson <none@none>2010-04-27 09:42:49 -0700
committerRichard Nelson <none@none>2010-04-27 09:42:49 -0700
commit42c2e62014d835818451cfbb7639db01de09c351 (patch)
treeab86933430a5870d04b355cbcb9612cfeb40b91a /indra/llaudio
parent6a6af64e072968f94440c137f5f83985755eda8b (diff)
parentbd08f1989461b8b81ed04df6f8dc2097862a20e8 (diff)
merge
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);
}