Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > updates > by-pkgid > 18785641029f14f23cccc82925607ace > files > 111

libalsa2-docs-0.9.0-0.14rc7.1mdk.ppc.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>pcm_route.c File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.18 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; <a class="qindex" href="examples.html">Examples</a> &nbsp; </center>
<hr><h1>pcm_route.c File Reference</h1>PCM Route &amp; Volume Plugin Interface. 
<a href="#_details">More...</a>
<p>
<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Functions</h2></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="pcm__route_8c.html#a14">snd_pcm_route_open</a> (<a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> **pcmp, const char *name, <a class="el" href="group___p_c_m.html#a11">snd_pcm_format_t</a> sformat, int schannels, snd_pcm_route_ttable_entry_t *ttable, unsigned int tt_ssize, unsigned int tt_cused, unsigned int tt_sused, <a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> *slave, int close_slave)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Creates a new Route &amp; Volume PCM.</em> <a href="#a14"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="pcm__route_8c.html#a15">snd_pcm_route_determine_ttable</a> (<a class="el" href="group___config.html#a1">snd_config_t</a> *tt, unsigned int *tt_csize, unsigned int *tt_ssize)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Determine route matrix sizes.</em> <a href="#a15"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="pcm__route_8c.html#a16">snd_pcm_route_load_ttable</a> (<a class="el" href="group___config.html#a1">snd_config_t</a> *tt, snd_pcm_route_ttable_entry_t *ttable, unsigned int tt_csize, unsigned int tt_ssize, unsigned int *tt_cused, unsigned int *tt_sused, int schannels)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Load route matrix.</em> <a href="#a16"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="pcm__route_8c.html#a17">_snd_pcm_route_open</a> (<a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> **pcmp, const char *name, <a class="el" href="group___config.html#a1">snd_config_t</a> *root, <a class="el" href="group___config.html#a1">snd_config_t</a> *conf, <a class="el" href="group___p_c_m.html#a9">snd_pcm_stream_t</a> stream, int mode)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Creates a new Route &amp; Volume PCM.</em> <a href="#a17"></a><em></em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
PCM Route &amp; Volume Plugin Interface.
<p>

<p>
<dl compact><dt><b>Author: </b></dt><dd>
Abramo Bagnara &lt;<a href="mailto:abramo@alsa-project.org">abramo@alsa-project.org</a>&gt; </dl><dl compact><dt><b>Date: </b></dt><dd>
2000-2001</dl><hr><h2>Function Documentation</h2>
<a name="a17" doxytag="pcm_route.c::_snd_pcm_route_open"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int _snd_pcm_route_open </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> **&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>pcmp</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>name</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="group___config.html#a1">snd_config_t</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>root</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="group___config.html#a1">snd_config_t</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>conf</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="group___p_c_m.html#a9">snd_pcm_stream_t</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>stream</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>mode</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Creates a new Route &amp; Volume PCM.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>pcmp</em>&nbsp;</td><td>
Returns created PCM handle </td></tr>
<tr><td valign=top><em>name</em>&nbsp;</td><td>
Name of PCM </td></tr>
<tr><td valign=top><em>root</em>&nbsp;</td><td>
Root configuration node </td></tr>
<tr><td valign=top><em>conf</em>&nbsp;</td><td>
Configuration node with Route &amp; Volume PCM description </td></tr>
<tr><td valign=top><em>stream</em>&nbsp;</td><td>
Stream type </td></tr>
<tr><td valign=top><em>mode</em>&nbsp;</td><td>
Stream mode </td></tr>
</table>
</dl><dl compact><dt><b>Return values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>zero</em>&nbsp;</td><td>
on success otherwise a negative error code </td></tr>
</table>
</dl><dl compact><dt><b>Warning: </b></dt><dd>
Using of this function might be dangerous in the sense of compatibility reasons. The prototype might be freely changed in future. </dl>    </td>
  </tr>
