Sophie

Sophie

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

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>Output Interface</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>Output Interface</h1><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Typedefs</h2></td></tr>
<tr><td nowrap align=right valign=top>typedef _snd_output&nbsp;</td><td valign=bottom><a class="el" href="group___output.html#a0">snd_output_t</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Internal structure for an output object.</em> <a href="#a0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>typedef enum <a class="el" href="group___output.html#a11">_snd_output_type</a>&nbsp;</td><td valign=bottom><a class="el" href="group___output.html#a1">snd_output_type_t</a></td></tr>
<tr><td colspan=2><br><h2>Enumerations</h2></td></tr>
<tr><td nowrap align=right valign=top>enum &nbsp;</td><td valign=bottom><a class="el" href="group___output.html#a11">_snd_output_type</a> { <a class="el" href="group___output.html#a11a2">SND_OUTPUT_STDIO</a>, 
<a class="el" href="group___output.html#a11a3">SND_OUTPUT_BUFFER</a>
 }</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="group___output.html#a2">snd_output_stdio_open</a> (<a class="el" href="group___output.html#a0">snd_output_t</a> **outputp, const char *file, const char *mode)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Creates a new output object writing to a file.</em> <a href="#a2"></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="group___output.html#a3">snd_output_stdio_attach</a> (<a class="el" href="group___output.html#a0">snd_output_t</a> **outputp, FILE *fp, int _close)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Creates a new output object using an existing stdio <code>FILE</code> pointer.</em> <a href="#a3"></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="group___output.html#a4">snd_output_buffer_open</a> (<a class="el" href="group___output.html#a0">snd_output_t</a> **outputp)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Creates a new output object with an auto-extending memory buffer.</em> <a href="#a4"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>size_t&nbsp;</td><td valign=bottom><a class="el" href="group___output.html#a5">snd_output_buffer_string</a> (<a class="el" href="group___output.html#a0">snd_output_t</a> *output, char **buf)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Returns the address of the buffer of a SND_OUTPUT_TYPE_BUFFER output handle.</em> <a href="#a5"></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="group___output.html#a6">snd_output_close</a> (<a class="el" href="group___output.html#a0">snd_output_t</a> *output)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Closes an output handle.</em> <a href="#a6"></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="group___output.html#a7">snd_output_printf</a> (<a class="el" href="group___output.html#a0">snd_output_t</a> *output, const char *format,...)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Writes formatted output (like <code>fprintf(3))</code> to an output handle.</em> <a href="#a7"></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="group___output.html#a8">snd_output_puts</a> (<a class="el" href="group___output.html#a0">snd_output_t</a> *output, const char *str)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Writes a string to an output handle (like <code>fputs(3))</code>.</em> <a href="#a8"></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="group___output.html#a9">snd_output_putc</a> (<a class="el" href="group___output.html#a0">snd_output_t</a> *output, int c)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Writes a character to an output handle (like <code>putc(3))</code>.</em> <a href="#a9"></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="group___output.html#a10">snd_output_flush</a> (<a class="el" href="group___output.html#a0">snd_output_t</a> *output)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Flushes an output handle (like fflush(3)).</em> <a href="#a10"></a><em></em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The output functions present an interface similar to the stdio functions on top of different underlying output destinations.
<p>
Many PCM debugging functions (<code>snd_pcm_xxx_dump_xxx)</code> use such an output handle to be able to write not only to the screen but also to other destinations, e.g. to files or to memory buffers. <hr><h2>Typedef Documentation</h2>
<a name="a0" doxytag="output.h::snd_output_t"></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"> typedef struct _snd_output snd_output_t
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Internal structure for an output object.
<p>
The ALSA library uses a pointer to this structure as a handle to an output object. Applications don't access its contents directly.     </td>
  </tr>
</table>
<a name="a1" doxytag="output.h::snd_output_type_t"></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"> typedef enum <a class="el" href="group___output.html#a11">_snd_output_type</a>  snd_output_type_t
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Output type.     </td>
  </tr>
</table>
<hr><h2>Enumeration Type Documentation</h2>
<a name="a11" doxytag="output.h::_snd_output_type"></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"> enum _snd_output_type
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Output type. <dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em><a name="a11a2" doxytag="SND_OUTPUT_STDIO"></a><em>SND_OUTPUT_STDIO</em></em>&nbsp;</td><td>
Output to a stdio stream. </td></tr>
<tr><td valign=top><em><a name="a11a3" doxytag="SND_OUTPUT_BUFFER"></a><em>SND_OUTPUT_BUFFER</em></em>&nbsp;</td><td>
Output to a memory buffer. </td></tr>
</table>
</dl>
    </td>
  </tr>
</table>
<hr><h2>Function Documentation</h2>
<a name="a4" doxytag="output.h::snd_output_buffer_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_output_buffer_open </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group___output.html#a0">snd_output_t</a> **&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>outputp</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

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

<p>
Creates a new output object with an auto-extending memory buffer.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>outputp</em>&nbsp;</td><td>
The function puts the pointer to the new output object at the address specified by <code>outputp</code>. </td></tr>
</table>
</dl><dl compact><dt><b>Returns: </b></dt><dd>
Zero if successful, otherwise a negative error code. </dl>    </td>
  </tr>
