forked from auracaster/pyalsaaudio
Add PCM.polldescriptors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user