feat: Dummy none backend

> to run games with no sound
This commit is contained in:
[ ]
2023-09-28 20:21:06 +09:00
parent 5951a550bb
commit 15cd228b8d
6 changed files with 156 additions and 1 deletions
+3
View File
@@ -11,6 +11,7 @@ namespace hooks::audio {
enum class Backend {
Asio,
WaveOut,
None
};
extern bool ENABLED;
@@ -27,6 +28,8 @@ namespace hooks::audio {
return Backend::Asio;
} else if (_stricmp(value, "waveout") == 0) {
return Backend::WaveOut;
} else if (_stricmp(value, "none") == 0) {
return Backend::None;
}
return std::nullopt;