1
Fork 0

Fix infinite poll pulse audio bug

This commit is contained in:
Joshua Goins 2022-10-03 21:43:35 -04:00
parent b193b2594d
commit 4ef38faada

View file

@ -190,9 +190,10 @@ static void audio_pulse_play(const uint8_t *buf, size_t len) {
printf("pa_stream_write failed\n");
return;
}
while (!pas.write_complete) {
// FIXME: what was the purpose of this? at least on pipewire, this is an infinite poll
/*while (!pas.write_complete) {
pa_mainloop_iterate(pas.mainloop, true, NULL);
}
}*/
pas.write_complete = false;
}