</table>
<a name="a15" doxytag="pcm_route.c::snd_pcm_route_determine_ttable"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int snd_pcm_route_determine_ttable </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group___config.html#a1">snd_config_t</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>tt</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned int *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>tt_csize</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned int *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>tt_ssize</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Determine route matrix sizes.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>tt</em>&nbsp;</td><td>
Configuration root describing route matrix </td></tr>
<tr><td valign=top><em>tt_csize</em>&nbsp;</td><td>
Returned client size in elements </td></tr>
<tr><td valign=top><em>tt_ssize</em>&nbsp;</td><td>
Returned slave size in elements </td></tr>
</table>
</dl><dl compact><dt><b>Return values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>zero</em>&nbsp;</td><td>
on success otherwise a negative error code </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<a name="a16" doxytag="pcm_route.c::snd_pcm_route_load_ttable"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int snd_pcm_route_load_ttable </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group___config.html#a1">snd_config_t</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>tt</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>snd_pcm_route_ttable_entry_t *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>ttable</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>tt_csize</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>tt_ssize</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned int *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>tt_cused</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned int *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>tt_sused</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>schannels</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Load route matrix.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>tt</em>&nbsp;</td><td>
Configuration root describing route matrix </td></tr>
<tr><td valign=top><em>ttable</em>&nbsp;</td><td>
Returned route matrix </td></tr>
<tr><td valign=top><em>tt_csize</em>&nbsp;</td><td>
Client size in elements </td></tr>
<tr><td valign=top><em>tt_ssize</em>&nbsp;</td><td>
Slave size in elements </td></tr>
<tr><td valign=top><em>tt_cused</em>&nbsp;</td><td>
Used client elements </td></tr>
<tr><td valign=top><em>tt_sused</em>&nbsp;</td><td>
Used slave elements </td></tr>
<tr><td valign=top><em>schannels</em>&nbsp;</td><td>
Slave channels </td></tr>
</table>
</dl><dl compact><dt><b>Return values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>zero</em>&nbsp;</td><td>
on success otherwise a negative error code </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<a name="a14" doxytag="pcm_route.c::snd_pcm_route_open"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int snd_pcm_route_open </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> **&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>pcmp</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>name</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="group___p_c_m.html#a11">snd_pcm_format_t</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>sformat</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>schannels</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>snd_pcm_route_ttable_entry_t *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>ttable</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>tt_ssize</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>tt_cused</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>tt_sused</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>slave</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>close_slave</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Creates a new Route &amp; Volume PCM.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>pcmp</em>&nbsp;</td><td>
Returns created PCM handle </td></tr>
<tr><td valign=top><em>name</em>&nbsp;</td><td>
Name of PCM </td></tr>
<tr><td valign=top><em>sformat</em>&nbsp;</td><td>
Slave format </td></tr>
<tr><td valign=top><em>schannels</em>&nbsp;</td><td>
Slave channels </td></tr>
<tr><td valign=top><em>ttable</em>&nbsp;</td><td>
Attenuation table </td></tr>
<tr><td valign=top><em>tt_ssize</em>&nbsp;</td><td>
Attenuation table - slave size </td></tr>
<tr><td valign=top><em>tt_cused</em>&nbsp;</td><td>
Attenuation table - client used count </td></tr>
<tr><td valign=top><em>tt_sused</em>&nbsp;</td><td>
Attenuation table - slave used count </td></tr>
<tr><td valign=top><em>slave</em>&nbsp;</td><td>
Slave PCM handle </td></tr>
<tr><td valign=top><em>close_slave</em>&nbsp;</td><td>
When set, the slave PCM handle is closed with copy PCM </td></tr>
</table>
</dl><dl compact><dt><b>Return values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>zero</em>&nbsp;</td><td>
on success otherwise a negative error code </td></tr>
</table>
</dl><dl compact><dt><b>Warning: </b></dt><dd>
Using of this function might be dangerous in the sense of compatibility reasons. The prototype might be freely changed in future. </dl>    </td>
  </tr>
</table>
<hr><address style="align: right;"><small>Generated on Wed Apr 2 16:06:35 2003 for ALSA project - the C library reference by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.18 </small></address>
</body>
</html>