diff --git a/Userland/Applications/Piano/main.cpp b/Userland/Applications/Piano/main.cpp index 67966fc886..1b4e3d544a 100644 --- a/Userland/Applications/Piano/main.cpp +++ b/Userland/Applications/Piano/main.cpp @@ -26,7 +26,7 @@ ErrorOr serenity_main(Main::Arguments arguments) { - TRY(Core::System::pledge("stdio thread rpath cpath wpath recvfd sendfd unix")); + TRY(Core::System::pledge("stdio thread rpath cpath wpath recvfd sendfd unix proc")); auto app = TRY(GUI::Application::try_create(arguments)); diff --git a/Userland/Libraries/LibAudio/ConnectionToServer.cpp b/Userland/Libraries/LibAudio/ConnectionToServer.cpp index 0d90cbaa50..31649c41b7 100644 --- a/Userland/Libraries/LibAudio/ConnectionToServer.cpp +++ b/Userland/Libraries/LibAudio/ConnectionToServer.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #include namespace Audio { @@ -58,8 +59,10 @@ void ConnectionToServer::die() ErrorOr ConnectionToServer::async_enqueue(FixedArray&& samples) { - if (!m_background_audio_enqueuer->is_started()) + if (!m_background_audio_enqueuer->is_started()) { m_background_audio_enqueuer->start(); + TRY(m_background_audio_enqueuer->set_priority(THREAD_PRIORITY_MAX)); + } update_good_sleep_time(); m_user_queue->append(move(samples)); diff --git a/Userland/Utilities/aplay.cpp b/Userland/Utilities/aplay.cpp index 1a9a1d1885..f3e9da8dd9 100644 --- a/Userland/Utilities/aplay.cpp +++ b/Userland/Utilities/aplay.cpp @@ -23,7 +23,7 @@ constexpr size_t LOAD_CHUNK_SIZE = 128 * KiB; ErrorOr 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 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, {}",