From d2febf46035d4da32e969b577102ec6bcd4d5c12 Mon Sep 17 00:00:00 2001 From: mkoterski Date: Tue, 21 Apr 2026 13:33:11 +0200 Subject: [PATCH] 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. --- src/port/ui/MenuTypes.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/port/ui/MenuTypes.h b/src/port/ui/MenuTypes.h index 653c6955d..e86550055 100644 --- a/src/port/ui/MenuTypes.h +++ b/src/port/ui/MenuTypes.h @@ -257,6 +257,7 @@ struct MainMenuEntry { static const std::unordered_map audioBackendsMap = { { Ship::AudioBackend::WASAPI, "Windows Audio Session API" }, { Ship::AudioBackend::SDL, "SDL" }, + { Ship::AudioBackend::COREAUDIO, "CoreAudio" }, }; static const std::unordered_map windowBackendsMap = {