<!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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.13"/> <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> <script type="text/javascript"> $(document).ready(initResizable); </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">10.0.0-1.1.mga6</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.13 --> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> $(function() { initMenu('',false,false,'search.php','Search'); }); </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"> $(document).ready(function(){initNavTree('sample_8h_source.html','');}); </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 <<a class="code" href="version_8h.html">pulse/version.h</a>></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"><a class="line" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa40e5414deb5fbd486c2929e6993a5544"> 135</a></span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa40e5414deb5fbd486c2929e6993a5544">PA_SAMPLE_U8</a>,</div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa267f6542eb6f66ca61c4cccf61326522"> 138</a></span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa267f6542eb6f66ca61c4cccf61326522">PA_SAMPLE_ALAW</a>,</div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa83116fc70f8577fdcf694474a60c2e1f"> 141</a></span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa83116fc70f8577fdcf694474a60c2e1f">PA_SAMPLE_ULAW</a>,</div><div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa50e4a2b43c258e559fa9d252275131ce"> 144</a></span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa50e4a2b43c258e559fa9d252275131ce">PA_SAMPLE_S16LE</a>,</div><div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa783cb88f5021ff01fa7ba6d1c2bee84c"> 147</a></span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa783cb88f5021ff01fa7ba6d1c2bee84c">PA_SAMPLE_S16BE</a>,</div><div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fad2f6c96c4f0cd2a841fbe4840488b548"> 150</a></span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fad2f6c96c4f0cd2a841fbe4840488b548">PA_SAMPLE_FLOAT32LE</a>,</div><div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa3550123d5ef697b349edea2ddf61d6b4"> 153</a></span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa3550123d5ef697b349edea2ddf61d6b4">PA_SAMPLE_FLOAT32BE</a>,</div><div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa3eb5213ed7a0887b5dcd28cfc97e3457"> 156</a></span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa3eb5213ed7a0887b5dcd28cfc97e3457">PA_SAMPLE_S32LE</a>,</div><div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faf81ba0a2b599c490228f619e2a8d3b0e"> 159</a></span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faf81ba0a2b599c490228f619e2a8d3b0e">PA_SAMPLE_S32BE</a>,</div><div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faab50478dbb74cceddcb254928646a0c7"> 162</a></span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faab50478dbb74cceddcb254928646a0c7">PA_SAMPLE_S24LE</a>,</div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faadff0a924aee5c95c7fdd923c56621b6"> 165</a></span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faadff0a924aee5c95c7fdd923c56621b6">PA_SAMPLE_S24BE</a>,</div><div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa6d91d680c240fde8ae3cdafa9900c055"> 168</a></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"><a class="line" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05facd9ce7bf2cc5d2c4f72a59b9ae0bef89"> 171</a></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"><a class="line" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faa6fe0e0623f9e2204c63c293f13597a1"> 174</a></span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faa6fe0e0623f9e2204c63c293f13597a1">PA_SAMPLE_MAX</a>,</div><div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fafe8a3cc049d2c9820efd8fea80e01e10"> 177</a></span>  <a class="code" href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fafe8a3cc049d2c9820efd8fea80e01e10">PA_SAMPLE_INVALID</a> = -1</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> } <a class="code" href="sample_8h.html#a41051ceaa5cfbe60c9b176deb7bfed0e">pa_sample_format_t</a>;</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> </div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="preprocessor">#ifdef WORDS_BIGENDIAN</span></div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="preprocessor">#define PA_SAMPLE_S16NE PA_SAMPLE_S16BE</span></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">#define PA_SAMPLE_FLOAT32NE PA_SAMPLE_FLOAT32BE</span></div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="preprocessor">#define PA_SAMPLE_S32NE PA_SAMPLE_S32BE</span></div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="preprocessor">#define PA_SAMPLE_S24NE PA_SAMPLE_S24BE</span></div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span> </div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="preprocessor">#define PA_SAMPLE_S24_32NE PA_SAMPLE_S24_32BE</span></div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span> </div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="preprocessor">#define PA_SAMPLE_S16RE PA_SAMPLE_S16LE</span></div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span> </div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="preprocessor">#define PA_SAMPLE_FLOAT32RE PA_SAMPLE_FLOAT32LE</span></div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span> </div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="preprocessor">#define PA_SAMPLE_S32RE PA_SAMPLE_S32LE</span></div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span> </div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="preprocessor">#define PA_SAMPLE_S24RE PA_SAMPLE_S24LE</span></div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span> </div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="preprocessor">#define PA_SAMPLE_S24_32RE PA_SAMPLE_S24_32LE</span></div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span> </div><div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="sample_8h.html#a292c1d8ebd4ca0de1d5d5379ee7be38a"> 205</a></span> <span class="preprocessor">#define PA_SAMPLE_S16NE PA_SAMPLE_S16LE</span></div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span> </div><div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="sample_8h.html#a25befbdbf9fdc57012ce00dcc1756eac"> 207</a></span> <span class="preprocessor">#define PA_SAMPLE_FLOAT32NE PA_SAMPLE_FLOAT32LE</span></div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> </div><div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="sample_8h.html#af5b3efe108944c746a07128d9f24c889"> 209</a></span> <span class="preprocessor">#define PA_SAMPLE_S32NE PA_SAMPLE_S32LE</span></div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> </div><div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="sample_8h.html#a095cd643a682ad1e55205283c42f9aa9"> 211</a></span> <span class="preprocessor">#define PA_SAMPLE_S24NE PA_SAMPLE_S24LE</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span> </div><div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="sample_8h.html#afaf7880f4fa75428bad1d458316e030e"> 213</a></span> <span class="preprocessor">#define PA_SAMPLE_S24_32NE PA_SAMPLE_S24_32LE</span></div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> </div><div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="sample_8h.html#a688b20beba239784f7d92b79a626267a"> 216</a></span> <span class="preprocessor">#define PA_SAMPLE_S16RE PA_SAMPLE_S16BE</span></div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span> </div><div class="line"><a name="l00218"></a><span class="lineno"><a class="line" href="sample_8h.html#aa07717de5712b215af265b35d9daee78"> 218</a></span> <span class="preprocessor">#define PA_SAMPLE_FLOAT32RE PA_SAMPLE_FLOAT32BE</span></div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span> </div><div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="sample_8h.html#ac9bfd0ece22174acad5eb021ff159a61"> 220</a></span> <span class="preprocessor">#define PA_SAMPLE_S32RE PA_SAMPLE_S32BE</span></div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span> </div><div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="sample_8h.html#adcdf168f62fd7a27705de50058c6bd5c"> 222</a></span> <span class="preprocessor">#define PA_SAMPLE_S24RE PA_SAMPLE_S24BE</span></div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span> </div><div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="sample_8h.html#addb0fe697d3b6a8ce8c13fb711253630"> 224</a></span> <span class="preprocessor">#define PA_SAMPLE_S24_32RE PA_SAMPLE_S24_32BE</span></div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span> </div><div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="sample_8h.html#adce65a384a3af05a2481aff5fd2632fb"> 228</a></span> <span class="preprocessor">#define PA_SAMPLE_FLOAT32 PA_SAMPLE_FLOAT32NE</span></div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span> </div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="comment">/* Allow clients to check with #ifdef for these sample formats */</span></div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <span class="preprocessor">#define PA_SAMPLE_U8 PA_SAMPLE_U8</span></div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="preprocessor">#define PA_SAMPLE_ALAW PA_SAMPLE_ALAW</span></div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="preprocessor">#define PA_SAMPLE_ULAW PA_SAMPLE_ULAW</span></div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="preprocessor">#define PA_SAMPLE_S16LE PA_SAMPLE_S16LE</span></div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="preprocessor">#define PA_SAMPLE_S16BE PA_SAMPLE_S16BE</span></div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> <span class="preprocessor">#define PA_SAMPLE_FLOAT32LE PA_SAMPLE_FLOAT32LE</span></div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="preprocessor">#define PA_SAMPLE_FLOAT32BE PA_SAMPLE_FLOAT32BE</span></div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="preprocessor">#define PA_SAMPLE_S32LE PA_SAMPLE_S32LE</span></div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span> <span class="preprocessor">#define PA_SAMPLE_S32BE PA_SAMPLE_S32BE</span></div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="preprocessor">#define PA_SAMPLE_S24LE PA_SAMPLE_S24LE</span></div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="preprocessor">#define PA_SAMPLE_S24BE PA_SAMPLE_S24BE</span></div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="preprocessor">#define PA_SAMPLE_S24_32LE PA_SAMPLE_S24_32LE</span></div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="preprocessor">#define PA_SAMPLE_S24_32BE PA_SAMPLE_S24_32BE</span></div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span> </div><div class="line"><a name="l00248"></a><span class="lineno"><a class="line" href="structpa__sample__spec.html"> 248</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="l00249"></a><span class="lineno"><a class="line" href="structpa__sample__spec.html#a6f37954f1b7ac9d9bff4683171a10a99"> 249</a></span>  <a class="code" href="sample_8h.html#a41051ceaa5cfbe60c9b176deb7bfed0e">pa_sample_format_t</a> <a class="code" href="structpa__sample__spec.html#a6f37954f1b7ac9d9bff4683171a10a99">format</a>;</div><div class="line"><a name="l00252"></a><span class="lineno"><a class="line" href="structpa__sample__spec.html#a4fd5a1ef48c1cbea95a94b20a5cc02b0"> 252</a></span>  uint32_t <a class="code" href="structpa__sample__spec.html#a4fd5a1ef48c1cbea95a94b20a5cc02b0">rate</a>;</div><div class="line"><a name="l00255"></a><span class="lineno"><a class="line" href="structpa__sample__spec.html#a625155d20d7e50a3808b889e314d25fa"> 255</a></span>  uint8_t <a class="code" href="structpa__sample__spec.html#a625155d20d7e50a3808b889e314d25fa">channels</a>;</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span> } <a class="code" href="sample_8h.html#a0ea4218994217063e138a29397c09636">pa_sample_spec</a>;</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span> </div><div class="line"><a name="l00260"></a><span class="lineno"><a class="line" href="sample_8h.html#a885df3b973773f0dccbbec6bc6777f89"> 260</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="l00261"></a><span class="lineno"> 261</span> </div><div class="line"><a name="l00263"></a><span class="lineno"> 263</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="l00264"></a><span class="lineno"> 264</span> </div><div class="line"><a name="l00266"></a><span class="lineno"> 266</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="l00267"></a><span class="lineno"> 267</span> </div><div class="line"><a name="l00269"></a><span class="lineno"> 269</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="l00270"></a><span class="lineno"> 270</span> </div><div class="line"><a name="l00273"></a><span class="lineno"> 273</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#a41051ceaa5cfbe60c9b176deb7bfed0e">pa_sample_format_t</a> f) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span> </div><div class="line"><a name="l00278"></a><span class="lineno"> 278</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="l00279"></a><span class="lineno"> 279</span> </div><div class="line"><a name="l00283"></a><span class="lineno"> 283</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="l00284"></a><span class="lineno"> 284</span> </div><div class="line"><a name="l00288"></a><span class="lineno"> 288</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="l00289"></a><span class="lineno"> 289</span> </div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span> <span class="keywordtype">int</span> <a class="code" href="sample_8h.html#a50d62a8cdf47b930cba7413e7d553053">pa_sample_format_valid</a>(<span class="keywordtype">unsigned</span> <a class="code" href="structpa__sample__spec.html#a6f37954f1b7ac9d9bff4683171a10a99">format</a>) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span> </div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span> <span class="keywordtype">int</span> <a class="code" href="sample_8h.html#aed7a371985734a98d5d40ab0624aed09">pa_sample_rate_valid</a>(uint32_t <a class="code" href="structpa__sample__spec.html#a4fd5a1ef48c1cbea95a94b20a5cc02b0">rate</a>) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span> </div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span> <span class="keywordtype">int</span> <a class="code" href="sample_8h.html#a815497e438819abde8efd477e4430ca2">pa_channels_valid</a>(uint8_t <a class="code" href="structpa__sample__spec.html#a625155d20d7e50a3808b889e314d25fa">channels</a>) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span> </div><div class="line"><a name="l00301"></a><span class="lineno"> 301</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="l00302"></a><span class="lineno"> 302</span> </div><div class="line"><a name="l00304"></a><span class="lineno"> 304</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="l00305"></a><span class="lineno"> 305</span> </div><div class="line"><a name="l00307"></a><span class="lineno"> 307</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#a41051ceaa5cfbe60c9b176deb7bfed0e">pa_sample_format_t</a> f) <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"> 310</span> <a class="code" href="sample_8h.html#a41051ceaa5cfbe60c9b176deb7bfed0e">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> *<a class="code" href="structpa__sample__spec.html#a6f37954f1b7ac9d9bff4683171a10a99">format</a>) <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="l00317"></a><span class="lineno"><a class="line" href="sample_8h.html#a61844a6fa4a5a91bbeca1049c4969bb8"> 317</a></span> <span class="preprocessor">#define PA_SAMPLE_SPEC_SNPRINT_MAX 32</span></div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span> </div><div class="line"><a name="l00320"></a><span class="lineno"> 320</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="l00321"></a><span class="lineno"> 321</span> </div><div class="line"><a name="l00327"></a><span class="lineno"><a class="line" href="sample_8h.html#af61a5e667357b7f9568a7b283d517a6f"> 327</a></span> <span class="preprocessor">#define PA_BYTES_SNPRINT_MAX 11</span></div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span> </div><div class="line"><a name="l00330"></a><span class="lineno"> 330</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="l00331"></a><span class="lineno"> 331</span> </div><div class="line"><a name="l00334"></a><span class="lineno"> 334</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#a41051ceaa5cfbe60c9b176deb7bfed0e">pa_sample_format_t</a> f) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span> </div><div class="line"><a name="l00338"></a><span class="lineno"> 338</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#a41051ceaa5cfbe60c9b176deb7bfed0e">pa_sample_format_t</a> f) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548">PA_GCC_PURE</a>;</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span> </div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span> <span class="preprocessor">#ifdef WORDS_BIGENDIAN</span></div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span> <span class="preprocessor">#define pa_sample_format_is_ne(f) pa_sample_format_is_be(f)</span></div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span> <span class="preprocessor">#define pa_sample_format_is_re(f) pa_sample_format_is_le(f)</span></div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span> </div><div class="line"><a name="l00346"></a><span class="lineno"><a class="line" href="sample_8h.html#a09a7ac737ee5b9bbbd8f859d96cbf1c9"> 346</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="l00347"></a><span class="lineno"> 347</span> </div><div class="line"><a name="l00349"></a><span class="lineno"><a class="line" href="sample_8h.html#a2bd6ce1c4bb88001b58181b407da6b79"> 349</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="l00350"></a><span class="lineno"> 350</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span> </div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span> PA_C_DECL_END</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span> </div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="sample_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="structpa__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:248</div></div> <div class="ttc" id="sample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fa267f6542eb6f66ca61c4cccf61326522"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa267f6542eb6f66ca61c4cccf61326522">PA_SAMPLE_ALAW</a></div><div class="ttdoc">8 Bit a-Law </div><div class="ttdef"><b>Definition:</b> sample.h:138</div></div> <div class="ttc" id="sample_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="sample_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="sample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05faab50478dbb74cceddcb254928646a0c7"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faab50478dbb74cceddcb254928646a0c7">PA_SAMPLE_S24LE</a></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="sample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fa783cb88f5021ff01fa7ba6d1c2bee84c"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa783cb88f5021ff01fa7ba6d1c2bee84c">PA_SAMPLE_S16BE</a></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="sample_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="sample_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="sample_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="structpa__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:255</div></div> <div class="ttc" id="sample_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:260</div></div> <div class="ttc" id="sample_8h_html_a41051ceaa5cfbe60c9b176deb7bfed0e"><div class="ttname"><a href="sample_8h.html#a41051ceaa5cfbe60c9b176deb7bfed0e">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="gccmacro_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&#39;s return value depends only the arguments list and global state. </div><div class="ttdef"><b>Definition:</b> gccmacro.h:73</div></div> <div class="ttc" id="gccmacro_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="sample_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="structpa__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:252</div></div> <div class="ttc" id="sample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fa6d91d680c240fde8ae3cdafa9900c055"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa6d91d680c240fde8ae3cdafa9900c055">PA_SAMPLE_S24_32LE</a></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="sample_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">Return 1 when the specified format is big endian, return -1 when endianness does not apply to this fo...</div></div> <div class="ttc" id="sample_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="sample_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="sample_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 playback of a second of audio with the specified sample type takes...</div></div> <div class="ttc" id="version_8h_html"><div class="ttname"><a href="version_8h.html">version.h</a></div><div class="ttdoc">Define header version. </div></div> <div class="ttc" id="sample_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 the specified bytes take to play with the specified sample type. </div></div> <div class="ttc" id="sample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fafe8a3cc049d2c9820efd8fea80e01e10"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fafe8a3cc049d2c9820efd8fea80e01e10">PA_SAMPLE_INVALID</a></div><div class="ttdoc">An invalid value. </div><div class="ttdef"><b>Definition:</b> sample.h:177</div></div> <div class="ttc" id="sample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05faa6fe0e0623f9e2204c63c293f13597a1"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faa6fe0e0623f9e2204c63c293f13597a1">PA_SAMPLE_MAX</a></div><div class="ttdoc">Upper limit of valid sample types. </div><div class="ttdef"><b>Definition:</b> sample.h:174</div></div> <div class="ttc" id="sample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fa83116fc70f8577fdcf694474a60c2e1f"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa83116fc70f8577fdcf694474a60c2e1f">PA_SAMPLE_ULAW</a></div><div class="ttdoc">8 Bit mu-Law </div><div class="ttdef"><b>Definition:</b> sample.h:141</div></div> <div class="ttc" id="sample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fa3550123d5ef697b349edea2ddf61d6b4"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa3550123d5ef697b349edea2ddf61d6b4">PA_SAMPLE_FLOAT32BE</a></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="sample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fa50e4a2b43c258e559fa9d252275131ce"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa50e4a2b43c258e559fa9d252275131ce">PA_SAMPLE_S16LE</a></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="sample_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="sample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fa40e5414deb5fbd486c2929e6993a5544"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa40e5414deb5fbd486c2929e6993a5544">PA_SAMPLE_U8</a></div><div class="ttdoc">Unsigned 8 Bit PCM. </div><div class="ttdef"><b>Definition:</b> sample.h:135</div></div> <div class="ttc" id="sample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fa3eb5213ed7a0887b5dcd28cfc97e3457"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fa3eb5213ed7a0887b5dcd28cfc97e3457">PA_SAMPLE_S32LE</a></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="sample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05faadff0a924aee5c95c7fdd923c56621b6"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faadff0a924aee5c95c7fdd923c56621b6">PA_SAMPLE_S24BE</a></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="sample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05facd9ce7bf2cc5d2c4f72a59b9ae0bef89"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05facd9ce7bf2cc5d2c4f72a59b9ae0bef89">PA_SAMPLE_S24_32BE</a></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="sample_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="sample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05fad2f6c96c4f0cd2a841fbe4840488b548"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05fad2f6c96c4f0cd2a841fbe4840488b548">PA_SAMPLE_FLOAT32LE</a></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="sample_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="sample_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 number of bytes that are required for the specified time. </div></div> <div class="ttc" id="sample_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="sample_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="sample_8h_html_a3c622fc51f4fc6ebfdcc7b454ac9c05faf81ba0a2b599c490228f619e2a8d3b0e"><div class="ttname"><a href="sample_8h.html#a3c622fc51f4fc6ebfdcc7b454ac9c05faf81ba0a2b599c490228f619e2a8d3b0e">PA_SAMPLE_S32BE</a></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="structpa__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:249</div></div> <div class="ttc" id="sample_8h_html_a0ea4218994217063e138a29397c09636"><div class="ttname"><a href="sample_8h.html#a0ea4218994217063e138a29397c09636">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="sample_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">Return 1 when the specified format is little endian, return -1 when endianness does not apply to this...</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="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> </ul> </div> </body> </html>