ddnet/src
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
..
android More vector naming format 2022-06-15 19:37:37 +02:00
antibot Merge pull request #3961 from fokkonaut/pr-antibot 2021-12-19 19:33:56 +01:00
base Fix more unsafe define 2022-06-29 23:52:03 +02:00
engine Merge #5514 2022-06-30 11:07:07 +00:00
game Merge #5514 2022-06-30 11:07:07 +00:00
macos Fix new Obj-C deprecation warnings 2022-05-26 00:37:33 +02:00
mastersrv mastersrv: Small convenience function 2022-06-13 17:00:54 +02:00
steam Add modernize-deprecated-headers 2022-02-15 00:22:52 +01:00
test More vector naming format 2022-06-15 19:37:37 +02:00
tools Move twping to tools directory 2022-06-25 01:28:05 +02:00