Add PCM.polldescriptors

This commit is contained in:
Lars Immisch
2017-03-30 22:16:22 +02:00
parent df8672cc56
commit 594dec9313
8 changed files with 31 additions and 6 deletions
+10
View File
@@ -259,6 +259,14 @@ PCM objects have the following methods:
If *enable* is :const:`True`, playback or capture is paused.
Otherwise, playback/capture is resumed.
.. method:: PCM.polldescriptors()
Returns a tuple of (file descriptor, eventmask) that can be used to
wait for changes on the mixer with *select.poll*.
The *eventmask* value is compatible with *poll.register*.
**A few hints on using PCM devices for playback**
The most common reason for problems with playback of PCM audio is that writes
@@ -479,6 +487,8 @@ 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*.
The *eventmask* value is compatible with *poll.register*.
.. method:: Mixer.handleevents()
Acknowledge events on the *polldescriptors* file descriptors