Restored AudioLevelWind as a debug setting

master
Hecklezz 2025-04-04 09:21:33 +10:00
parent f182deb680
commit 1147beca1d
2 changed files with 18 additions and 2 deletions

View File

@ -1911,7 +1911,20 @@
<key>Value</key>
<real>0.7</real>
</map>
<key>AudioStreamingMedia</key>
<!-- <FS> [FIRE-35317] Restore AudioLevelWind debug setting -->
<key>AudioLevelWind</key>
<map>
<key>Comment</key>
<string>Audio level of wind noise when standing still</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>F32</string>
<key>Value</key>
<real>0.5</real>
</map>
<!-- </FS> -->
<key>AudioStreamingMedia</key>
<map>
<key>Comment</key>
<string>Enable streaming</string>

View File

@ -650,8 +650,11 @@ void audio_update_wind(bool force_update)
// whereas steady-state avatar walk velocity is only 3.2 m/s.
// Without this the world feels desolate on first login when you are
// standing still.
const F32 WIND_LEVEL = 0.5f;
// <FS> [FIRE-35317] Restore AudioLevelWind debug setting
//const F32 WIND_LEVEL = 0.5f;
static LLUICachedControl<F32> WIND_LEVEL("AudioLevelWind", 0.5f);
LLVector3 scaled_wind_vec = gWindVec * WIND_LEVEL;
// </FS>
// Mix in the avatar's motion, subtract because when you walk north,
// the apparent wind moves south.