1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-05 19:31:04 +00:00

Move soundmanager into its own thread

Fixes sound queues running empty on client step hiccups.
This commit is contained in:
Desour 2023-06-24 20:37:31 +02:00 committed by DS
parent 591e45657f
commit 8fa2ea71ef
3 changed files with 384 additions and 12 deletions

View file

@ -38,5 +38,5 @@ std::shared_ptr<SoundManagerSingleton> createSoundManagerSingleton()
std::unique_ptr<ISoundManager> createOpenALSoundManager(SoundManagerSingleton *smg,
std::unique_ptr<SoundFallbackPathProvider> fallback_path_provider)
{
return std::make_unique<OpenALSoundManager>(smg, std::move(fallback_path_provider));
return std::make_unique<ProxySoundManager>(smg, std::move(fallback_path_provider));
};