Add CoreAudio support (#6270)

This commit is contained in:
Jeffrey Crowell 2026-02-27 19:34:29 -08:00 committed by GitHub
parent 9f56ef5090
commit fcf7d4bd15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

@ -1 +1 @@
Subproject commit 5c8b975de422c71fd6cda44ada5543c9067f57a2
Subproject commit 61bc9402559c67d803084f96b296bc738523228f

View file

@ -267,6 +267,7 @@ struct MainMenuEntry {
static const std::map<Ship::AudioBackend, const char*> audioBackendsMap = {
{ Ship::AudioBackend::WASAPI, "Windows Audio Session API" },
{ Ship::AudioBackend::SDL, "SDL" },
{ Ship::AudioBackend::COREAUDIO, "Core Audio" },
{ Ship::AudioBackend::NUL, "Null" },
};

View file

@ -46,6 +46,9 @@ static const inline std::vector<std::pair<const char*, const char*>> audioBacken
#endif
#if defined(__linux)
{ "pulse", "PulseAudio" },
#endif
#ifdef __APPLE__
{ "coreaudio", "Core Audio" },
#endif
{ "sdl", "SDL Audio" }
};