From 1de9ea495fbe0a73db670ee73c23fad844364b8b Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Sat, 9 Apr 2022 01:13:31 +0100 Subject: add audio changes (#133) * add audio changes * use shared_mutex instead of atomic_int for waiting on audio loads --- NorthstarDedicatedTest/audio.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'NorthstarDedicatedTest/audio.h') diff --git a/NorthstarDedicatedTest/audio.h b/NorthstarDedicatedTest/audio.h index 3220d804..6ed3ce57 100644 --- a/NorthstarDedicatedTest/audio.h +++ b/NorthstarDedicatedTest/audio.h @@ -3,6 +3,7 @@ #include #include #include +#include namespace fs = std::filesystem; @@ -39,6 +40,7 @@ class CustomAudioManager bool TryLoadAudioOverride(const fs::path&); void ClearAudioOverrides(); + std::shared_mutex m_loadingMutex; std::unordered_map> m_loadedAudioOverrides = {}; std::unordered_map> m_loadedAudioOverridesRegex = {}; }; -- cgit v1.2.3