<!-- This comment will put IE 6, 7 and 8 in quirks mode --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>ALSA project - the C library reference: /home/qateam/rpm/BUILD/alsa-lib-1.0.23/include/output.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javaScript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body onload='searchBox.OnSelectItem(0);'> <!-- Generated by Doxygen 1.6.3 --> <script type="text/javascript"><!-- var searchBox = new SearchBox("searchBox", "search",false,'Search'); --></script> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <img id="MSearchSelect" src="search/search.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </div> </li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <h1>/home/qateam/rpm/BUILD/alsa-lib-1.0.23/include/output.h</h1><a href="output_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <a name="l00011"></a>00011 <span class="comment">/*</span> <a name="l00012"></a>00012 <span class="comment"> * This library is free software; you can redistribute it and/or modify</span> <a name="l00013"></a>00013 <span class="comment"> * it under the terms of the GNU Lesser General Public License as</span> <a name="l00014"></a>00014 <span class="comment"> * published by the Free Software Foundation; either version 2.1 of</span> <a name="l00015"></a>00015 <span class="comment"> * the License, or (at your option) any later version.</span> <a name="l00016"></a>00016 <span class="comment"> *</span> <a name="l00017"></a>00017 <span class="comment"> * This program is distributed in the hope that it will be useful,</span> <a name="l00018"></a>00018 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00019"></a>00019 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> <a name="l00020"></a>00020 <span class="comment"> * GNU Lesser General Public License for more details.</span> <a name="l00021"></a>00021 <span class="comment"> *</span> <a name="l00022"></a>00022 <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span> <a name="l00023"></a>00023 <span class="comment"> * License along with this library; if not, write to the Free Software</span> <a name="l00024"></a>00024 <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span> <a name="l00025"></a>00025 <span class="comment"> *</span> <a name="l00026"></a>00026 <span class="comment"> */</span> <a name="l00027"></a>00027 <a name="l00028"></a>00028 <span class="preprocessor">#ifndef __ALSA_OUTPUT_H</span> <a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define __ALSA_OUTPUT_H</span> <a name="l00030"></a>00030 <span class="preprocessor"></span> <a name="l00031"></a>00031 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00032"></a>00032 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> { <a name="l00033"></a>00033 <span class="preprocessor">#endif</span> <a name="l00034"></a>00034 <span class="preprocessor"></span> <a name="l00054"></a><a class="code" href="group___output.html#ga49729cc6454539495c1f5b6e95cd474a">00054</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>_snd_output <a class="code" href="group___output.html#ga49729cc6454539495c1f5b6e95cd474a" title="Internal structure for an output object.">snd_output_t</a>; <a name="l00055"></a>00055 <a name="l00057"></a><a class="code" href="group___output.html#ga7217dd8d10e2491388e866d3354a4b29">00057</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> _snd_output_type { <a name="l00059"></a><a class="code" href="group___output.html#gga7217dd8d10e2491388e866d3354a4b29ad8291a0da96f6bf0cc0352e256fe8c50">00059</a> <a class="code" href="group___output.html#gga7217dd8d10e2491388e866d3354a4b29ad8291a0da96f6bf0cc0352e256fe8c50">SND_OUTPUT_STDIO</a>, <a name="l00061"></a><a class="code" href="group___output.html#gga7217dd8d10e2491388e866d3354a4b29a5630f21823bbe05e6547b8cc27af4e37">00061</a> <a class="code" href="group___output.html#gga7217dd8d10e2491388e866d3354a4b29a5630f21823bbe05e6547b8cc27af4e37">SND_OUTPUT_BUFFER</a> <a name="l00062"></a>00062 } <a class="code" href="group___output.html#ga7217dd8d10e2491388e866d3354a4b29">snd_output_type_t</a>; <a name="l00063"></a>00063 <a name="l00064"></a>00064 <span class="keywordtype">int</span> <a class="code" href="group___output.html#gae7b87e8cfcc2d46b124b2ad221ed6435" title="Creates a new output object writing to a file.">snd_output_stdio_open</a>(<a class="code" href="group___output.html#ga49729cc6454539495c1f5b6e95cd474a" title="Internal structure for an output object.">snd_output_t</a> **outputp, <span class="keyword">const</span> <span class="keywordtype">char</span> *file, <span class="keyword">const</span> <span class="keywordtype">char</span> *mode); <a name="l00065"></a>00065 <span class="keywordtype">int</span> <a class="code" href="group___output.html#gaca78d01bf6d081274650794861373c7d" title="Creates a new output object using an existing stdio FILE pointer.">snd_output_stdio_attach</a>(<a class="code" href="group___output.html#ga49729cc6454539495c1f5b6e95cd474a" title="Internal structure for an output object.">snd_output_t</a> **outputp, FILE *fp, <span class="keywordtype">int</span> _close); <a name="l00066"></a>00066 <span class="keywordtype">int</span> <a class="code" href="group___output.html#gafb4d1ae52ed7148b0abab0de3257fae1" title="Creates a new output object with an auto-extending memory buffer.">snd_output_buffer_open</a>(<a class="code" href="group___output.html#ga49729cc6454539495c1f5b6e95cd474a" title="Internal structure for an output object.">snd_output_t</a> **outputp); <a name="l00067"></a>00067 <span class="keywordtype">size_t</span> <a class="code" href="group___output.html#gaae66e163bd719593b6787d922546a055" title="Returns the address of the buffer of a SND_OUTPUT_BUFFER output handle.">snd_output_buffer_string</a>(<a class="code" href="group___output.html#ga49729cc6454539495c1f5b6e95cd474a" title="Internal structure for an output object.">snd_output_t</a> *output, <span class="keywordtype">char</span> **buf); <a name="l00068"></a>00068 <span class="keywordtype">int</span> <a class="code" href="group___output.html#gab4be4e572d2a0d0f2f46faf8d45aa35d" title="Closes an output handle.">snd_output_close</a>(<a class="code" href="group___output.html#ga49729cc6454539495c1f5b6e95cd474a" title="Internal structure for an output object.">snd_output_t</a> *output); <a name="l00069"></a>00069 <span class="keywordtype">int</span> <a class="code" href="group___output.html#ga5dd8e7d3089a82d8449a9dff221caf1c" title="Writes formatted output (like fprintf(3)) to an output handle.">snd_output_printf</a>(<a class="code" href="group___output.html#ga49729cc6454539495c1f5b6e95cd474a" title="Internal structure for an output object.">snd_output_t</a> *output, <span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...) <a name="l00070"></a>00070 <span class="preprocessor">#ifndef DOC_HIDDEN</span> <a name="l00071"></a>00071 <span class="preprocessor"></span> __attribute__ ((format (printf, 2, 3))) <a name="l00072"></a>00072 <span class="preprocessor">#endif</span> <a name="l00073"></a>00073 <span class="preprocessor"></span> ; <a name="l00074"></a>00074 <span class="keywordtype">int</span> <a class="code" href="group___output.html#gae01572ae47fd3ead25ffd6856118780f" title="Writes formatted output (like fprintf(3)) to an output handle.">snd_output_vprintf</a>(<a class="code" href="group___output.html#ga49729cc6454539495c1f5b6e95cd474a" title="Internal structure for an output object.">snd_output_t</a> *output, <span class="keyword">const</span> <span class="keywordtype">char</span> *format, va_list args); <a name="l00075"></a>00075 <span class="keywordtype">int</span> <a class="code" href="group___output.html#gaa370cff392c8fdaf03e08c667561d4ec" title="Writes a string to an output handle (like fputs(3)).">snd_output_puts</a>(<a class="code" href="group___output.html#ga49729cc6454539495c1f5b6e95cd474a" title="Internal structure for an output object.">snd_output_t</a> *output, <span class="keyword">const</span> <span class="keywordtype">char</span> *str); <a name="l00076"></a>00076 <span class="keywordtype">int</span> <a class="code" href="group___output.html#ga7b2b8c27042964a5b57acabe0af6e30b" title="Writes a character to an output handle (like putc(3)).">snd_output_putc</a>(<a class="code" href="group___output.html#ga49729cc6454539495c1f5b6e95cd474a" title="Internal structure for an output object.">snd_output_t</a> *output, <span class="keywordtype">int</span> c); <a name="l00077"></a>00077 <span class="keywordtype">int</span> <a class="code" href="group___output.html#ga9d188a05400c944bc1f70d757c179226" title="Flushes an output handle (like fflush(3)).">snd_output_flush</a>(<a class="code" href="group___output.html#ga49729cc6454539495c1f5b6e95cd474a" title="Internal structure for an output object.">snd_output_t</a> *output); <a name="l00078"></a>00078 <a name="l00081"></a>00081 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00082"></a>00082 <span class="preprocessor"></span>} <a name="l00083"></a>00083 <span class="preprocessor">#endif</span> <a name="l00084"></a>00084 <span class="preprocessor"></span> <a name="l00085"></a>00085 <span class="preprocessor">#endif </span><span class="comment">/* __ALSA_OUTPUT_H */</span> <a name="l00086"></a>00086 </pre></div></div> <!--- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Defines</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Sat Nov 20 07:42:23 2010 for ALSA project - the C library reference by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>