mirror of
https://github.com/larsimmisch/pyalsaaudio.git
synced 2026-06-26 21:10:48 +00:00
read may return -EPIPE
This commit is contained in:
@@ -476,6 +476,12 @@ Mixer objects have the following methods:
|
|||||||
Returns a tuple of (file descriptor, eventmask) that can be used to
|
Returns a tuple of (file descriptor, eventmask) that can be used to
|
||||||
wait for changes on the mixer with *select.poll*.
|
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**
|
**A rant on the ALSA Mixer API**
|
||||||
|
|
||||||
The ALSA mixer API is extremely complicated - and hardly documented at all.
|
The ALSA mixer API is extremely complicated - and hardly documented at all.
|
||||||
|
|||||||
Vendored
+9404
-2
File diff suppressed because one or more lines are too long
+1415
-31
File diff suppressed because it is too large
Load Diff
+13
-2
@@ -52,6 +52,7 @@
|
|||||||
<a href="#A"><strong>A</strong></a>
|
<a href="#A"><strong>A</strong></a>
|
||||||
| <a href="#C"><strong>C</strong></a>
|
| <a href="#C"><strong>C</strong></a>
|
||||||
| <a href="#G"><strong>G</strong></a>
|
| <a href="#G"><strong>G</strong></a>
|
||||||
|
| <a href="#H"><strong>H</strong></a>
|
||||||
| <a href="#M"><strong>M</strong></a>
|
| <a href="#M"><strong>M</strong></a>
|
||||||
| <a href="#P"><strong>P</strong></a>
|
| <a href="#P"><strong>P</strong></a>
|
||||||
| <a href="#R"><strong>R</strong></a>
|
| <a href="#R"><strong>R</strong></a>
|
||||||
@@ -120,6 +121,16 @@
|
|||||||
</dl></td>
|
</dl></td>
|
||||||
</tr></table>
|
</tr></table>
|
||||||
|
|
||||||
|
<h2 id="H">H</h2>
|
||||||
|
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||||
|
<td style="width: 33%" valign="top"><dl>
|
||||||
|
|
||||||
|
<dt><a href="libalsaaudio.html#alsaaudio.Mixer.handleevents">handleevents() (alsaaudio.Mixer method)</a>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
</dl></td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
<h2 id="M">M</h2>
|
<h2 id="M">M</h2>
|
||||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||||
<td style="width: 33%" valign="top"><dl>
|
<td style="width: 33%" valign="top"><dl>
|
||||||
@@ -286,8 +297,8 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
© Copyright 2008-2009, Casper Wilstrup, Lars Immisch.
|
© Copyright 2008-20017, Casper Wilstrup, Lars Immisch.
|
||||||
Last updated on May 16, 2015.
|
Last updated on Feb 22, 2017.
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
+2
-2
@@ -140,8 +140,8 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
© Copyright 2008-2009, Casper Wilstrup, Lars Immisch.
|
© Copyright 2008-20017, Casper Wilstrup, Lars Immisch.
|
||||||
Last updated on May 16, 2015.
|
Last updated on Feb 22, 2017.
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
+10
-2
@@ -586,6 +586,14 @@ changed. The default is to set the capture flag for all channels.</p>
|
|||||||
wait for changes on the mixer with <em>select.poll</em>.</p>
|
wait for changes on the mixer with <em>select.poll</em>.</p>
|
||||||
</dd></dl>
|
</dd></dl>
|
||||||
|
|
||||||
|
<dl class="method">
|
||||||
|
<dt id="alsaaudio.Mixer.handleevents">
|
||||||
|
<tt class="descclassname">Mixer.</tt><tt class="descname">handleevents</tt><big>(</big><big>)</big><a class="headerlink" href="#alsaaudio.Mixer.handleevents" title="Permalink to this definition">¶</a></dt>
|
||||||
|
<dd><p>Acknowledge events on the <em>polldescriptors</em> file descriptors
|
||||||
|
to prevent subsequent polls from returning the same events again.
|
||||||
|
Returns the number of events that were acknowledged.</p>
|
||||||
|
</dd></dl>
|
||||||
|
|
||||||
<p><strong>A rant on the ALSA Mixer API</strong></p>
|
<p><strong>A rant on the ALSA Mixer API</strong></p>
|
||||||
<p>The ALSA mixer API is extremely complicated - and hardly documented at all.
|
<p>The ALSA mixer API is extremely complicated - and hardly documented at all.
|
||||||
<a class="reference internal" href="#module-alsaaudio" title="alsaaudio (Linux)"><tt class="xref py py-mod docutils literal"><span class="pre">alsaaudio</span></tt></a> implements a much simplified way to access this API. In
|
<a class="reference internal" href="#module-alsaaudio" title="alsaaudio (Linux)"><tt class="xref py py-mod docutils literal"><span class="pre">alsaaudio</span></tt></a> implements a much simplified way to access this API. In
|
||||||
@@ -776,8 +784,8 @@ Channel 1 volume: 61%
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
© Copyright 2008-2009, Casper Wilstrup, Lars Immisch.
|
© Copyright 2008-20017, Casper Wilstrup, Lars Immisch.
|
||||||
Last updated on May 16, 2015.
|
Last updated on Feb 22, 2017.
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
BIN
Binary file not shown.
+2
-2
@@ -105,8 +105,8 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
© Copyright 2008-2009, Casper Wilstrup, Lars Immisch.
|
© Copyright 2008-20017, Casper Wilstrup, Lars Immisch.
|
||||||
Last updated on May 16, 2015.
|
Last updated on Feb 22, 2017.
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
+2
-2
@@ -214,8 +214,8 @@ with <tt class="docutils literal"><span class="pre">Ctl-C</span></tt>.</p>
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
© Copyright 2008-2009, Casper Wilstrup, Lars Immisch.
|
© Copyright 2008-20017, Casper Wilstrup, Lars Immisch.
|
||||||
Last updated on May 16, 2015.
|
Last updated on Feb 22, 2017.
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
+2
-2
@@ -98,8 +98,8 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
© Copyright 2008-2009, Casper Wilstrup, Lars Immisch.
|
© Copyright 2008-20017, Casper Wilstrup, Lars Immisch.
|
||||||
Last updated on May 16, 2015.
|
Last updated on Feb 22, 2017.
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
@@ -176,8 +176,8 @@ on.</p>
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
© Copyright 2008-2009, Casper Wilstrup, Lars Immisch.
|
© Copyright 2008-20017, Casper Wilstrup, Lars Immisch.
|
||||||
Last updated on May 16, 2015.
|
Last updated on Feb 22, 2017.
|
||||||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user