ladybird/Userland/Libraries/LibWeb/Platform
Timothy Flynn 1c4dd0caad Ladybird+LibWeb+WebConent: Drive audio in Ladybird off the main thread
The main thread in the WebContent process is often busy with layout and
running JavaScript. This can cause audio to sound jittery and crack. To
avoid this behavior, we now drive audio on a secondary thread.

Note: Browser on Serenity uses AudioServer, the connection for which is
already handled on a secondary thread within LibAudio. So this only
applies to Lagom.

Rather than using LibThreading, our hands are tied to QThread for now.
Internally, the Qt media objects use a QTimer, which is forbidden from
running on a thread that is not a QThread (the debug console is spammed
with messages pointing this out). Ideally, in the future AudioServer
will be able to run for non-Serenity platforms, and most of this can be
aligned with the Serenity implementation.
2023-06-21 06:14:15 +02:00
..
AudioCodecPlugin.cpp Ladybird+LibWeb+WebConent: Drive audio in Ladybird off the main thread 2023-06-21 06:14:15 +02:00
AudioCodecPlugin.h Ladybird+LibWeb+WebConent: Drive audio in Ladybird off the main thread 2023-06-21 06:14:15 +02:00
EventLoopPlugin.cpp
EventLoopPlugin.h LibWeb+Browser+Ladybird: Use JS::SafeFunction for EventLoop callbacks 2023-04-21 20:44:47 +01:00
EventLoopPluginSerenity.cpp LibWeb+Browser+Ladybird: Use JS::SafeFunction for EventLoop callbacks 2023-04-21 20:44:47 +01:00
EventLoopPluginSerenity.h LibWeb+Browser+Ladybird: Use JS::SafeFunction for EventLoop callbacks 2023-04-21 20:44:47 +01:00
FontPlugin.cpp
FontPlugin.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
FontPluginSerenity.cpp LibWeb: Use default system fonts for serif, sans-serif, etc. 2023-01-06 12:02:21 +01:00
FontPluginSerenity.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ImageCodecPlugin.cpp LibWeb+LibWebView+WebContent: Add Web::Platform::ImageCodecPlugin 2022-09-16 15:15:50 +02:00
ImageCodecPlugin.h LibWeb+LibWebView+WebContent: Add Web::Platform::ImageCodecPlugin 2022-09-16 15:15:50 +02:00
Timer.cpp LibWeb: Convert Platform::Timer to JS::SafeFunction 2023-03-07 11:51:12 +00:00
Timer.h LibWeb: Convert Platform::Timer to JS::SafeFunction 2023-03-07 11:51:12 +00:00
TimerSerenity.cpp Userland: Replace remaining Core::Timer::construct()s with try_create() 2023-01-12 11:25:51 +01:00
TimerSerenity.h LibWeb+WebContent: Move Serenity EventLoop and Font plugins into LibWeb 2022-09-21 20:42:36 +01:00