diff --git a/code/datums/looping_sounds/machinery_sounds.dm b/code/datums/looping_sounds/machinery_sounds.dm index 1ce534a681..5f86187684 100644 --- a/code/datums/looping_sounds/machinery_sounds.dm +++ b/code/datums/looping_sounds/machinery_sounds.dm @@ -123,7 +123,7 @@ mid_length = 60 volume = 10 extra_range = -1 // Short-range - pref_check = /datum/preference/toggle/fridge_hum + pref_check = /datum/preference/toggle/sound_fridgehum volume_chan = VOLUME_CHANNEL_MACHINERY_IDLE //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -131,6 +131,7 @@ /datum/looping_sound/tcomms start_sound = 'sound/machines/tcomms/tcomms_pulse.ogg' mid_sounds = list('sound/machines/tcomms/tcomms_01.ogg' = 1) + start_length = 1.6 SECONDS mid_length = 20 end_sound = 'sound/machines/tcomms/tcomms_pulse.ogg' volume = 40 @@ -142,6 +143,7 @@ /datum/looping_sound/shield_generator start_sound = 'sound/machines/shield_hum/shield_generator_whir.ogg' + start_length = 3.8 SECONDS mid_sounds = list('sound/machines/shield_hum/shield_generator_hum2.ogg', 'sound/machines/shield_hum/shield_generator_hum3.ogg') mid_length = 60 end_sound = 'sound/machines/shield_hum/shield_generator_whir.ogg' diff --git a/code/modules/client/preferences/types/game/sound.dm b/code/modules/client/preferences/types/game/sound.dm index cbd2e367da..297ce1ad84 100644 --- a/code/modules/client/preferences/types/game/sound.dm +++ b/code/modules/client/preferences/types/game/sound.dm @@ -276,7 +276,7 @@ savefile_key = "sound_instruments" savefile_identifier = PREFERENCE_PLAYER -/datum/preference/toggle/fridge_hum +/datum/preference/toggle/sound_fridgehum category = PREFERENCE_CATEGORY_GAME_PREFERENCES - savefile_key = "SOUND_FRIDGEHUM" + savefile_key = "sound_fridgehum" savefile_identifier = PREFERENCE_PLAYER diff --git a/tgui/packages/tgui/interfaces/PreferencesMenu/preferences/features/game_preferences/sound.tsx b/tgui/packages/tgui/interfaces/PreferencesMenu/preferences/features/game_preferences/sound.tsx index c144611b1a..2a5034a0b3 100644 --- a/tgui/packages/tgui/interfaces/PreferencesMenu/preferences/features/game_preferences/sound.tsx +++ b/tgui/packages/tgui/interfaces/PreferencesMenu/preferences/features/game_preferences/sound.tsx @@ -30,11 +30,18 @@ export const SOUND_AMBIENCE: FeatureToggle = { export const sound_instruments: Feature = { name: 'Instruments volume', - category: 'SOUND', + category: 'SOUNDS', description: 'Volume of instruments.', component: FeatureSliderInput, }; +export const sound_fridgehum: FeatureToggle = { + name: 'Play Fridge Hum', + category: 'SOUNDS', + description: 'Enable hearing the ambient hum fridges make.', + component: CheckboxInput, +}; + export const SOUND_JUKEBOX: FeatureToggle = { name: 'Play Jukebox Music', category: 'SOUNDS',