Add CoreAudio to audio backend combobox map (#686)

macOS uses COREAUDIO as the default audio backend, but the
combobox display map in MenuTypes.h only contained SDL and
WASAPI. This causes an unordered_map::at crash on first
frame draw when the Audio API dropdown tries to render.
Fixes the menu crash portion of #681.
This commit is contained in:
mkoterski
2026-04-21 13:33:11 +02:00
committed by GitHub
parent 90f0e3a199
commit d2febf4603
+1
View File
@@ -257,6 +257,7 @@ struct MainMenuEntry {
static const std::unordered_map<Ship::AudioBackend, const char*> audioBackendsMap = {
{ Ship::AudioBackend::WASAPI, "Windows Audio Session API" },
{ Ship::AudioBackend::SDL, "SDL" },
{ Ship::AudioBackend::COREAUDIO, "CoreAudio" },
};
static const std::unordered_map<Ship::WindowBackend, const char*> windowBackendsMap = {