From fcf7d4bd15c900113f00bffd5bd12310ad69761e Mon Sep 17 00:00:00 2001 From: Jeffrey Crowell Date: Fri, 27 Feb 2026 19:34:29 -0800 Subject: [PATCH] Add CoreAudio support (#6270) --- libultraship | 2 +- soh/soh/SohGui/MenuTypes.h | 1 + soh/soh/SohGui/SohGui.cpp | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libultraship b/libultraship index 5c8b975de..61bc94025 160000 --- a/libultraship +++ b/libultraship @@ -1 +1 @@ -Subproject commit 5c8b975de422c71fd6cda44ada5543c9067f57a2 +Subproject commit 61bc9402559c67d803084f96b296bc738523228f diff --git a/soh/soh/SohGui/MenuTypes.h b/soh/soh/SohGui/MenuTypes.h index d14905a5b..b3ceea089 100644 --- a/soh/soh/SohGui/MenuTypes.h +++ b/soh/soh/SohGui/MenuTypes.h @@ -267,6 +267,7 @@ struct MainMenuEntry { static const std::map audioBackendsMap = { { Ship::AudioBackend::WASAPI, "Windows Audio Session API" }, { Ship::AudioBackend::SDL, "SDL" }, + { Ship::AudioBackend::COREAUDIO, "Core Audio" }, { Ship::AudioBackend::NUL, "Null" }, }; diff --git a/soh/soh/SohGui/SohGui.cpp b/soh/soh/SohGui/SohGui.cpp index 183038d43..7711fc5dd 100644 --- a/soh/soh/SohGui/SohGui.cpp +++ b/soh/soh/SohGui/SohGui.cpp @@ -46,6 +46,9 @@ static const inline std::vector> audioBacken #endif #if defined(__linux) { "pulse", "PulseAudio" }, +#endif +#ifdef __APPLE__ + { "coreaudio", "Core Audio" }, #endif { "sdl", "SDL Audio" } };