aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Config.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-10 19:13:48 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-10 19:13:48 +0100
commit0cb7f2f82ca167656b3c5cb9f0cc3b44c59cb0eb (patch)
tree8fa80428c08140d964eb122b5a1f8130bf10464a /src/crepe/api/Config.h
parent9ff08f61023a910e3d4df1f1f52d8af0fc72c153 (diff)
parent7cbc577e94ed048f2a8146fab6972ae6ff290be7 (diff)
Merge branch 'master' into loek/scripts
Diffstat (limited to 'src/crepe/api/Config.h')
-rw-r--r--src/crepe/api/Config.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/crepe/api/Config.h b/src/crepe/api/Config.h
index a9745c3..6472270 100644
--- a/src/crepe/api/Config.h
+++ b/src/crepe/api/Config.h
@@ -15,20 +15,10 @@ namespace crepe {
* modified *before* execution is handed over from the game programmer to the engine (i.e. the
* main loop is started).
*/
-class Config final {
-public:
+struct Config final {
//! Retrieve handle to global Config instance
static Config & get_instance();
-private:
- Config() = default;
- ~Config() = default;
- Config(const Config &) = default;
- Config(Config &&) = default;
- Config & operator=(const Config &) = default;
- Config & operator=(Config &&) = default;
-
-public:
//! Logging-related settings
struct {
/**
@@ -86,6 +76,12 @@ public:
*/
std::string root_pattern = ".crepe-root";
} asset;
+
+ //! Audio system settings
+ struct {
+ //! Max amount of simultanious voices
+ unsigned int voices = 32;
+ } audio;
};
} // namespace crepe