ddnet/src/game/client/components
bors[bot] 2bd1273657
Merge #5514
5514: Update menu music state when the config variables change via console, various refactoring r=heinrich5991 a=Robyt3

Also update the background music when `snd_enable` or `snd_enable_music` change via console or bind. Closes #2911.

For this purpose, add `IsPlaying` method to engine sound and client sound component to check whether a specific sound sample is already playing.

Various refactoring in engine sound.

## Checklist

- [X] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: Robert Müller <robytemueller@gmail.com>
2022-06-30 11:07:07 +00:00
..
background.cpp Organize game-client includes 2022-05-29 21:24:43 +02:00
background.h Organize game-client and editor includes 2022-06-17 20:32:56 +02:00
binds.cpp remove unnecessary loop over the possible modifier combinations 2022-04-28 08:45:25 +02:00
binds.h Organize game-client includes 2022-05-29 21:24:43 +02:00
broadcast.cpp Organize game-client includes 2022-05-29 21:24:43 +02:00
broadcast.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
camera.cpp Organize game-client includes 2022-05-29 21:24:43 +02:00
camera.h Organize game-client includes 2022-05-29 21:24:43 +02:00
chat.cpp Fix more unsafe define 2022-06-29 23:52:03 +02:00
chat.h Organize generated protocol includes 2022-06-17 17:39:24 +02:00
console.cpp Update src/game/client/components/console.cpp 2022-06-25 01:19:40 +02:00
console.h Unify logging infrastructure between IConsole and dbg_msg 2022-04-29 15:21:26 +02:00
controls.cpp Rename joystick to controller (settings, configs) (fixes #5419) 2022-06-15 13:05:14 +02:00
controls.h Integrate joystick with game controls and menus/editor UI 2022-06-13 20:40:37 +02:00
countryflags.cpp Format vector variables names (fixes #5209) 2022-06-11 21:38:49 +02:00
countryflags.h Format vector variables names (fixes #5209) 2022-06-11 21:38:49 +02:00
damageind.cpp Add to some of the Sprite Arrays the array prefix 2022-06-25 10:39:39 +02:00
damageind.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
debughud.cpp Use 0 to 260 degree in Angle display, and do not display decimals of speed in debughd 2022-06-15 22:05:43 +02:00
debughud.h Player position, speed and angle can now be displayed in the HUD. 2022-04-14 13:42:19 +02:00
effects.cpp Add freezing snow flakes effect and fix 50HZ timer + add 10Hz Timer to particle system 2022-06-15 22:05:40 +02:00
effects.h Add freezing snow flakes effect and fix 50HZ timer + add 10Hz Timer to particle system 2022-06-15 22:05:40 +02:00
emoticon.cpp Add to some of the Sprite Arrays the array prefix 2022-06-25 10:39:39 +02:00
emoticon.h Integrate joystick with game controls and menus/editor UI 2022-06-13 20:40:37 +02:00
flow.cpp Fix all Multiplication type alerts by CodeQL 2020-10-05 19:03:54 +02:00
flow.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
freezebars.cpp move DDNetCharacterDisplayInfo to DDNetCharacter 2022-06-27 01:10:25 +02:00
freezebars.h add vertical ninja bar 2022-04-14 13:40:44 +02:00
ghost.cpp send the weapon the player is really holding (except for ninjajetpack) 2022-06-15 22:01:46 +02:00
ghost.h send the weapon the player is really holding (except for ninjajetpack) 2022-06-15 22:01:46 +02:00
hud.cpp remove rampvalue from ddnetcharacter 2022-06-27 01:10:37 +02:00
hud.h Add new textures by ravie; Also add no gun hit for teleport gun 2022-06-25 16:05:38 +02:00
items.cpp Merge #5420 2022-06-26 07:57:33 +00:00
items.h Fix Weapon Shields rendering and Clean up Sprite Offsets in items.cpp 2022-05-16 15:31:46 +02:00
killmessages.cpp Add to some of the Sprite Arrays the array prefix 2022-06-25 10:39:39 +02:00
killmessages.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
mapimages.cpp Remove dead code 2022-05-31 19:32:07 +02:00
mapimages.h Organize game-client includes 2022-05-29 21:24:43 +02:00
maplayers.cpp Organize game-client and editor includes 2022-06-17 20:32:56 +02:00
maplayers.h Organize game-client and editor includes 2022-06-17 20:32:56 +02:00
mapsounds.cpp Organize game-client and editor includes 2022-06-17 20:32:56 +02:00
mapsounds.h Use std::vector<CSourceQueueEntry> instead of array 2022-05-27 16:31:18 +02:00
menu_background.cpp Organize game-shared includes 2022-06-17 17:39:25 +02:00
menu_background.h Format vector variables names (fixes #5209) 2022-06-11 21:38:49 +02:00
menus.cpp Update menu music state when the config variables change via console 2022-06-26 22:43:32 +02:00
menus.h Update menu music state when the config variables change via console 2022-06-26 22:43:32 +02:00
menus_browser.cpp Remove ui_scale: 2022-06-12 10:40:19 +02:00
menus_demo.cpp Move CMenus::DoIcon to CRenderTools::RenderIcon 2022-06-25 17:15:55 +02:00
menus_ingame.cpp Merge #5420 2022-06-26 07:57:33 +00:00
menus_settings.cpp Update menu music state when the config variables change via console 2022-06-26 22:43:32 +02:00
menus_settings_assets.cpp Add new textures by ravie; Also add no gun hit for teleport gun 2022-06-25 16:05:38 +02:00
menus_start.cpp Organize game-client includes 2022-05-29 21:24:43 +02:00
motd.cpp Organize game-client includes 2022-05-29 21:24:43 +02:00
motd.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
nameplates.cpp Organize game-client and editor includes 2022-06-17 20:32:56 +02:00
nameplates.h Organize game-client and editor includes 2022-06-17 20:32:56 +02:00
particles.cpp Add to some of the Sprite Arrays the array prefix 2022-06-25 10:39:39 +02:00
particles.h Add freezing snow flakes effect and fix 50HZ timer + add 10Hz Timer to particle system 2022-06-15 22:05:40 +02:00
players.cpp move DDNetCharacterDisplayInfo to DDNetCharacter 2022-06-27 01:10:25 +02:00
players.h Add Options for new HUD 2022-05-10 18:41:46 +02:00
race_demo.cpp More vector naming format 2022-06-15 19:37:37 +02:00
race_demo.h Switch to nanoseconds 2022-05-18 18:05:41 +02:00
scoreboard.cpp no goals hud when empty 2022-06-16 16:28:50 +02:00
scoreboard.h no goals hud when empty 2022-06-16 16:28:50 +02:00
skins.cpp Add community skin option to client 2022-06-12 18:21:29 +02:00
skins.h Abort skin downloads too (fixes #5505) 2022-06-27 00:39:00 +02:00
sounds.cpp Fix OOB access when stopping a sound that has invalid samples 2022-06-26 22:43:32 +02:00
sounds.h Add IsPlaying to sounds client component 2022-06-26 22:43:32 +02:00
spectator.cpp Integrate joystick with game controls and menus/editor UI 2022-06-13 20:40:37 +02:00
spectator.h Integrate joystick with game controls and menus/editor UI 2022-06-13 20:40:37 +02:00
statboard.cpp Add to some of the Sprite Arrays the array prefix 2022-06-25 10:39:39 +02:00
statboard.h Organize game-client includes 2022-05-29 21:24:43 +02:00
tooltips.cpp Update tooltip text after changing language 2022-05-14 12:49:12 +02:00
tooltips.h fix tooltips rendering when they shouldn't, fixes #5035 2022-04-30 10:05:28 +02:00
voting.cpp Organize game-client includes 2022-05-29 21:24:43 +02:00
voting.h Organize game-client and editor includes 2022-06-17 20:32:56 +02:00