From 46bed8d09f32360377350d71816a76abdfbf2c7c Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Wed, 24 Aug 2022 00:32:31 +0100 Subject: Adjust folder structure (#242) * Adjust folder structure * change launcher directory name --- NorthstarDedicatedTest/audio.h | 50 ------------------------------------------ 1 file changed, 50 deletions(-) delete mode 100644 NorthstarDedicatedTest/audio.h (limited to 'NorthstarDedicatedTest/audio.h') diff --git a/NorthstarDedicatedTest/audio.h b/NorthstarDedicatedTest/audio.h deleted file mode 100644 index 6ed3ce57..00000000 --- a/NorthstarDedicatedTest/audio.h +++ /dev/null @@ -1,50 +0,0 @@ -#pragma once - -#include -#include -#include -#include - -namespace fs = std::filesystem; - -enum class AudioSelectionStrategy -{ - INVALID = -1, - SEQUENTIAL, - RANDOM -}; - -class EventOverrideData -{ - public: - EventOverrideData(const std::string&, const fs::path&); - EventOverrideData(); - - public: - bool LoadedSuccessfully = false; - - std::vector EventIds = {}; - std::vector> EventIdsRegex = {}; - - std::vector>> Samples = {}; - - AudioSelectionStrategy Strategy = AudioSelectionStrategy::SEQUENTIAL; - size_t CurrentIndex = 0; - - bool EnableOnLoopedSounds = false; -}; - -class CustomAudioManager -{ - public: - bool TryLoadAudioOverride(const fs::path&); - void ClearAudioOverrides(); - - std::shared_mutex m_loadingMutex; - std::unordered_map> m_loadedAudioOverrides = {}; - std::unordered_map> m_loadedAudioOverridesRegex = {}; -}; - -extern CustomAudioManager g_CustomAudioManager; - -void InitialiseMilesAudioHooks(HMODULE baseAddress); \ No newline at end of file -- cgit v1.2.3