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
3 changed files with 5 additions and 1 deletions

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" }
};