</table>
<a name="a5" doxytag="output.h::snd_output_buffer_string"></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"> size_t snd_output_buffer_string </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group___output.html#a0">snd_output_t</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>output</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>char **&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>buf</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>
Returns the address of the buffer of a SND_OUTPUT_TYPE_BUFFER output handle.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>output</em>&nbsp;</td><td>
The output handle. </td></tr>
<tr><td valign=top><em>buf</em>&nbsp;</td><td>
The functions puts the current address of the buffer at the address specified by <code>buf</code>. </td></tr>
</table>
</dl><dl compact><dt><b>Returns: </b></dt><dd>
The current size of valid data in the buffer.</dl>The address of the buffer may become invalid when output functions or <a class="el" href="group___output.html#a6">snd_output_close</a> are called.     </td>
  </tr>
</table>
<a name="a6" doxytag="output.h::snd_output_close"></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_output_close </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group___output.html#a0">snd_output_t</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>output</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

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

<p>
Closes an output handle.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>output</em>&nbsp;</td><td>
The output handle to be closed. </td></tr>
</table>
</dl><dl compact><dt><b>Returns: </b></dt><dd>
Zero if successful, otherwise a negative error code. </dl>    </td>
  </tr>
</table>
<a name="a10" doxytag="output.h::snd_output_flush"></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_output_flush </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group___output.html#a0">snd_output_t</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>output</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

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

<p>
Flushes an output handle (like fflush(3)).
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>output</em>&nbsp;</td><td>
The output handle. </td></tr>
</table>
</dl><dl compact><dt><b>Returns: </b></dt><dd>
Zero if successful, otherwise <code>EOF</code>.</dl>If the underlying destination is a stdio stream, this function calls <code>fflush</code>. If the underlying destination is a memory buffer, the write position is reset to the beginning of the buffer. =:<code>-o</code>     </td>
  </tr>
</table>
<a name="a7" doxytag="output.h::snd_output_printf"></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_output_printf </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group___output.html#a0">snd_output_t</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>output</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>format</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>...&nbsp;</td>
          <td class="mdname" nowrap>&nbsp;</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>
Writes formatted output (like <code>fprintf(3))</code> to an output handle.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>output</em>&nbsp;</td><td>
The output handle. </td></tr>
<tr><td valign=top><em>format</em>&nbsp;</td><td>
Format string in <code>fprintf</code> format. </td></tr>
<tr><td valign=top><em>...</em>&nbsp;</td><td>
Other <code>fprintf</code> arguments. </td></tr>
</table>
</dl><dl compact><dt><b>Returns: </b></dt><dd>
The number of characters written, or a negative error code. </dl>    </td>
  </tr>
</table>
<a name="a9" doxytag="output.h::snd_output_putc"></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_output_putc </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group___output.html#a0">snd_output_t</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>output</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>c</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>
Writes a character to an output handle (like <code>putc(3))</code>.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>output</em>&nbsp;</td><td>
The output handle. </td></tr>
<tr><td valign=top><em>c</em>&nbsp;</td><td>
The character. </td></tr>
</table>
</dl><dl compact><dt><b>Returns: </b></dt><dd>
Zero if successful, otherwise a negative error code or <code>EOF</code>. </dl>    </td>
  </tr>
</table>
<a name="a8" doxytag="output.h::snd_output_puts"></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_output_puts </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group___output.html#a0">snd_output_t</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>output</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>str</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>
Writes a string to an output handle (like <code>fputs(3))</code>.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>output</em>&nbsp;</td><td>
The output handle. </td></tr>
<tr><td valign=top><em>str</em>&nbsp;</td><td>
Pointer to the string. </td></tr>
</table>
</dl><dl compact><dt><b>Returns: </b></dt><dd>
Zero if successful, otherwise a negative error code or <code>EOF</code>. </dl>    </td>
  </tr>
</table>
<a name="a3" doxytag="output.h::snd_output_stdio_attach"></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_output_stdio_attach </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group___output.html#a0">snd_output_t</a> **&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>outputp</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>FILE *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>fp</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>_close</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 output object using an existing stdio <code>FILE</code> pointer.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>outputp</em>&nbsp;</td><td>
The function puts the pointer to the new output object at the address specified by <code>outputp</code>. </td></tr>
<tr><td valign=top><em>fp</em>&nbsp;</td><td>
The <code>FILE</code> pointer to write to. Characters are written to the file starting at the current file position. </td></tr>
<tr><td valign=top><em>close</em>&nbsp;</td><td>
Close flag. Set this to 1 if <a class="el" href="group___output.html#a6">snd_output_close</a> should close <code>fp</code> by calling <code>fclose</code>. </td></tr>
</table>
</dl><dl compact><dt><b>Returns: </b></dt><dd>
Zero if successful, otherwise a negative error code. </dl><dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="_2test_2latency_8c-example.html#a33">/test/latency.c</a>, and <a class="el" href="_2test_2pcm_8c-example.html#a39">/test/pcm.c</a>.</dl>    </td>
  </tr>
</table>
<a name="a2" doxytag="output.h::snd_output_stdio_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_output_stdio_open </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group___output.html#a0">snd_output_t</a> **&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>outputp</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>file</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char *&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 output object writing to a file.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>outputp</em>&nbsp;</td><td>
The function puts the pointer to the new output object at the address specified by <code>outputp</code>. </td></tr>
<tr><td valign=top><em>file</em>&nbsp;</td><td>
The name of the file to open. </td></tr>
<tr><td valign=top><em>mode</em>&nbsp;</td><td>
The open mode, like <code>fopen(3)</code>. </td></tr>
</table>
</dl><dl compact><dt><b>Returns: </b></dt><dd>
Zero if successful, otherwise a negative error code. </dl>    </td>
  </tr>
</table>
<hr><address style="align: right;"><small>Generated on Wed Apr 2 16:06:36 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>