make basic audio engine parameters configurable
This commit is contained in:
@@ -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";
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user