ladybird/Ladybird/WebContent
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
..
CMakeLists.txt Ladybird+LibWeb+WebContent: Create a platform plugin for playing audio 2023-06-13 06:14:01 +02:00
MacOSSetup.h Ladybird: Prohibit GUI interaction of the WebContent process on macOS 2023-04-27 07:26:05 +02:00
MacOSSetup.mm Ladybird: Prohibit GUI interaction of the WebContent process on macOS 2023-04-27 07:26:05 +02:00
main.cpp Ladybird+LibWeb+WebConent: Drive audio in Ladybird off the main thread 2023-06-21 06:14:15 +02:00