Add Mixer.handleevents() to acknowledge events identified by select.poll

This commit is contained in:
Paul Donohue
2016-10-21 12:04:57 -04:00
parent 74d9e7d6e1
commit 891a30eb08
2 changed files with 40 additions and 0 deletions
+6
View File
@@ -476,6 +476,12 @@ Mixer objects have the following methods:
Returns a tuple of (file descriptor, eventmask) that can be used to
wait for changes on the mixer with *select.poll*.
.. method:: Mixer.handleevents()
Acknowledge events on the *polldescriptors* file descriptors
to prevent subsequent polls from returning the same events again.
Returns the number of events that were acknowledged.
**A rant on the ALSA Mixer API**
The ALSA mixer API is extremely complicated - and hardly documented at all.