Commit graph

31 commits

Author SHA1 Message Date
Eidolon
0dc337c9a5 Fix lots of code for clang-cl compatibility 2025-09-17 17:24:32 -05:00
Antonio Martinez
1d2ec19c6e Voice menu fixups, apply tempmutes to guest/spectator 2025-08-27 21:55:46 -04:00
VelocitOni
29d1dcef2d "Deafen" and "Server Voice Chat" now have new variables
cv_voice_chat -> cv_voice_selfdeafen & cv_voice_servermute -> cv_voice_allowservervoice
2025-07-24 22:54:43 -04:00
VelocitOni
51ac6c250b "Undeafen" (still cv_voice_chat for now), flipped all bools
Flipped all bools on Undeafen since it's worded different
2025-07-24 22:37:51 -04:00
Eidolon
cb7f437e60 Merge public master 2025-02-13 15:48:11 -06:00
Eidolon
a4d304a1f5 Update copyright years to 2025 2025-02-13 15:32:26 -06:00
Eidolon
22b20b5877 Add netgame voice chat
Implemented using libopus for the Opus codec, same as is used in Discord.
This adds the following cvars:

- `voice_chat` On/Off, triggers self-deafen state on server via weaponprefs
- `voice_mode` Activity/PTT
- `voice_selfmute` On/Off, triggers self-mute state on server via weaponprefs
- `voice_inputamp` -30 to 30, scales input by value in decibels
- `voice_activationthreshold` -30 to 0, if any peak in a frame is higher, activates voice
- `voice_loopback` On/Off, plays back local transcoded voice
- `voice_proximity` On/Off, enables proximity effects for server
- `voice_distanceattenuation_distance` distance in fracunits to scale voice volume over
- `voice_distanceattenuation_factor` distance in logarithmic factor to scale voice volume by distance to. e.g. 0.5 for "half as loud" at or above max distance
- `voice_stereopanning_factor` at 1.0, player voices are panned to left or right speaker, scaling to no effect at 0.0
- `voice_concurrentattenuation_factor` the logarithmic factor to attenuate player voices with concurrent speakers
- `voice_concurrentattenuation_min` the minimum concurrent speakers before global concurrent speaker attenuation
- `voice_concurrentattenuation_max` the maximum concurrent speakers for full global concurrent speaker attenuation
- `voice_servermute` whether voice chat is enabled on this server. visible from MS via bitflag
- `voicevolume` local volume of all voice playback

A Voice Options menu is added with a subset of these options, and Server Options has server mute.
2024-12-13 17:12:14 -06:00
Antonio Martinez
dfd15ca8a2 Real definitely final button unfuck TWO 2024-09-27 05:29:57 -07:00
Antonio Martinez
b1bd711d5e Really definitely final button literal unfuck 2024-09-27 05:29:47 -07:00
Eidolon
f9d70530ed Add snd_mixingbuffersize cvar
Allows the user to configure the mixing buffer size to reduce
latency at the cost of higher CPU usage, or vice versa.

This also raises the default buffer size from 1024 to 2048, to
address some underrun problems people have with the current buffer
size.
2024-04-30 23:31:24 -05:00
Eidolon
ab854ab545 Add streamersafemusic cvar
Don't play music that is marked contentidunsafe in its MUSICDEF (if
it exists).
2024-04-30 18:09:43 -05:00
toaster
fa77631c25 Alternate tooltip for Follower Horn option under tasteless conditions 2024-04-03 01:30:40 +01:00
toaster
44951e2f86 Adjust the menu descriptions for Character Voices and Follower Horns 2024-04-03 01:19:23 +01:00
toaster
5971b4af04 Follower Horn cvar on Sounds Options
- Visible if any Followers unlocked OR Online mode is unlocked
- Also, re-organise the menu to put the user preferences into another dropdownable box
2024-03-29 22:04:16 +00:00
James R
75bc7ce5f9 Copyright fixup: Kart Krew 2024-03-28 19:02:01 -07:00
James R
d3034bba54 Menus/Sound Options: add Continuous Attack Music option
- On by default (current behavior)
- Off
  - Restart music in Attack modes
  - Also plays POSITION music
2024-03-13 22:43:35 -07:00
James R
74a04f0ab0 Menus/Sound Options: remove Reverse L/R Channels option
- This literally doesn't work
2024-03-13 22:40:52 -07:00
James R
1e578a1779 Menus/Options: reorganize and rename
- Tried to make verbiage consistent in tooltips
- Move advanced video options into submenu
- Remove console chat option
- Move some really technical options from Data to submenu
2024-03-07 16:11:11 -08:00
James R
64e2b77819 Menus/Sound Options: unmute if slider is adjusted
- Master volume: unmutes both SFX and music (if both were
  muted)
- SFX, music: unmutes the individual channels
2024-01-12 17:34:02 -08:00
James R
1c00d3d9c7 Menus/Sound Options: do not draw master volume differently
Now that master volume is actually a separate volume, this
distinction makes no sense.
2024-01-12 17:33:12 -08:00
James R
104c65fb9f Menus/Sound Options: put some options in Advanced drawer 2024-01-01 03:05:17 -08:00
James R
3e7d377de5 Menus: use menu font
Small adjustments made in various places to account for
new font being 1px taller.

Some options menus may be too densely packed and will need
adjustment.

User input (virtual keyboard, addons menu) remains console
font. I also did not touch Replay HUD or Online menu.
2023-12-29 19:24:46 -08:00
James R
6574d0065a Menus/Sound Options: interpolate custom sliders with transition 2023-12-29 08:23:12 -08:00
James R
f7accbb275 Sound options: add restart audio button 2023-12-23 13:17:04 -08:00
James R
b9d571e14b Sound options: disable and hide Z button during Goner, until profile is set 2023-12-23 13:17:04 -08:00
James R
0f6feae000 Sound options: move stereo reverse to bottom group 2023-12-23 13:17:04 -08:00
James R
79012d00e8 Sound options: merge playmusicifunfocused/playsoundifunfocused into one cvar 2023-12-23 13:17:04 -08:00
James R
0c251ee643 Sound options: add master volume slider
- Updates music and sound volumes simultaneously
- Changing music/sound volumes separately sets master
  volume to highest of the two
- Visually distinct slider
2023-12-23 13:17:04 -08:00
James R
8780edda6d Sound options: merge volume slider with toggle via Z button prompt 2023-12-23 13:17:04 -08:00
James R
c11c7bcbbd Sound options: draw custom sliders
- Greyed out when music/sounds are disabled.
2023-12-23 13:17:04 -08:00
James R
164e97cff4 menus/options-sound.c -> menus/options-sound.cpp 2023-12-23 13:17:04 -08:00
Renamed from src/menus/options-sound.c (Browse further)