⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 module-al.html

📁 一本很好的python的说明书,适合对python感兴趣的人
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>18.1 al -- Audio functions on the SGI</title>
<META NAME="description" CONTENT="18.1 al -- Audio functions on the SGI">
<META NAME="keywords" CONTENT="lib">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="STYLESHEET" href="lib.css" tppabs="http://www.python.org/doc/current/lib/lib.css">
<LINK REL="next" href="module-al-constants.html" tppabs="http://www.python.org/doc/current/lib/module-al-constants.html">
<LINK REL="previous" href="sgi.html" tppabs="http://www.python.org/doc/current/lib/sgi.html">
<LINK REL="up" href="sgi.html" tppabs="http://www.python.org/doc/current/lib/sgi.html">
<LINK REL="next" href="al-config-objects.html" tppabs="http://www.python.org/doc/current/lib/al-config-objects.html">
</head>
<body>
<DIV CLASS="navigation"><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="sgi.html" tppabs="http://www.python.org/doc/current/lib/sgi.html"><img src="previous.gif" tppabs="http://www.python.org/doc/current/icons/previous.gif" border="0" height="32"
  alt="Previous Page" width="32"></A></td>
<td><A href="sgi.html" tppabs="http://www.python.org/doc/current/lib/sgi.html"><img src="up.gif" tppabs="http://www.python.org/doc/current/icons/up.gif" border="0" height="32"
  alt="Up One Level" width="32"></A></td>
<td><A href="al-config-objects.html" tppabs="http://www.python.org/doc/current/lib/al-config-objects.html"><img src="next.gif" tppabs="http://www.python.org/doc/current/icons/next.gif" border="0" height="32"
  alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td><A href="contents.html" tppabs="http://www.python.org/doc/current/lib/contents.html"><img src="contents.gif" tppabs="http://www.python.org/doc/current/icons/contents.gif" border="0" height="32"
  alt="Contents" width="32"></A></td>
<td><a href="modindex.html" tppabs="http://www.python.org/doc/current/lib/modindex.html" title="Module Index"><img src="modules.gif" tppabs="http://www.python.org/doc/current/icons/modules.gif" border="0" height="32"
  alt="Module Index" width="32"></a></td>
<td><A href="genindex.html" tppabs="http://www.python.org/doc/current/lib/genindex.html"><img src="index.gif" tppabs="http://www.python.org/doc/current/icons/index.gif" border="0" height="32"
  alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="sgi.html" tppabs="http://www.python.org/doc/current/lib/sgi.html">18. SGI IRIX Specific</A>
<b class="navlabel">Up:</b> <a class="sectref" href="sgi.html" tppabs="http://www.python.org/doc/current/lib/sgi.html">18. SGI IRIX Specific</A>
<b class="navlabel">Next:</b> <a class="sectref" href="al-config-objects.html" tppabs="http://www.python.org/doc/current/lib/al-config-objects.html">18.1.1 Configuration Objects</A>
<br><hr></DIV>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION0020100000000000000000">
18.1 <tt class="module">al</tt> --
         Audio functions on the SGI</A>
</H1>

<P>
  
<p class='availability'>Availability: <span
 class='platform'>IRIX</span>.</p>

<P>
This module provides access to the audio facilities of the SGI Indy
and Indigo workstations.  See section 3A of the IRIX man pages for
details.  You'll need to read those man pages to understand what these
functions do!  Some of the functions are not available in IRIX
releases before 4.0.5.  Again, see the manual to check whether a
specific function is available on your platform.

<P>
All functions and methods defined in this module are equivalent to
the C functions with "<tt class="samp">AL</tt>" prefixed to their name.

<P>
Symbolic constants from the C header file <code>&lt;audio.h&gt;</code> are
defined in the standard module
<tt class='module'><a href="module-al-constants.html" tppabs="http://www.python.org/doc/current/lib/module-al-constants.html">AL</a></tt>, see below.

<P>
<b>Warning:</b> the current version of the audio library may dump core
when bad argument values are passed rather than returning an error
status.  Unfortunately, since the precise circumstances under which
this may happen are undocumented and hard to check, the Python
interface can provide no protection against this kind of problems.
(One example is specifying an excessive queue size -- there is no
documented upper limit.)

<P>
The module defines the following functions:

