ddnet/src/game
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
..
client Merge #5514 2022-06-30 11:07:07 +00:00
editor Fix movement of envelope points with Info (Ctrl+I) 2022-06-28 22:25:55 +02:00
server Fix more unsafe define 2022-06-29 23:52:03 +02:00
bezier.cpp Run clang-format 2020-09-26 21:50:15 +02:00
bezier.h clang-format 2022-03-24 17:59:49 +01:00
collision.cpp Rename NumSwitchers to HighestSwitchNumber and remove most references 2022-06-02 00:57:11 +02:00
collision.h Use nullptr in generated and editor 2022-06-13 18:28:13 +02:00
ddracechat.h Add /timecp command to get another players time checkpoints 2022-06-08 21:10:36 +02:00
ddracecommands.h put it above left up down 2022-04-19 08:58:26 +02:00
gamecore.cpp move DDNetCharacterDisplayInfo to DDNetCharacter 2022-06-27 01:10:25 +02:00
gamecore.h Fix more unsafe define 2022-06-29 23:52:03 +02:00
layers.cpp Organize game-shared includes 2022-06-17 17:39:25 +02:00
layers.h Organize game-shared includes 2022-06-17 17:39:25 +02:00
localization.cpp Format vector variables names (fixes #5209) 2022-06-11 21:38:49 +02:00
localization.h Format vector variables names (fixes #5209) 2022-06-11 21:38:49 +02:00
mapbugs.cpp Fix more unsafe define 2022-06-29 23:52:03 +02:00
mapbugs.h Remove code for CRC in most places, except where needed for net compat 2020-10-14 17:08:58 +02:00
mapbugs_list.h Revert "Add mapbug "stoppers-passthrough@ddnet.tw"" 2018-08-22 08:33:21 +02:00
mapitems.cpp Implement shields that remove specific weapon (fixes #4572) 2022-04-28 16:49:32 +02:00
mapitems.h Organize game-shared includes 2022-05-29 20:02:22 +02:00
mapitems_ex.cpp Run clang-format 2020-09-26 21:50:15 +02:00
mapitems_ex.h Run clang-format 2020-09-26 21:50:15 +02:00
mapitems_ex_types.h Run clang-format 2020-09-26 21:50:15 +02:00
prng.cpp Organize game-shared includes 2022-05-29 20:02:22 +02:00
prng.h Organize game-shared includes 2022-05-29 20:02:22 +02:00
teamscore.cpp Organize game-shared includes 2022-05-29 20:02:22 +02:00
teamscore.h Assert client id in SetSolo 2022-05-14 11:28:01 +02:00
tuning.h Add hammer_hit_fire_delay tune 2021-05-01 16:36:12 +02:00
variables.h Set default of cl_freezebars_alpha_inside_freeze to 0 2022-06-27 12:20:09 +02:00
version.h Version 16.2 2022-06-26 09:48:01 +02:00
voting.h Run clang-format 2020-09-26 21:50:15 +02:00