{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:
Max Kellermann
2018-11-08 14:29:04 +01:00
parent ba5c856f15
commit fee75dc766
6 changed files with 67 additions and 0 deletions

View File

@@ -889,6 +889,8 @@ AlsaOutput::PrepareSockets() noexcept
void
AlsaOutput::DispatchSockets() noexcept
try {
non_block.DispatchSockets(*this, pcm);
{
const std::lock_guard<Mutex> lock(mutex);