From 2eb9f3f639e865cf292957586f6cec66fb47f520 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Fri, 8 Sep 2023 13:25:56 -0400 Subject: [PATCH] Ladybird: Install the Audio Unit plugin on macOS --- Ladybird/WebContent/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ladybird/WebContent/main.cpp b/Ladybird/WebContent/main.cpp index f62f13fd3f..d78a2971e7 100644 --- a/Ladybird/WebContent/main.cpp +++ b/Ladybird/WebContent/main.cpp @@ -60,7 +60,7 @@ ErrorOr serenity_main(Main::Arguments arguments) Web::Platform::ImageCodecPlugin::install(*new Ladybird::ImageCodecPlugin); Web::Platform::AudioCodecPlugin::install_creation_hook([](auto loader) { -#if defined(HAVE_PULSEAUDIO) +#if defined(AK_OS_MACOS) || defined(HAVE_PULSEAUDIO) return Web::Platform::AudioCodecPluginAgnostic::create(move(loader)); #elif defined(HAVE_QT) return Ladybird::AudioCodecPluginQt::create(move(loader));