ddnet/src/game/client
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
..
components Merge #5514 2022-06-30 11:07:07 +00:00
prediction Add default values to extended Net Objects 2022-06-27 01:11:19 +02:00
animstate.cpp Organize game-client includes 2022-05-29 21:24:43 +02:00
animstate.h Remove unnecessary trailing semicolons after method declarations 2022-03-08 20:01:26 +01:00
component.cpp Unify logging infrastructure between IConsole and dbg_msg 2022-04-29 15:21:26 +02:00
component.h Integrate joystick with game controls and menus/editor UI 2022-06-13 20:40:37 +02:00
gameclient.cpp Add default values to extended Net Objects 2022-06-27 01:11:19 +02:00
gameclient.h Add default values to extended Net Objects 2022-06-27 01:11:19 +02:00
lineinput.cpp Remove base/tl/base.h 2022-05-15 20:36:16 +02:00
lineinput.h m_DisplayStr -> m_aDisplayStr 2022-03-31 12:52:24 +02:00
projectile_data.cpp Organize game-shared includes 2022-06-17 17:39:25 +02:00
projectile_data.h force tunezone 2021-04-23 11:01:38 +08:00
race.cpp Organize game-client includes 2022-05-29 21:24:43 +02:00
race.h Organize game-client includes 2022-05-29 21:24:43 +02:00
render.cpp Move CMenus::DoIcon to CRenderTools::RenderIcon 2022-06-25 17:15:55 +02:00
render.h Merge #5420 2022-06-26 07:57:33 +00:00
render_map.cpp Organize game-client and editor includes 2022-06-17 20:32:56 +02:00
skin.h Use std::vector<CSkin> instead of sorted_array 2022-05-27 00:03:13 +02:00
ui.cpp Rename joystick to controller (settings, configs) (fixes #5419) 2022-06-15 13:05:14 +02:00
ui.h Integrate joystick with game controls and menus/editor UI 2022-06-13 20:40:37 +02:00
ui_ex.cpp Only enable UI editbox hotkeys when UI is enabled 2022-06-21 17:19:03 +02:00
ui_ex.h Organize game-client and editor includes 2022-06-17 20:32:56 +02:00