mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:37:36 +00:00
LibAudio: Wait for enqueuer thread to start before poking its event loop
This commit is contained in:
parent
6990d4e025
commit
7035a19645
1 changed files with 2 additions and 0 deletions
|
@ -63,6 +63,8 @@ ErrorOr<void> ConnectionToServer::async_enqueue(FixedArray<Sample>&& samples)
|
||||||
{
|
{
|
||||||
if (!m_background_audio_enqueuer->is_started()) {
|
if (!m_background_audio_enqueuer->is_started()) {
|
||||||
m_background_audio_enqueuer->start();
|
m_background_audio_enqueuer->start();
|
||||||
|
while (!m_enqueuer_loop)
|
||||||
|
usleep(1);
|
||||||
TRY(m_background_audio_enqueuer->set_priority(THREAD_PRIORITY_MAX));
|
TRY(m_background_audio_enqueuer->set_priority(THREAD_PRIORITY_MAX));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue