mirror of
https://github.com/sal063/AC6_recomp
synced 2026-08-05 17:44:47 -04:00
fix: keep Windows audio backend WASAPI-only
Remove the Windows runtime path that referenced the SDL driver so Windows builds do not require SDL symbols while Linux continues to use the SDL backend. Made-with: Cursor
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
|
||||
#if defined(_WIN32)
|
||||
REXCVAR_DEFINE_STRING(audio_backend, "wasapi", "Audio", "Audio backend: wasapi")
|
||||
.allowed({"wasapi", "sdl"})
|
||||
.allowed({"wasapi"})
|
||||
#else
|
||||
REXCVAR_DEFINE_STRING(audio_backend, "sdl", "Audio", "Audio backend: sdl")
|
||||
.allowed({"sdl"})
|
||||
@@ -51,9 +51,6 @@ namespace {
|
||||
std::unique_ptr<AudioDriver> CreateConfiguredDriver(memory::Memory* memory, AudioRuntime* runtime,
|
||||
const size_t client_index) {
|
||||
#if defined(_WIN32)
|
||||
if (REXCVAR_GET(audio_backend) == "sdl") {
|
||||
return std::make_unique<sdl::SdlAudioDriver>(memory, runtime, client_index);
|
||||
}
|
||||
return std::make_unique<wasapi::WasapiAudioDriver>(memory, runtime, client_index);
|
||||
#else
|
||||
return std::make_unique<sdl::SdlAudioDriver>(memory, runtime, client_index);
|
||||
|
||||
Reference in New Issue
Block a user