From 33a1e3864601354e758f5128f3d80acacbc13348 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Mon, 23 Dec 2024 13:35:00 -0500 Subject: [PATCH] WebContent: Don't check for specific audio backends Rather than conditionalizing creating an audio plugin, just let the audio backend factory return an error on its own. If an audio plugin is not found, we will get a similar error to what is removed here. --- Services/WebContent/main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Services/WebContent/main.cpp b/Services/WebContent/main.cpp index 92eb07f9198..44a73194e68 100644 --- a/Services/WebContent/main.cpp +++ b/Services/WebContent/main.cpp @@ -83,11 +83,8 @@ ErrorOr serenity_main(Main::Arguments arguments) Web::Platform::AudioCodecPlugin::install_creation_hook([](auto loader) { #if defined(HAVE_QT_MULTIMEDIA) return Ladybird::AudioCodecPluginQt::create(move(loader)); -#elif defined(AK_OS_MACOS) || defined(HAVE_PULSEAUDIO) - return Web::Platform::AudioCodecPluginAgnostic::create(move(loader)); #else - (void)loader; - return Error::from_string_literal("Don't know how to initialize audio in this configuration!"); + return Web::Platform::AudioCodecPluginAgnostic::create(move(loader)); #endif });