mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 02:56:10 +00:00
LibAudio: Set asynchronous audio enqueuer thread to maximum priority
Anything that handles audio in this way should run at maximum priority.
This commit is contained in:
parent
4219d50a21
commit
9b819a0dc9
Notes:
sideshowbarker
2024-07-17 04:05:08 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: 9b819a0dc9
Pull-request: https://github.com/SerenityOS/serenity/pull/16151
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/TobyAsE
3 changed files with 7 additions and 4 deletions
|
@ -23,7 +23,7 @@ constexpr size_t LOAD_CHUNK_SIZE = 128 * KiB;
|
|||
|
||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
{
|
||||
TRY(Core::System::pledge("stdio rpath sendfd unix thread"));
|
||||
TRY(Core::System::pledge("stdio rpath sendfd unix thread proc"));
|
||||
|
||||
StringView path {};
|
||||
bool should_loop = false;
|
||||
|
@ -50,7 +50,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
}
|
||||
auto loader = maybe_loader.release_value();
|
||||
|
||||
TRY(Core::System::pledge("stdio sendfd thread"));
|
||||
TRY(Core::System::pledge("stdio sendfd thread proc"));
|
||||
|
||||
outln("\033[34;1m Playing\033[0m: {}", path);
|
||||
outln("\033[34;1m Format\033[0m: {} {} Hz, {}-bit, {}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue