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

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

View File

@@ -184,6 +184,12 @@
<dt><a href="libalsaaudio.html#alsaaudio.Mixer.polldescriptors">polldescriptors() (alsaaudio.Mixer method)</a>
</dt>
<dd><dl>
<dt><a href="libalsaaudio.html#alsaaudio.PCM.polldescriptors">(alsaaudio.PCM method)</a>
</dt>
</dl></dd>
</dl></td>
</tr></table>
@@ -298,7 +304,7 @@
</div>
<div class="footer">
&copy; Copyright 2008-20017, Casper Wilstrup, Lars Immisch.
Last updated on Mar 17, 2017.
Last updated on Mar 30, 2017.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
</div>
</body>

View File

@@ -141,7 +141,7 @@
</div>
<div class="footer">
&copy; Copyright 2008-20017, Casper Wilstrup, Lars Immisch.
Last updated on Mar 17, 2017.
Last updated on Mar 30, 2017.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
</div>
</body>

View File

@@ -334,6 +334,14 @@ should be written at a later time.</p>
Otherwise, playback/capture is resumed.</p>
</dd></dl>
<dl class="method">
<dt id="alsaaudio.PCM.polldescriptors">
<tt class="descclassname">PCM.</tt><tt class="descname">polldescriptors</tt><big>(</big><big>)</big><a class="headerlink" href="#alsaaudio.PCM.polldescriptors" title="Permalink to this definition"></a></dt>
<dd><p>Returns a tuple of (file descriptor, eventmask) that can be used to
wait for changes on the mixer with <em>select.poll</em>.</p>
<p>The <em>eventmask</em> value is compatible with <em>poll.register</em>.</p>
</dd></dl>
<p><strong>A few hints on using PCM devices for playback</strong></p>
<p>The most common reason for problems with playback of PCM audio is that writes
to PCM devices must <em>exactly</em> match the data rate of the device.</p>
@@ -587,6 +595,7 @@ changed. The default is to set the capture flag for all channels.</p>
<tt class="descclassname">Mixer.</tt><tt class="descname">polldescriptors</tt><big>(</big><big>)</big><a class="headerlink" href="#alsaaudio.Mixer.polldescriptors" title="Permalink to this definition"></a></dt>
<dd><p>Returns a tuple of (file descriptor, eventmask) that can be used to
wait for changes on the mixer with <em>select.poll</em>.</p>
<p>The <em>eventmask</em> value is compatible with <em>poll.register</em>.</p>
</dd></dl>
<dl class="method">
@@ -788,7 +797,7 @@ Channel 1 volume: 61%
</div>
<div class="footer">
&copy; Copyright 2008-20017, Casper Wilstrup, Lars Immisch.
Last updated on Mar 17, 2017.
Last updated on Mar 30, 2017.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
</div>
</body>

Binary file not shown.

View File

@@ -106,7 +106,7 @@
</div>
<div class="footer">
&copy; Copyright 2008-20017, Casper Wilstrup, Lars Immisch.
Last updated on Mar 17, 2017.
Last updated on Mar 30, 2017.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
</div>
</body>

View File

@@ -99,7 +99,7 @@
</div>
<div class="footer">
&copy; Copyright 2008-20017, Casper Wilstrup, Lars Immisch.
Last updated on Mar 17, 2017.
Last updated on Mar 30, 2017.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
</div>
</body>

File diff suppressed because one or more lines are too long