ddnet/src/engine/client
Robert Müller 07e18ebecb Replace most global variables in engine sound with member variables
Most variables used in the sound engine were static globals, as they are used in the static sound mixing function. The global variables are replaced by member variables, by passing the sound interface as user-data for the SDL mixing callback. The `Mix` function is made a public member function of `ISound` instead of being exposed using `ISoundMixFunc GetSoundMixFunc()`.

This allows to remove the direct dependency of the engine sound on the engine video, by instead passing the sound mixing function as a lambda to the engine video in the engine client.

The old WavPack reader function interface does support passing a user-data pointer to the callback function, so global variables are still used here.
2023-09-21 23:52:13 +02:00
..
backend Decrease descriptor pool's current size when descriptor is freed 2023-09-19 18:28:48 +02:00
backend_sdl.cpp Add IGraphics::GetScreenName 2023-06-08 12:52:34 +02:00
backend_sdl.h Add IGraphics::GetScreenName 2023-06-08 12:52:34 +02:00
blocklist_driver.cpp Huge variable naming format 2022-07-08 18:01:29 +02:00
blocklist_driver.h Add Intel as vendor to the block list on windows 2021-05-06 12:23:40 +02:00
checksum.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
client.cpp Replace most global variables in engine sound with member variables 2023-09-21 23:52:13 +02:00
client.h Add console chain for screen resolution commands. 2023-09-20 11:01:43 +02:00
demoedit.cpp Port some code to str_copy() template 2022-07-09 19:40:58 +03:00
demoedit.h Mark virtual function as override using a script: 2022-05-17 23:47:32 +02:00
discord.cpp Only announce servers using Steam/Discord integration which are registered 2022-10-09 16:16:54 +02:00
favorites.cpp Fix windows build 2022-09-27 13:45:58 +02:00
friends.cpp Add templated str_append function for arrays with fixed size 2023-06-14 00:04:01 +02:00
friends.h Organize engine-client includes 2022-06-17 17:46:43 +02:00
ghost.cpp Use sizeof(int32_t) instead of 4 2023-02-11 13:59:08 +01:00
ghost.h Use sizeof(int32_t) instead of 4 2023-02-11 13:59:08 +01:00
graphics_defines.h Replace all usages of C standard headers with C++ headers 2023-03-01 19:26:51 +01:00
graphics_threaded.cpp Add CImageInfo::PixelSize function, use enum EImageFormat 2023-09-03 20:40:28 +02:00
graphics_threaded.h Add CImageInfo::PixelSize function, use enum EImageFormat 2023-09-03 20:40:28 +02:00
input.cpp Use dropdown menu to select game controller 2023-06-09 14:04:35 +02:00
input.h Use dropdown menu to select game controller 2023-06-09 14:04:35 +02:00
keynames.h Regenerate key lists with latest SDL version 2023-05-30 23:39:47 +02:00
notifications.cpp Emscripten support 2022-03-25 12:42:18 +01:00
notifications.h Libnotify support for linux client (#2099) 2020-04-14 17:53:53 +02:00
serverbrowser.cpp Support dynamic list of "communities" in engine serverbrowser 2023-09-18 19:37:04 +02:00
serverbrowser.h Support dynamic list of "communities" in engine serverbrowser 2023-09-18 19:37:04 +02:00
serverbrowser_http.cpp Support master server address format in client 2023-08-04 12:32:02 +02:00
serverbrowser_http.h Allow multiple addresses per server in the serverbrowser 2022-07-10 16:52:07 +02:00
serverbrowser_ping_cache.cpp Allow multiple addresses per server in the serverbrowser 2022-07-10 16:52:07 +02:00
serverbrowser_ping_cache.h Allow multiple addresses per server in the serverbrowser 2022-07-10 16:52:07 +02:00
sound.cpp Replace most global variables in engine sound with member variables 2023-09-21 23:52:13 +02:00
sound.h Replace most global variables in engine sound with member variables 2023-09-21 23:52:13 +02:00
sqlite.cpp Make use of IO_MAX_PATH_LENGTH 2021-09-13 12:14:50 +02:00
steam.cpp Only announce servers using Steam/Discord integration which are registered 2022-10-09 16:16:54 +02:00
text.cpp Fix incorrect text height when maximum number of lines specified 2023-09-06 19:16:42 +02:00
updater.cpp CMake: Rework the versioning 2023-09-08 00:10:48 +03:00
updater.h Use nullptr in generated and editor 2022-06-13 18:28:13 +02:00
video.cpp Add CImageInfo::PixelSize function, use enum EImageFormat 2023-09-03 20:40:28 +02:00
video.h Huge variable naming format 2022-07-08 18:01:29 +02:00