summaryrefslogtreecommitdiff
path: root/indra/llaudio
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-02-04 16:19:20 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-02-04 16:19:20 +0200
commite76f25d25fb96965fcf37a477bbf8c14ef1eccb2 (patch)
tree72eb7d8e202a20760fe654565ea7f208c3a66649 /indra/llaudio
parent192aee0f191e6070b91be066b599b8dc3302a5e1 (diff)
SL-11445 Couple small fixes
Diffstat (limited to 'indra/llaudio')
-rw-r--r--indra/llaudio/lllistener_fmodstudio.cpp5
-rw-r--r--indra/llaudio/llstreamingaudio_fmodstudio.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/indra/llaudio/lllistener_fmodstudio.cpp b/indra/llaudio/lllistener_fmodstudio.cpp
index fd88b981c4..34f3d00eae 100644
--- a/indra/llaudio/lllistener_fmodstudio.cpp
+++ b/indra/llaudio/lllistener_fmodstudio.cpp
@@ -105,9 +105,10 @@ void LLListener_FMODSTUDIO::commitDeferredChanges()
void LLListener_FMODSTUDIO::setRolloffFactor(F32 factor)
{
- //An internal FMODEx optimization skips 3D updates if there have not been changes to the 3D sound environment.
+ //An internal FMOD optimization skips 3D updates if there have not been changes to the 3D sound environment.
+ // (this was true for FMODex, looks to be still true for FMOD STUDIO)
//Sadly, a change in rolloff is not accounted for, thus we must touch the listener properties as well.
- //In short: Changing the position ticks a dirtyflag inside fmodex, which makes it not skip 3D processing next update call.
+ //In short: Changing the position ticks a dirtyflag inside fmod, which makes it not skip 3D processing next update call.
if (mRolloffFactor != factor)
{
LLVector3 pos = mVelocity - LLVector3(0.f, 0.f, .1f);
diff --git a/indra/llaudio/llstreamingaudio_fmodstudio.h b/indra/llaudio/llstreamingaudio_fmodstudio.h
index 6637b2d155..1fc3c54d79 100644
--- a/indra/llaudio/llstreamingaudio_fmodstudio.h
+++ b/indra/llaudio/llstreamingaudio_fmodstudio.h
@@ -70,4 +70,4 @@ private:
};
-#endif // LL_STREAMINGAUDIO_FMODEX_H
+#endif // LL_STREAMINGAUDIO_FMODSTUDIO_H