make basic audio engine parameters configurable

This commit is contained in:
2026-01-24 14:07:38 -06:00
parent a4ea6490a4
commit 69a507d57b
10 changed files with 78 additions and 56 deletions

View File

@@ -2,6 +2,17 @@
#pragma once
#include <string>
#include <vector>
enum class ConfigFile {
Audio = 0
// other files here
};
// might have a config file for specifying paths to other config files instead of this
const std::vector<std::string> filePaths = {
"audio.yaml"
};
class ConfigInterface {
@@ -10,9 +21,10 @@ public:
ConfigInterface();
~ConfigInterface() = default;
int getValue(ConfigFile file, std::string key, int defaultVal);
private:
const std::string configRoot = "config";
const std::string filename = "audio.yaml";
};