aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/client/audio.h
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2023-12-28 14:51:45 +0000
committerGitHub <noreply@github.com>2023-12-28 14:51:45 +0000
commit3b63cf5c83b9f68952195e62e202dd557f7ca6af (patch)
treebd977e3f566a635ab4c734f2c12621614d44ce83 /NorthstarDLL/client/audio.h
parent0b507aa3eb55c2d06f314a46998cf9415f6a064a (diff)
parentf5ab6fb5e8be7b73e6003d4145081d5e0c0ce287 (diff)
downloadNorthstarLauncher-3b63cf5c83b9f68952195e62e202dd557f7ca6af.tar.gz
NorthstarLauncher-3b63cf5c83b9f68952195e62e202dd557f7ca6af.zip
Merge branch 'main' into cmake-format
Diffstat (limited to 'NorthstarDLL/client/audio.h')
-rw-r--r--NorthstarDLL/client/audio.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/NorthstarDLL/client/audio.h b/NorthstarDLL/client/audio.h
deleted file mode 100644
index 26cda205..00000000
--- a/NorthstarDLL/client/audio.h
+++ /dev/null
@@ -1,46 +0,0 @@
-#pragma once
-
-#include <vector>
-#include <filesystem>
-#include <regex>
-#include <shared_mutex>
-
-enum class AudioSelectionStrategy
-{
- INVALID = -1,
- SEQUENTIAL,
- RANDOM
-};
-
-class EventOverrideData
-{
- public:
- EventOverrideData(const std::string&, const fs::path&);
- EventOverrideData();
-
- public:
- bool LoadedSuccessfully = false;
-
- std::vector<std::string> EventIds = {};
- std::vector<std::pair<std::string, std::regex>> EventIdsRegex = {};
-
- std::vector<std::pair<size_t, std::unique_ptr<uint8_t[]>>> 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<std::string, std::shared_ptr<EventOverrideData>> m_loadedAudioOverrides = {};
- std::unordered_map<std::string, std::shared_ptr<EventOverrideData>> m_loadedAudioOverridesRegex = {};
-};
-
-extern CustomAudioManager g_CustomAudioManager;