<P>
<dl><dt><b><a name='l2h-3079'><tt class='function'>openport</tt></a></b> (<var>name, direction</var><big>[</big><var>, config</var><big>]</big>)
<dd>
The name and direction arguments are strings.  The optional
<var>config</var> argument is a configuration object as returned by
<tt class="function">newconfig()</tt>.  The return value is an <i class="dfn">audio port
object</i>; methods of audio port objects are described below.
</dl>

<P>
<dl><dt><b><a name='l2h-3080'><tt class='function'>newconfig</tt></a></b> ()
<dd>
The return value is a new <i class="dfn">audio configuration object</i>; methods of
audio configuration objects are described below.
</dl>

<P>
<dl><dt><b><a name='l2h-3081'><tt class='function'>queryparams</tt></a></b> (<var>device</var>)
<dd>
The device argument is an integer.  The return value is a list of
integers containing the data returned by <tt class="cfunction">ALqueryparams()</tt>.
</dl>

<P>
<dl><dt><b><a name='l2h-3082'><tt class='function'>getparams</tt></a></b> (<var>device, list</var>)
<dd>
The <var>device</var> argument is an integer.  The list argument is a list
such as returned by <tt class="function">queryparams()</tt>; it is modified in place
(!).
</dl>

<P>
<dl><dt><b><a name='l2h-3083'><tt class='function'>setparams</tt></a></b> (<var>device, list</var>)
<dd>
The <var>device</var> argument is an integer.  The <var>list</var> argument is a
list such as returned by <tt class="function">queryparams()</tt>.
</dl>

<P>

<p><hr>
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>

<UL>
<LI><A NAME="tex2html5600"
  href="al-config-objects.html" tppabs="http://www.python.org/doc/current/lib/al-config-objects.html">18.1.1 Configuration Objects </A>
<LI><A NAME="tex2html5601"
  href="al-port-objects.html" tppabs="http://www.python.org/doc/current/lib/al-port-objects.html">18.1.2 Port Objects </A>
</UL>
<!--End of Table of Child-Links-->

<DIV CLASS="navigation"><p><hr><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="sgi.html" tppabs="http://www.python.org/doc/current/lib/sgi.html"><img src="previous.gif" tppabs="http://www.python.org/doc/current/icons/previous.gif" border="0" height="32"
  alt="Previous Page" width="32"></A></td>
<td><A href="sgi.html" tppabs="http://www.python.org/doc/current/lib/sgi.html"><img src="up.gif" tppabs="http://www.python.org/doc/current/icons/up.gif" border="0" height="32"
  alt="Up One Level" width="32"></A></td>
<td><A href="al-config-objects.html" tppabs="http://www.python.org/doc/current/lib/al-config-objects.html"><img src="next.gif" tppabs="http://www.python.org/doc/current/icons/next.gif" border="0" height="32"
  alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td><A href="contents.html" tppabs="http://www.python.org/doc/current/lib/contents.html"><img src="contents.gif" tppabs="http://www.python.org/doc/current/icons/contents.gif" border="0" height="32"
  alt="Contents" width="32"></A></td>
<td><a href="modindex.html" tppabs="http://www.python.org/doc/current/lib/modindex.html" title="Module Index"><img src="modules.gif" tppabs="http://www.python.org/doc/current/icons/modules.gif" border="0" height="32"
  alt="Module Index" width="32"></a></td>
<td><A href="genindex.html" tppabs="http://www.python.org/doc/current/lib/genindex.html"><img src="index.gif" tppabs="http://www.python.org/doc/current/icons/index.gif" border="0" height="32"
  alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="sgi.html" tppabs="http://www.python.org/doc/current/lib/sgi.html">18. SGI IRIX Specific</A>
<b class="navlabel">Up:</b> <a class="sectref" href="sgi.html" tppabs="http://www.python.org/doc/current/lib/sgi.html">18. SGI IRIX Specific</A>
<b class="navlabel">Next:</b> <a class="sectref" href="al-config-objects.html" tppabs="http://www.python.org/doc/current/lib/al-config-objects.html">18.1.1 Configuration Objects</A>
</DIV>
<!--End of Navigation Panel-->
<ADDRESS>
<hr>See <i><a href="about.html" tppabs="http://www.python.org/doc/current/lib/about.html">About this document...</a></i> for information on suggesting changes.
</ADDRESS>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -