Add CoreAudio support (#6270)
This commit is contained in:
Submodule libultraship updated: 5c8b975de4...61bc940255
@@ -267,6 +267,7 @@ struct MainMenuEntry {
|
|||||||
static const std::map<Ship::AudioBackend, const char*> audioBackendsMap = {
|
static const std::map<Ship::AudioBackend, const char*> audioBackendsMap = {
|
||||||
{ Ship::AudioBackend::WASAPI, "Windows Audio Session API" },
|
{ Ship::AudioBackend::WASAPI, "Windows Audio Session API" },
|
||||||
{ Ship::AudioBackend::SDL, "SDL" },
|
{ Ship::AudioBackend::SDL, "SDL" },
|
||||||
|
{ Ship::AudioBackend::COREAUDIO, "Core Audio" },
|
||||||
{ Ship::AudioBackend::NUL, "Null" },
|
{ Ship::AudioBackend::NUL, "Null" },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,9 @@ static const inline std::vector<std::pair<const char*, const char*>> audioBacken
|
|||||||
#endif
|
#endif
|
||||||
#if defined(__linux)
|
#if defined(__linux)
|
||||||
{ "pulse", "PulseAudio" },
|
{ "pulse", "PulseAudio" },
|
||||||
|
#endif
|
||||||
|
#ifdef __APPLE__
|
||||||
|
{ "coreaudio", "Core Audio" },
|
||||||
#endif
|
#endif
|
||||||
{ "sdl", "SDL Audio" }
|
{ "sdl", "SDL Audio" }
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user