{output,mixer}/alsa: use snd_pcm_poll_descriptors_revents()
This call was missing, causing very high CPU usage when the ALSA output plugin was used with dmix. Closes #391
This commit is contained in:
@@ -185,6 +185,8 @@ AlsaInputStream::PrepareSockets() noexcept
|
||||
void
|
||||
AlsaInputStream::DispatchSockets() noexcept
|
||||
{
|
||||
non_block.DispatchSockets(*this, capture_handle);
|
||||
|
||||
const std::lock_guard<Mutex> protect(mutex);
|
||||
|
||||
auto w = PrepareWriteBuffer();
|
||||
|
Reference in New Issue
Block a user