diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index dae7f52450..e5c47521d9 100755 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -13879,6 +13879,17 @@ Change of this parameter will affect the layout of buttons in notification toast Value 0 + UISndFootsteps + + Comment + Sound file for default footsteps (uuid for sound asset). Change requires restart to take effect. + Persist + 1 + Type + String + Value + e8af4a28-aa83-4310-a7c4-c047e15ea0df + UISndFriendOffline Comment @@ -18222,6 +18233,17 @@ Change of this parameter will affect the layout of buttons in notification toast Value 1 + PlayModeUISndFootsteps + + Comment + Holds state for Prefs > Sound/Media > UI Sounds - UISndFootsteps. + Persist + 1 + Type + Boolean + Value + 1 + PlayModeUISndFriendOffline Comment diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index bc4a3bccae..603b58ff3b 100755 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -623,7 +623,7 @@ F32 LLVOAvatar::sRenderDistance = 256.f; S32 LLVOAvatar::sNumVisibleAvatars = 0; S32 LLVOAvatar::sNumLODChangesThisFrame = 0; -const LLUUID LLVOAvatar::sStepSoundOnLand("e8af4a28-aa83-4310-a7c4-c047e15ea0df"); +// const LLUUID LLVOAvatar::sStepSoundOnLand("e8af4a28-aa83-4310-a7c4-c047e15ea0df"); - Commented out for FIRE-3169: Option to change the default footsteps sound const LLUUID LLVOAvatar::sStepSounds[LL_MCODE_END] = { SND_STONE_RUBBER, @@ -4193,7 +4193,11 @@ BOOL LLVOAvatar::updateCharacter(LLAgent &agent) mWasOnGroundLeft = onGroundLeft; mWasOnGroundRight = onGroundRight; - if ( playSound ) + // FIRE-3169: Option to change the default footsteps sound + // if ( playSound ) + static LLCachedControl PlayModeUISndFootsteps(gSavedSettings, "PlayModeUISndFootsteps"); + if ( playSound && PlayModeUISndFootsteps ) + // { // F32 gain = clamp_rescale( mSpeedAccum, // AUDIO_STEP_LO_SPEED, AUDIO_STEP_HI_SPEED, @@ -5081,7 +5085,12 @@ const LLUUID& LLVOAvatar::getStepSound() const { if ( mStepOnLand ) { - return sStepSoundOnLand; + // FIRE-3169: Option to change the default footsteps sound + // return sStepSoundOnLand; + static LLCachedControl UISndFootsteps(gSavedSettings, "UISndFootsteps"); + static const LLUUID sFootstepsSnd = LLUUID(UISndFootsteps); + return sFootstepsSnd; + // } return sStepSounds[mStepMaterial]; diff --git a/indra/newview/llvoavatar.h b/indra/newview/llvoavatar.h index 9b5e3e03b5..ee5d84428a 100644 --- a/indra/newview/llvoavatar.h +++ b/indra/newview/llvoavatar.h @@ -999,7 +999,7 @@ protected: private: // Global table of sound ids per material, and the ground const static LLUUID sStepSounds[LL_MCODE_END]; - const static LLUUID sStepSoundOnLand; + // const static LLUUID sStepSoundOnLand; - Commented out for FIRE-3169: Option to change the default footsteps sound //-------------------------------------------------------------------- // Foot step state (for generating sounds) diff --git a/indra/newview/skins/default/xui/en/panel_preferences_sound.xml b/indra/newview/skins/default/xui/en/panel_preferences_sound.xml index 02b89e8587..cf4e513884 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_sound.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_sound.xml @@ -2956,6 +2956,62 @@ Hover your mouse cursor over UUID field to show its default value. left_pad="1" width="120" /> + + Default footsteps: + + + + + + diff --git a/indra/newview/skins/default/xui/pl/panel_preferences_sound.xml b/indra/newview/skins/default/xui/pl/panel_preferences_sound.xml index 7a8a3a77ff..13d4c40bb8 100644 --- a/indra/newview/skins/default/xui/pl/panel_preferences_sound.xml +++ b/indra/newview/skins/default/xui/pl/panel_preferences_sound.xml @@ -358,6 +358,13 @@ Przytrzymaj kursor myszki ponad polem na UUID, aby zobaczyć jego domyślną war