Current File : //proc/self/root/kunden/usr/share/doc/pulseaudio-libs-devel/html/sample_8h_source.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PulseAudio: sample.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">PulseAudio
 <span id="projectnumber">15.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('sample_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">sample.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="sample_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef foosamplehfoo</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define foosamplehfoo</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>  </div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">/***</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> This file is part of PulseAudio.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"></span> </div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> Copyright 2004-2006 Lennart Poettering</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span> </div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> PulseAudio is free software; you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> it under the terms of the GNU Lesser General Public License as published</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> by the Free Software Foundation; either version 2.1 of the License,</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> or (at your option) any later version.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"></span> </div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> PulseAudio is distributed in the hope that it will be useful, but</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> General Public License for more details.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"></span> </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> You should have received a copy of the GNU Lesser General Public License</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">***/</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <inttypes.h></span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <sys/types.h></span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <sys/param.h></span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  </div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <<a class="code" href="gccmacro_8h.html">pulse/gccmacro.h</a>></span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <pulse/cdecl.h></span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <pulse/version.h></span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> PA_C_DECL_BEGIN</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  </div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="preprocessor">#if !defined(WORDS_BIGENDIAN)</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  </div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="preprocessor">#if defined(__BYTE_ORDER)</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="preprocessor">#if __BYTE_ORDER == __BIG_ENDIAN</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="preprocessor">#define WORDS_BIGENDIAN</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  </div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="comment">/* On Sparc, WORDS_BIGENDIAN needs to be set if _BIG_ENDIAN is defined. */</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="preprocessor">#if defined(__sparc__) && defined(_BIG_ENDIAN)</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="preprocessor">#define WORDS_BIGENDIAN</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  </div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  </div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="sample_8h.html#a4c6778fd8a093f9984ce0448f81d9dcf"> 128</a></span> <span class="preprocessor">#define PA_CHANNELS_MAX 32U</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  </div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="sample_8h.html#a3a7f31e73acc7e833fe0d49290adf839"> 131</a></span> <span class="preprocessor">#define PA_RATE_MAX (48000U*8U)</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  </div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05f"> 134</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05f">pa_sample_format</a> {</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa40e5414deb5fbd486c2929e6993a5544">PA_SAMPLE_U8</a>,</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa267f6542eb6f66ca61c4cccf61326522">PA_SAMPLE_ALAW</a>,</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa83116fc70f8577fdcf694474a60c2e1f">PA_SAMPLE_ULAW</a>,</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa50e4a2b43c258e559fa9d252275131ce">PA_SAMPLE_S16LE</a>,</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa783cb88f5021ff01fa7ba6d1c2bee84c">PA_SAMPLE_S16BE</a>,</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fad2f6c96c4f0cd2a841fbe4840488b548">PA_SAMPLE_FLOAT32LE</a>,</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa3550123d5ef697b349edea2ddf61d6b4">PA_SAMPLE_FLOAT32BE</a>,</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa3eb5213ed7a0887b5dcd28cfc97e3457">PA_SAMPLE_S32LE</a>,</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faf81ba0a2b599c490228f619e2a8d3b0e">PA_SAMPLE_S32BE</a>,</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faab50478dbb74cceddcb254928646a0c7">PA_SAMPLE_S24LE</a>,</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faadff0a924aee5c95c7fdd923c56621b6">PA_SAMPLE_S24BE</a>,</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa6d91d680c240fde8ae3cdafa9900c055">PA_SAMPLE_S24_32LE</a>,</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05facd9ce7bf2cc5d2c4f72a59b9ae0bef89">PA_SAMPLE_S24_32BE</a>,</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="comment">/* Remeber to update</span></div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="comment"> * https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SupportedAudioFormats/</span></div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="comment"> * when adding new formats! */</span></div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  </div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faa6fe0e0623f9e2204c63c293f13597a1">PA_SAMPLE_MAX</a>,</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fafe8a3cc049d2c9820efd8fea80e01e10">PA_SAMPLE_INVALID</a> = -1</div>
<div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="sample_8h.html#a914d67463e4e625309bed7230b5d32b5"> 183</a></span> } <a class="code" href="sample_8h.html#a914d67463e4e625309bed7230b5d32b5">pa_sample_format_t</a>;</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  </div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="preprocessor">#ifdef WORDS_BIGENDIAN</span></div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="preprocessor">#define PA_SAMPLE_S16NE PA_SAMPLE_S16BE</span></div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="preprocessor">#define PA_SAMPLE_FLOAT32NE PA_SAMPLE_FLOAT32BE</span></div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="preprocessor">#define PA_SAMPLE_S32NE PA_SAMPLE_S32BE</span></div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="preprocessor">#define PA_SAMPLE_S24NE PA_SAMPLE_S24BE</span></div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="preprocessor">#define PA_SAMPLE_S24_32NE PA_SAMPLE_S24_32BE</span></div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  </div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="preprocessor">#define PA_SAMPLE_S16RE PA_SAMPLE_S16LE</span></div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="preprocessor">#define PA_SAMPLE_FLOAT32RE PA_SAMPLE_FLOAT32LE</span></div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="preprocessor">#define PA_SAMPLE_S32RE PA_SAMPLE_S32LE</span></div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="preprocessor">#define PA_SAMPLE_S24RE PA_SAMPLE_S24LE</span></div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="preprocessor">#define PA_SAMPLE_S24_32RE PA_SAMPLE_S24_32LE</span></div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="preprocessor">#else</span></div>
<div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="sample_8h.html#a292c1d8ebd4ca0de1d5d5379ee7be38a"> 209</a></span> <span class="preprocessor">#define PA_SAMPLE_S16NE PA_SAMPLE_S16LE</span></div>
<div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="sample_8h.html#a25befbdbf9fdc57012ce00dcc1756eac"> 211</a></span> <span class="preprocessor">#define PA_SAMPLE_FLOAT32NE PA_SAMPLE_FLOAT32LE</span></div>
<div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="sample_8h.html#af5b3efe108944c746a07128d9f24c889"> 213</a></span> <span class="preprocessor">#define PA_SAMPLE_S32NE PA_SAMPLE_S32LE</span></div>
<div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="sample_8h.html#a095cd643a682ad1e55205283c42f9aa9"> 215</a></span> <span class="preprocessor">#define PA_SAMPLE_S24NE PA_SAMPLE_S24LE</span></div>
<div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="sample_8h.html#afaf7880f4fa75428bad1d458316e030e"> 217</a></span> <span class="preprocessor">#define PA_SAMPLE_S24_32NE PA_SAMPLE_S24_32LE</span></div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  </div>
<div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="sample_8h.html#a688b20beba239784f7d92b79a626267a"> 220</a></span> <span class="preprocessor">#define PA_SAMPLE_S16RE PA_SAMPLE_S16BE</span></div>
<div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="sample_8h.html#aa07717de5712b215af265b35d9daee78"> 222</a></span> <span class="preprocessor">#define PA_SAMPLE_FLOAT32RE PA_SAMPLE_FLOAT32BE</span></div>
<div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="sample_8h.html#ac9bfd0ece22174acad5eb021ff159a61"> 224</a></span> <span class="preprocessor">#define PA_SAMPLE_S32RE PA_SAMPLE_S32BE</span></div>
<div class="line"><a name="l00226"></a><span class="lineno"><a class="line" href="sample_8h.html#adcdf168f62fd7a27705de50058c6bd5c"> 226</a></span> <span class="preprocessor">#define PA_SAMPLE_S24RE PA_SAMPLE_S24BE</span></div>
<div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="sample_8h.html#addb0fe697d3b6a8ce8c13fb711253630"> 228</a></span> <span class="preprocessor">#define PA_SAMPLE_S24_32RE PA_SAMPLE_S24_32BE</span></div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  </div>
<div class="line"><a name="l00232"></a><span class="lineno"><a class="line" href="sample_8h.html#adce65a384a3af05a2481aff5fd2632fb"> 232</a></span> <span class="preprocessor">#define PA_SAMPLE_FLOAT32 PA_SAMPLE_FLOAT32NE</span></div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  </div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="comment">/* Allow clients to check with #ifdef for these sample formats */</span></div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="preprocessor">#define PA_SAMPLE_U8 PA_SAMPLE_U8</span></div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span> <span class="preprocessor">#define PA_SAMPLE_ALAW PA_SAMPLE_ALAW</span></div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="preprocessor">#define PA_SAMPLE_ULAW PA_SAMPLE_ULAW</span></div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="preprocessor">#define PA_SAMPLE_S16LE PA_SAMPLE_S16LE</span></div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span> <span class="preprocessor">#define PA_SAMPLE_S16BE PA_SAMPLE_S16BE</span></div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="preprocessor">#define PA_SAMPLE_FLOAT32LE PA_SAMPLE_FLOAT32LE</span></div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="preprocessor">#define PA_SAMPLE_FLOAT32BE PA_SAMPLE_FLOAT32BE</span></div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="preprocessor">#define PA_SAMPLE_S32LE PA_SAMPLE_S32LE</span></div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="preprocessor">#define PA_SAMPLE_S32BE PA_SAMPLE_S32BE</span></div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="preprocessor">#define PA_SAMPLE_S24LE PA_SAMPLE_S24LE</span></div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <span class="preprocessor">#define PA_SAMPLE_S24BE PA_SAMPLE_S24BE</span></div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="preprocessor">#define PA_SAMPLE_S24_32LE PA_SAMPLE_S24_32LE</span></div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="preprocessor">#define PA_SAMPLE_S24_32BE PA_SAMPLE_S24_32BE</span></div>
<div class="line"><a name="l00252"></a><span class="lineno"><a class="line" href="structpa__sample__spec.html"> 252</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structpa__sample__spec.html">pa_sample_spec</a> {</div>
<div class="line"><a name="l00253"></a><span class="lineno"><a class="line" href="structpa__sample__spec.html#a6f37954f1b7ac9d9bff4683171a10a99"> 253</a></span>  <a class="code" href="sample_8h.html#a914d67463e4e625309bed7230b5d32b5">pa_sample_format_t</a> <a class="code" href="structpa__sample__spec.html#a6f37954f1b7ac9d9bff4683171a10a99">format</a>;</div>
<div class="line"><a name="l00256"></a><span class="lineno"><a class="line" href="structpa__sample__spec.html#a4fd5a1ef48c1cbea95a94b20a5cc02b0"> 256</a></span>  uint32_t <a class="code" href="structpa__sample__spec.html#a4fd5a1ef48c1cbea95a94b20a5cc02b0">rate</a>;</div>
<div class="line"><a name="l00259"></a><span class="lineno"><a class="line" href="structpa__sample__spec.html#a625155d20d7e50a3808b889e314d25fa"> 259</a></span>  uint8_t <a class="code" href="structpa__sample__spec.html#a625155d20d7e50a3808b889e314d25fa">channels</a>;</div>
<div class="line"><a name="l00261"></a><span class="lineno"><a class="line" href="sample_8h.html#ad4d9ec4799070844b8e0ef60a1d17dbf"> 261</a></span> } <a class="code" href="sample_8h.html#ad4d9ec4799070844b8e0ef60a1d17dbf">pa_sample_spec</a>;</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  </div>
<div class="line"><a name="l00264"></a><span class="lineno"><a class="line" href="sample_8h.html#a885df3b973773f0dccbbec6bc6777f89"> 264</a></span> <span class="keyword">typedef</span> uint64_t <a class="code" href="sample_8h.html#a885df3b973773f0dccbbec6bc6777f89">pa_usec_t</a>;</div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  </div>
<div class="line"><a name="l00268"></a><span class="lineno"><a class="line" href="sample_8h.html#a674c3449416e97b71a75feb64ca59ad4"> 268</a></span> <span class="keywordtype">size_t</span> <a class="code" href="sample_8h.html#a674c3449416e97b71a75feb64ca59ad4">pa_bytes_per_second</a>(<span class="keyword">const</span> <a class="code" href="structpa__sample__spec.html">pa_sample_spec</a> *spec) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  </div>
<div class="line"><a name="l00271"></a><span class="lineno"><a class="line" href="sample_8h.html#a035d79171e183f6315e6e65436f5e939"> 271</a></span> <span class="keywordtype">size_t</span> <a class="code" href="sample_8h.html#a035d79171e183f6315e6e65436f5e939">pa_frame_size</a>(<span class="keyword">const</span> <a class="code" href="structpa__sample__spec.html">pa_sample_spec</a> *spec) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  </div>
<div class="line"><a name="l00274"></a><span class="lineno"><a class="line" href="sample_8h.html#aae286d84c2975248f65f804d4c24ef39"> 274</a></span> <span class="keywordtype">size_t</span> <a class="code" href="sample_8h.html#aae286d84c2975248f65f804d4c24ef39">pa_sample_size</a>(<span class="keyword">const</span> <a class="code" href="structpa__sample__spec.html">pa_sample_spec</a> *spec) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  </div>
<div class="line"><a name="l00278"></a><span class="lineno"><a class="line" href="sample_8h.html#a46b2c919b75efbb2b3c3d703ba57fdf6"> 278</a></span> <span class="keywordtype">size_t</span> <a class="code" href="sample_8h.html#a46b2c919b75efbb2b3c3d703ba57fdf6">pa_sample_size_of_format</a>(<a class="code" href="sample_8h.html#a914d67463e4e625309bed7230b5d32b5">pa_sample_format_t</a> f) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  </div>
<div class="line"><a name="l00283"></a><span class="lineno"><a class="line" href="sample_8h.html#ab3c5f4af357686fdc7df46c9581154bd"> 283</a></span> <a class="code" href="sample_8h.html#a885df3b973773f0dccbbec6bc6777f89">pa_usec_t</a> <a class="code" href="sample_8h.html#ab3c5f4af357686fdc7df46c9581154bd">pa_bytes_to_usec</a>(uint64_t length, <span class="keyword">const</span> <a class="code" href="structpa__sample__spec.html">pa_sample_spec</a> *spec) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  </div>
<div class="line"><a name="l00289"></a><span class="lineno"><a class="line" href="sample_8h.html#aa941cbdb65f1f0265a1d165bc14db034"> 289</a></span> <span class="keywordtype">size_t</span> <a class="code" href="sample_8h.html#aa941cbdb65f1f0265a1d165bc14db034">pa_usec_to_bytes</a>(<a class="code" href="sample_8h.html#a885df3b973773f0dccbbec6bc6777f89">pa_usec_t</a> t, <span class="keyword">const</span> <a class="code" href="structpa__sample__spec.html">pa_sample_spec</a> *spec) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  </div>
<div class="line"><a name="l00294"></a><span class="lineno"><a class="line" href="sample_8h.html#a5d392d4cc38109670585708f5062c2fe"> 294</a></span> <a class="code" href="structpa__sample__spec.html">pa_sample_spec</a>* <a class="code" href="sample_8h.html#a5d392d4cc38109670585708f5062c2fe">pa_sample_spec_init</a>(<a class="code" href="structpa__sample__spec.html">pa_sample_spec</a> *spec);</div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  </div>
<div class="line"><a name="l00297"></a><span class="lineno"><a class="line" href="sample_8h.html#a50d62a8cdf47b930cba7413e7d553053"> 297</a></span> <span class="keywordtype">int</span> <a class="code" href="sample_8h.html#a50d62a8cdf47b930cba7413e7d553053">pa_sample_format_valid</a>(<span class="keywordtype">unsigned</span> format) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div>
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  </div>
<div class="line"><a name="l00300"></a><span class="lineno"><a class="line" href="sample_8h.html#aed7a371985734a98d5d40ab0624aed09"> 300</a></span> <span class="keywordtype">int</span> <a class="code" href="sample_8h.html#aed7a371985734a98d5d40ab0624aed09">pa_sample_rate_valid</a>(uint32_t rate) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div>
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  </div>
<div class="line"><a name="l00304"></a><span class="lineno"><a class="line" href="sample_8h.html#a815497e438819abde8efd477e4430ca2"> 304</a></span> <span class="keywordtype">int</span> <a class="code" href="sample_8h.html#a815497e438819abde8efd477e4430ca2">pa_channels_valid</a>(uint8_t channels) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div>
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  </div>
<div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="sample_8h.html#a0d9ad972ee71ef6bff8aaafd44fdb229"> 307</a></span> <span class="keywordtype">int</span> <a class="code" href="sample_8h.html#a0d9ad972ee71ef6bff8aaafd44fdb229">pa_sample_spec_valid</a>(<span class="keyword">const</span> <a class="code" href="structpa__sample__spec.html">pa_sample_spec</a> *spec) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  </div>
<div class="line"><a name="l00310"></a><span class="lineno"><a class="line" href="sample_8h.html#ac4c2262bf88bd90fc68767e69fb6810c"> 310</a></span> <span class="keywordtype">int</span> <a class="code" href="sample_8h.html#ac4c2262bf88bd90fc68767e69fb6810c">pa_sample_spec_equal</a>(<span class="keyword">const</span> <a class="code" href="structpa__sample__spec.html">pa_sample_spec</a>*a, <span class="keyword">const</span> <a class="code" href="structpa__sample__spec.html">pa_sample_spec</a>*b) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div>
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  </div>
<div class="line"><a name="l00313"></a><span class="lineno"><a class="line" href="sample_8h.html#a70804b50d5507f9a7680d4e809e337ed"> 313</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="sample_8h.html#a70804b50d5507f9a7680d4e809e337ed">pa_sample_format_to_string</a>(<a class="code" href="sample_8h.html#a914d67463e4e625309bed7230b5d32b5">pa_sample_format_t</a> f) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div>
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  </div>
<div class="line"><a name="l00316"></a><span class="lineno"><a class="line" href="sample_8h.html#a2819db448dd45edb5d777b7568dd3236"> 316</a></span> <a class="code" href="sample_8h.html#a914d67463e4e625309bed7230b5d32b5">pa_sample_format_t</a> <a class="code" href="sample_8h.html#a2819db448dd45edb5d777b7568dd3236">pa_parse_sample_format</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *format) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div>
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  </div>
<div class="line"><a name="l00323"></a><span class="lineno"><a class="line" href="sample_8h.html#a61844a6fa4a5a91bbeca1049c4969bb8"> 323</a></span> <span class="preprocessor">#define PA_SAMPLE_SPEC_SNPRINT_MAX 32</span></div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  </div>
<div class="line"><a name="l00326"></a><span class="lineno"><a class="line" href="sample_8h.html#a3dd4815bbd51d5467b40e28d05ad948d"> 326</a></span> <span class="keywordtype">char</span>* <a class="code" href="sample_8h.html#a3dd4815bbd51d5467b40e28d05ad948d">pa_sample_spec_snprint</a>(<span class="keywordtype">char</span> *s, <span class="keywordtype">size_t</span> l, <span class="keyword">const</span> <a class="code" href="structpa__sample__spec.html">pa_sample_spec</a> *spec);</div>
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  </div>
<div class="line"><a name="l00333"></a><span class="lineno"><a class="line" href="sample_8h.html#af61a5e667357b7f9568a7b283d517a6f"> 333</a></span> <span class="preprocessor">#define PA_BYTES_SNPRINT_MAX 11</span></div>
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  </div>
<div class="line"><a name="l00336"></a><span class="lineno"><a class="line" href="sample_8h.html#a4992ec70d79de601c6f8f6cc5cab8e59"> 336</a></span> <span class="keywordtype">char</span>* <a class="code" href="sample_8h.html#a4992ec70d79de601c6f8f6cc5cab8e59">pa_bytes_snprint</a>(<span class="keywordtype">char</span> *s, <span class="keywordtype">size_t</span> l, <span class="keywordtype">unsigned</span> v);</div>
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  </div>
<div class="line"><a name="l00341"></a><span class="lineno"><a class="line" href="sample_8h.html#a8173354fab0b323c172eeff97b2fa54f"> 341</a></span> <span class="keywordtype">int</span> <a class="code" href="sample_8h.html#a8173354fab0b323c172eeff97b2fa54f">pa_sample_format_is_le</a>(<a class="code" href="sample_8h.html#a914d67463e4e625309bed7230b5d32b5">pa_sample_format_t</a> f) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div>
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  </div>
<div class="line"><a name="l00346"></a><span class="lineno"><a class="line" href="sample_8h.html#aa4fb3c574f13c657b8a0e554ebab52c9"> 346</a></span> <span class="keywordtype">int</span> <a class="code" href="sample_8h.html#aa4fb3c574f13c657b8a0e554ebab52c9">pa_sample_format_is_be</a>(<a class="code" href="sample_8h.html#a914d67463e4e625309bed7230b5d32b5">pa_sample_format_t</a> f) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div>
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  </div>
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span> <span class="preprocessor">#ifdef WORDS_BIGENDIAN</span></div>
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span> <span class="preprocessor">#define pa_sample_format_is_ne(f) pa_sample_format_is_be(f)</span></div>
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span> <span class="preprocessor">#define pa_sample_format_is_re(f) pa_sample_format_is_le(f)</span></div>
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span> <span class="preprocessor">#else</span></div>
<div class="line"><a name="l00355"></a><span class="lineno"><a class="line" href="sample_8h.html#a09a7ac737ee5b9bbbd8f859d96cbf1c9"> 355</a></span> <span class="preprocessor">#define pa_sample_format_is_ne(f) pa_sample_format_is_le(f)</span></div>
<div class="line"><a name="l00359"></a><span class="lineno"><a class="line" href="sample_8h.html#a2bd6ce1c4bb88001b58181b407da6b79"> 359</a></span> <span class="preprocessor">#define pa_sample_format_is_re(f) pa_sample_format_is_be(f)</span></div>
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  </div>
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span> PA_C_DECL_END</div>
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  </div>
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span> <span class="preprocessor">#endif</span></div>
<div class="ttc" id="agccmacro_8h_html"><div class="ttname"><a href="gccmacro_8h.html">gccmacro.h</a></div><div class="ttdoc">GCC attribute macros.</div></div>
<div class="ttc" id="agccmacro_8h_html_aa1c5f50faa1073e28ba469b86f6a0548"><div class="ttname"><a href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a></div><div class="ttdeci">#define PA_GCC_PURE</div><div class="ttdoc">This function's return value depends only the arguments list and global state.</div><div class="ttdef"><b>Definition:</b> gccmacro.h:71</div></div>
<div class="ttc" id="asample_8h_html_a035d79171e183f6315e6e65436f5e939"><div class="ttname"><a href="sample_8h.html#a035d79171e183f6315e6e65436f5e939">pa_frame_size</a></div><div class="ttdeci">size_t pa_frame_size(const pa_sample_spec *spec) PA_GCC_PURE</div><div class="ttdoc">Return the size of a frame with the specific sample type.</div></div>
<div class="ttc" id="asample_8h_html_a0d9ad972ee71ef6bff8aaafd44fdb229"><div class="ttname"><a href="sample_8h.html#a0d9ad972ee71ef6bff8aaafd44fdb229">pa_sample_spec_valid</a></div><div class="ttdeci">int pa_sample_spec_valid(const pa_sample_spec *spec) PA_GCC_PURE</div><div class="ttdoc">Return non-zero when the sample type specification is valid.</div></div>
<div class="ttc" id="asample_8h_html_a2819db448dd45edb5d777b7568dd3236"><div class="ttname"><a href="sample_8h.html#a2819db448dd45edb5d777b7568dd3236">pa_parse_sample_format</a></div><div class="ttdeci">pa_sample_format_t pa_parse_sample_format(const char *format) PA_GCC_PURE</div><div class="ttdoc">Parse a sample format text.</div></div>
<div class="ttc" id="asample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05f"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05f">pa_sample_format</a></div><div class="ttdeci">pa_sample_format</div><div class="ttdoc">Sample format.</div><div class="ttdef"><b>Definition:</b> sample.h:134</div></div>
<div class="ttc" id="asample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fa267f6542eb6f66ca61c4cccf61326522"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa267f6542eb6f66ca61c4cccf61326522">PA_SAMPLE_ALAW</a></div><div class="ttdeci">@ PA_SAMPLE_ALAW</div><div class="ttdoc">8 Bit a-Law</div><div class="ttdef"><b>Definition:</b> sample.h:138</div></div>
<div class="ttc" id="asample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fa3550123d5ef697b349edea2ddf61d6b4"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa3550123d5ef697b349edea2ddf61d6b4">PA_SAMPLE_FLOAT32BE</a></div><div class="ttdeci">@ PA_SAMPLE_FLOAT32BE</div><div class="ttdoc">32 Bit IEEE floating point, big endian, range -1.0 to 1.0</div><div class="ttdef"><b>Definition:</b> sample.h:153</div></div>
<div class="ttc" id="asample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fa3eb5213ed7a0887b5dcd28cfc97e3457"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa3eb5213ed7a0887b5dcd28cfc97e3457">PA_SAMPLE_S32LE</a></div><div class="ttdeci">@ PA_SAMPLE_S32LE</div><div class="ttdoc">Signed 32 Bit PCM, little endian (PC)</div><div class="ttdef"><b>Definition:</b> sample.h:156</div></div>
<div class="ttc" id="asample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fa40e5414deb5fbd486c2929e6993a5544"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa40e5414deb5fbd486c2929e6993a5544">PA_SAMPLE_U8</a></div><div class="ttdeci">@ PA_SAMPLE_U8</div><div class="ttdoc">Unsigned 8 Bit PCM.</div><div class="ttdef"><b>Definition:</b> sample.h:135</div></div>
<div class="ttc" id="asample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fa50e4a2b43c258e559fa9d252275131ce"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa50e4a2b43c258e559fa9d252275131ce">PA_SAMPLE_S16LE</a></div><div class="ttdeci">@ PA_SAMPLE_S16LE</div><div class="ttdoc">Signed 16 Bit PCM, little endian (PC)</div><div class="ttdef"><b>Definition:</b> sample.h:144</div></div>
<div class="ttc" id="asample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fa6d91d680c240fde8ae3cdafa9900c055"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa6d91d680c240fde8ae3cdafa9900c055">PA_SAMPLE_S24_32LE</a></div><div class="ttdeci">@ PA_SAMPLE_S24_32LE</div><div class="ttdoc">Signed 24 Bit PCM in LSB of 32 Bit words, little endian (PC).</div><div class="ttdef"><b>Definition:</b> sample.h:168</div></div>
<div class="ttc" id="asample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fa783cb88f5021ff01fa7ba6d1c2bee84c"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa783cb88f5021ff01fa7ba6d1c2bee84c">PA_SAMPLE_S16BE</a></div><div class="ttdeci">@ PA_SAMPLE_S16BE</div><div class="ttdoc">Signed 16 Bit PCM, big endian.</div><div class="ttdef"><b>Definition:</b> sample.h:147</div></div>
<div class="ttc" id="asample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fa83116fc70f8577fdcf694474a60c2e1f"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa83116fc70f8577fdcf694474a60c2e1f">PA_SAMPLE_ULAW</a></div><div class="ttdeci">@ PA_SAMPLE_ULAW</div><div class="ttdoc">8 Bit mu-Law</div><div class="ttdef"><b>Definition:</b> sample.h:141</div></div>
<div class="ttc" id="asample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05faa6fe0e0623f9e2204c63c293f13597a1"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faa6fe0e0623f9e2204c63c293f13597a1">PA_SAMPLE_MAX</a></div><div class="ttdeci">@ PA_SAMPLE_MAX</div><div class="ttdoc">Upper limit of valid sample types.</div><div class="ttdef"><b>Definition:</b> sample.h:178</div></div>
<div class="ttc" id="asample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05faab50478dbb74cceddcb254928646a0c7"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faab50478dbb74cceddcb254928646a0c7">PA_SAMPLE_S24LE</a></div><div class="ttdeci">@ PA_SAMPLE_S24LE</div><div class="ttdoc">Signed 24 Bit PCM packed, little endian (PC).</div><div class="ttdef"><b>Definition:</b> sample.h:162</div></div>
<div class="ttc" id="asample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05faadff0a924aee5c95c7fdd923c56621b6"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faadff0a924aee5c95c7fdd923c56621b6">PA_SAMPLE_S24BE</a></div><div class="ttdeci">@ PA_SAMPLE_S24BE</div><div class="ttdoc">Signed 24 Bit PCM packed, big endian.</div><div class="ttdef"><b>Definition:</b> sample.h:165</div></div>
<div class="ttc" id="asample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05facd9ce7bf2cc5d2c4f72a59b9ae0bef89"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05facd9ce7bf2cc5d2c4f72a59b9ae0bef89">PA_SAMPLE_S24_32BE</a></div><div class="ttdeci">@ PA_SAMPLE_S24_32BE</div><div class="ttdoc">Signed 24 Bit PCM in LSB of 32 Bit words, big endian.</div><div class="ttdef"><b>Definition:</b> sample.h:171</div></div>
<div class="ttc" id="asample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fad2f6c96c4f0cd2a841fbe4840488b548"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fad2f6c96c4f0cd2a841fbe4840488b548">PA_SAMPLE_FLOAT32LE</a></div><div class="ttdeci">@ PA_SAMPLE_FLOAT32LE</div><div class="ttdoc">32 Bit IEEE floating point, little endian (PC), range -1.0 to 1.0</div><div class="ttdef"><b>Definition:</b> sample.h:150</div></div>
<div class="ttc" id="asample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05faf81ba0a2b599c490228f619e2a8d3b0e"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faf81ba0a2b599c490228f619e2a8d3b0e">PA_SAMPLE_S32BE</a></div><div class="ttdeci">@ PA_SAMPLE_S32BE</div><div class="ttdoc">Signed 32 Bit PCM, big endian.</div><div class="ttdef"><b>Definition:</b> sample.h:159</div></div>
<div class="ttc" id="asample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fafe8a3cc049d2c9820efd8fea80e01e10"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fafe8a3cc049d2c9820efd8fea80e01e10">PA_SAMPLE_INVALID</a></div><div class="ttdeci">@ PA_SAMPLE_INVALID</div><div class="ttdoc">An invalid value.</div><div class="ttdef"><b>Definition:</b> sample.h:181</div></div>
<div class="ttc" id="asample_8h_html_a3dd4815bbd51d5467b40e28d05ad948d"><div class="ttname"><a href="sample_8h.html#a3dd4815bbd51d5467b40e28d05ad948d">pa_sample_spec_snprint</a></div><div class="ttdeci">char * pa_sample_spec_snprint(char *s, size_t l, const pa_sample_spec *spec)</div><div class="ttdoc">Pretty print a sample type specification to a string.</div></div>
<div class="ttc" id="asample_8h_html_a46b2c919b75efbb2b3c3d703ba57fdf6"><div class="ttname"><a href="sample_8h.html#a46b2c919b75efbb2b3c3d703ba57fdf6">pa_sample_size_of_format</a></div><div class="ttdeci">size_t pa_sample_size_of_format(pa_sample_format_t f) PA_GCC_PURE</div><div class="ttdoc">Similar to pa_sample_size() but take a sample format instead of a full sample spec.</div></div>
<div class="ttc" id="asample_8h_html_a4992ec70d79de601c6f8f6cc5cab8e59"><div class="ttname"><a href="sample_8h.html#a4992ec70d79de601c6f8f6cc5cab8e59">pa_bytes_snprint</a></div><div class="ttdeci">char * pa_bytes_snprint(char *s, size_t l, unsigned v)</div><div class="ttdoc">Pretty print a byte size value (i.e. "2.5 MiB").</div></div>
<div class="ttc" id="asample_8h_html_a50d62a8cdf47b930cba7413e7d553053"><div class="ttname"><a href="sample_8h.html#a50d62a8cdf47b930cba7413e7d553053">pa_sample_format_valid</a></div><div class="ttdeci">int pa_sample_format_valid(unsigned format) PA_GCC_PURE</div><div class="ttdoc">Return non-zero if the given integer is a valid sample format.</div></div>
<div class="ttc" id="asample_8h_html_a5d392d4cc38109670585708f5062c2fe"><div class="ttname"><a href="sample_8h.html#a5d392d4cc38109670585708f5062c2fe">pa_sample_spec_init</a></div><div class="ttdeci">pa_sample_spec * pa_sample_spec_init(pa_sample_spec *spec)</div><div class="ttdoc">Initialize the specified sample spec and return a pointer to it.</div></div>
<div class="ttc" id="asample_8h_html_a674c3449416e97b71a75feb64ca59ad4"><div class="ttname"><a href="sample_8h.html#a674c3449416e97b71a75feb64ca59ad4">pa_bytes_per_second</a></div><div class="ttdeci">size_t pa_bytes_per_second(const pa_sample_spec *spec) PA_GCC_PURE</div><div class="ttdoc">Return the amount of bytes that constitute playback of one second of audio, with the specified sample...</div></div>
<div class="ttc" id="asample_8h_html_a70804b50d5507f9a7680d4e809e337ed"><div class="ttname"><a href="sample_8h.html#a70804b50d5507f9a7680d4e809e337ed">pa_sample_format_to_string</a></div><div class="ttdeci">const char * pa_sample_format_to_string(pa_sample_format_t f) PA_GCC_PURE</div><div class="ttdoc">Return a descriptive string for the specified sample format.</div></div>
<div class="ttc" id="asample_8h_html_a815497e438819abde8efd477e4430ca2"><div class="ttname"><a href="sample_8h.html#a815497e438819abde8efd477e4430ca2">pa_channels_valid</a></div><div class="ttdeci">int pa_channels_valid(uint8_t channels) PA_GCC_PURE</div><div class="ttdoc">Return non-zero if the channel count is within the supported range.</div></div>
<div class="ttc" id="asample_8h_html_a8173354fab0b323c172eeff97b2fa54f"><div class="ttname"><a href="sample_8h.html#a8173354fab0b323c172eeff97b2fa54f">pa_sample_format_is_le</a></div><div class="ttdeci">int pa_sample_format_is_le(pa_sample_format_t f) PA_GCC_PURE</div><div class="ttdoc">Returns 1 when the specified format is little endian, 0 when big endian.</div></div>
<div class="ttc" id="asample_8h_html_a885df3b973773f0dccbbec6bc6777f89"><div class="ttname"><a href="sample_8h.html#a885df3b973773f0dccbbec6bc6777f89">pa_usec_t</a></div><div class="ttdeci">uint64_t pa_usec_t</div><div class="ttdoc">Type for usec specifications (unsigned).</div><div class="ttdef"><b>Definition:</b> sample.h:264</div></div>
<div class="ttc" id="asample_8h_html_a914d67463e4e625309bed7230b5d32b5"><div class="ttname"><a href="sample_8h.html#a914d67463e4e625309bed7230b5d32b5">pa_sample_format_t</a></div><div class="ttdeci">enum pa_sample_format pa_sample_format_t</div><div class="ttdoc">Sample format.</div></div>
<div class="ttc" id="asample_8h_html_aa4fb3c574f13c657b8a0e554ebab52c9"><div class="ttname"><a href="sample_8h.html#aa4fb3c574f13c657b8a0e554ebab52c9">pa_sample_format_is_be</a></div><div class="ttdeci">int pa_sample_format_is_be(pa_sample_format_t f) PA_GCC_PURE</div><div class="ttdoc">Returns 1 when the specified format is big endian, 0 when little endian.</div></div>
<div class="ttc" id="asample_8h_html_aa941cbdb65f1f0265a1d165bc14db034"><div class="ttname"><a href="sample_8h.html#aa941cbdb65f1f0265a1d165bc14db034">pa_usec_to_bytes</a></div><div class="ttdeci">size_t pa_usec_to_bytes(pa_usec_t t, const pa_sample_spec *spec) PA_GCC_PURE</div><div class="ttdoc">Calculates the size of a buffer required, for playback duration of the time specified,...</div></div>
<div class="ttc" id="asample_8h_html_aae286d84c2975248f65f804d4c24ef39"><div class="ttname"><a href="sample_8h.html#aae286d84c2975248f65f804d4c24ef39">pa_sample_size</a></div><div class="ttdeci">size_t pa_sample_size(const pa_sample_spec *spec) PA_GCC_PURE</div><div class="ttdoc">Return the size of a sample with the specific sample type.</div></div>
<div class="ttc" id="asample_8h_html_ab3c5f4af357686fdc7df46c9581154bd"><div class="ttname"><a href="sample_8h.html#ab3c5f4af357686fdc7df46c9581154bd">pa_bytes_to_usec</a></div><div class="ttdeci">pa_usec_t pa_bytes_to_usec(uint64_t length, const pa_sample_spec *spec) PA_GCC_PURE</div><div class="ttdoc">Calculate the time it would take to play a buffer of the specified size with the specified sample typ...</div></div>
<div class="ttc" id="asample_8h_html_ac4c2262bf88bd90fc68767e69fb6810c"><div class="ttname"><a href="sample_8h.html#ac4c2262bf88bd90fc68767e69fb6810c">pa_sample_spec_equal</a></div><div class="ttdeci">int pa_sample_spec_equal(const pa_sample_spec *a, const pa_sample_spec *b) PA_GCC_PURE</div><div class="ttdoc">Return non-zero when the two sample type specifications match.</div></div>
<div class="ttc" id="asample_8h_html_ad4d9ec4799070844b8e0ef60a1d17dbf"><div class="ttname"><a href="sample_8h.html#ad4d9ec4799070844b8e0ef60a1d17dbf">pa_sample_spec</a></div><div class="ttdeci">struct pa_sample_spec pa_sample_spec</div><div class="ttdoc">A sample format and attribute specification.</div></div>
<div class="ttc" id="asample_8h_html_aed7a371985734a98d5d40ab0624aed09"><div class="ttname"><a href="sample_8h.html#aed7a371985734a98d5d40ab0624aed09">pa_sample_rate_valid</a></div><div class="ttdeci">int pa_sample_rate_valid(uint32_t rate) PA_GCC_PURE</div><div class="ttdoc">Return non-zero if the rate is within the supported range.</div></div>
<div class="ttc" id="astructpa__sample__spec_html"><div class="ttname"><a href="structpa__sample__spec.html">pa_sample_spec</a></div><div class="ttdoc">A sample format and attribute specification.</div><div class="ttdef"><b>Definition:</b> sample.h:252</div></div>
<div class="ttc" id="astructpa__sample__spec_html_a4fd5a1ef48c1cbea95a94b20a5cc02b0"><div class="ttname"><a href="structpa__sample__spec.html#a4fd5a1ef48c1cbea95a94b20a5cc02b0">pa_sample_spec::rate</a></div><div class="ttdeci">uint32_t rate</div><div class="ttdoc">The sample rate.</div><div class="ttdef"><b>Definition:</b> sample.h:256</div></div>
<div class="ttc" id="astructpa__sample__spec_html_a625155d20d7e50a3808b889e314d25fa"><div class="ttname"><a href="structpa__sample__spec.html#a625155d20d7e50a3808b889e314d25fa">pa_sample_spec::channels</a></div><div class="ttdeci">uint8_t channels</div><div class="ttdoc">Audio channels.</div><div class="ttdef"><b>Definition:</b> sample.h:259</div></div>
<div class="ttc" id="astructpa__sample__spec_html_a6f37954f1b7ac9d9bff4683171a10a99"><div class="ttname"><a href="structpa__sample__spec.html#a6f37954f1b7ac9d9bff4683171a10a99">pa_sample_spec::format</a></div><div class="ttdeci">pa_sample_format_t format</div><div class="ttdoc">The sample format.</div><div class="ttdef"><b>Definition:</b> sample.h:253</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_ec5b0a79aff2db41fe5d1b9326f09c28.html">pulse</a></li><li class="navelem"><a class="el" href="sample_8h.html">sample.h</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
</ul>
</div>
</body>
</html>