Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-testing > by-pkgid > 187676b5433787923dfa2cdd6900c6cd > files > 150

lib64pulseaudio-devel-0.9.15-2.0.7mdv2009.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>PulseAudio: simple.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;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>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>simple.h</h1><a href="simple_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef foosimplehfoo</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define foosimplehfoo</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="comment">/***</span>
<a name="l00005"></a>00005 <span class="comment">  This file is part of PulseAudio.</span>
<a name="l00006"></a>00006 <span class="comment"></span>
<a name="l00007"></a>00007 <span class="comment">  Copyright 2004-2006 Lennart Poettering</span>
<a name="l00008"></a>00008 <span class="comment">  Copyright 2006 Pierre Ossman &lt;ossman@cendio.se&gt; for Cendio AB</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">  PulseAudio is free software; you can redistribute it and/or modify</span>
<a name="l00011"></a>00011 <span class="comment">  it under the terms of the GNU Lesser General Public License as published</span>
<a name="l00012"></a>00012 <span class="comment">  by the Free Software Foundation; either version 2.1 of the License,</span>
<a name="l00013"></a>00013 <span class="comment">  or (at your option) any later version.</span>
<a name="l00014"></a>00014 <span class="comment"></span>
<a name="l00015"></a>00015 <span class="comment">  PulseAudio is distributed in the hope that it will be useful, but</span>
<a name="l00016"></a>00016 <span class="comment">  WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00017"></a>00017 <span class="comment">  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00018"></a>00018 <span class="comment">  General Public License for more details.</span>
<a name="l00019"></a>00019 <span class="comment"></span>
<a name="l00020"></a>00020 <span class="comment">  You should have received a copy of the GNU Lesser General Public License</span>
<a name="l00021"></a>00021 <span class="comment">  along with PulseAudio; if not, write to the Free Software</span>
<a name="l00022"></a>00022 <span class="comment">  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307</span>
<a name="l00023"></a>00023 <span class="comment">  USA.</span>
<a name="l00024"></a>00024 <span class="comment">***/</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;sys/types.h&gt;</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;<a class="code" href="sample_8h.html" title="Constants and routines for sample type handling.">pulse/sample.h</a>&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;<a class="code" href="channelmap_8h.html" title="Constants and routines for channel mapping handling.">pulse/channelmap.h</a>&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;<a class="code" href="def_8h.html" title="Global definitions.">pulse/def.h</a>&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;pulse/cdecl.h&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;<a class="code" href="version_8h.html" title="Define header version.">pulse/version.h</a>&gt;</span>
<a name="l00033"></a>00033 
<a name="l00109"></a>00109 PA_C_DECL_BEGIN
<a name="l00110"></a>00110 
<a name="l00113"></a><a class="code" href="simple_8h.html#c1b6da5fca8f55cf77b9db8db275ab86">00113</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structpa__simple.html" title="An opaque simple connection object.">pa_simple</a> <a class="code" href="structpa__simple.html" title="An opaque simple connection object.">pa_simple</a>;
<a name="l00114"></a>00114 
<a name="l00116"></a>00116 <a class="code" href="structpa__simple.html" title="An opaque simple connection object.">pa_simple</a>* <a class="code" href="simple_8h.html#dd9a7dce4e15955d4296726c26206689" title="Create a new connection to the server.">pa_simple_new</a>(
<a name="l00117"></a>00117     <span class="keyword">const</span> <span class="keywordtype">char</span> *server,                 
<a name="l00118"></a>00118     <span class="keyword">const</span> <span class="keywordtype">char</span> *name,                   
<a name="l00119"></a>00119     <a class="code" href="def_8h.html#637b1451881b8c0b0f98bafe115d7254" title="The direction of a pa_stream object.">pa_stream_direction_t</a> dir,          
<a name="l00120"></a>00120     <span class="keyword">const</span> <span class="keywordtype">char</span> *dev,                    
<a name="l00121"></a>00121     <span class="keyword">const</span> <span class="keywordtype">char</span> *stream_name,            
<a name="l00122"></a>00122     <span class="keyword">const</span> <a class="code" href="structpa__sample__spec.html" title="A sample format and attribute specification.">pa_sample_spec</a> *ss,           
<a name="l00123"></a>00123     <span class="keyword">const</span> <a class="code" href="structpa__channel__map.html" title="A channel map which can be used to attach labels to specific channels of a stream...">pa_channel_map</a> *map,          
<a name="l00124"></a>00124     <span class="keyword">const</span> <a class="code" href="structpa__buffer__attr.html" title="Playback and record buffer metrics.">pa_buffer_attr</a> *attr,         
<a name="l00125"></a>00125     <span class="keywordtype">int</span> *error                          
<a name="l00126"></a>00126     );
<a name="l00127"></a>00127 
<a name="l00129"></a>00129 <span class="keywordtype">void</span> <a class="code" href="simple_8h.html#d66a88bc23d2a54542df441ff472c389" title="Close and free the connection to the server.">pa_simple_free</a>(<a class="code" href="structpa__simple.html" title="An opaque simple connection object.">pa_simple</a> *s);
<a name="l00130"></a>00130 
<a name="l00132"></a>00132 <span class="keywordtype">int</span> <a class="code" href="simple_8h.html#f40711a9181c003b71074678c11372af" title="Write some data to the server.">pa_simple_write</a>(<a class="code" href="structpa__simple.html" title="An opaque simple connection object.">pa_simple</a> *s, <span class="keyword">const</span> <span class="keywordtype">void</span>*data, <span class="keywordtype">size_t</span> bytes, <span class="keywordtype">int</span> *error);
<a name="l00133"></a>00133 
<a name="l00135"></a>00135 <span class="keywordtype">int</span> <a class="code" href="simple_8h.html#28d1c33441b1bd6e7486cf299cf98233" title="Wait until all data already written is played by the daemon.">pa_simple_drain</a>(<a class="code" href="structpa__simple.html" title="An opaque simple connection object.">pa_simple</a> *s, <span class="keywordtype">int</span> *error);
<a name="l00136"></a>00136 
<a name="l00138"></a>00138 <span class="keywordtype">int</span> <a class="code" href="simple_8h.html#7d4d4e332b03f6525969241def7f822f" title="Read some data from the server.">pa_simple_read</a>(<a class="code" href="structpa__simple.html" title="An opaque simple connection object.">pa_simple</a> *s, <span class="keywordtype">void</span>*data, <span class="keywordtype">size_t</span> bytes, <span class="keywordtype">int</span> *error);
<a name="l00139"></a>00139 
<a name="l00141"></a>00141 <a class="code" href="sample_8h.html#885df3b973773f0dccbbec6bc6777f89" title="Type for usec specifications (unsigned).">pa_usec_t</a> <a class="code" href="simple_8h.html#613419d24e0fd8909dd4d01897d2fa49" title="Return the playback latency.">pa_simple_get_latency</a>(<a class="code" href="structpa__simple.html" title="An opaque simple connection object.">pa_simple</a> *s, <span class="keywordtype">int</span> *error);
<a name="l00142"></a>00142 
<a name="l00144"></a>00144 <span class="keywordtype">int</span> <a class="code" href="simple_8h.html#d236fee060a54fce375dbc444b385f59" title="Flush the playback buffer.">pa_simple_flush</a>(<a class="code" href="structpa__simple.html" title="An opaque simple connection object.">pa_simple</a> *s, <span class="keywordtype">int</span> *error);
<a name="l00145"></a>00145 
<a name="l00146"></a>00146 PA_C_DECL_END
<a name="l00147"></a>00147 
<a name="l00148"></a>00148 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Sep 2 04:18:19 2009 for PulseAudio by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>