<!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: format.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('format_8h_source.html','');}); </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">format.h</div> </div> </div><!--header--> <div class="contents"> <a href="format_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 fooformathfoo</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define fooformathfoo</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 2011 Intel Corporation</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> Copyright 2011 Collabora Multimedia</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> Copyright 2011 Arun Raghavan <arun.raghavan@collabora.co.uk></span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"></span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> PulseAudio is free software; you can redistribute it and/or modify</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> it under the terms of the GNU Lesser General Public License as published</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> by the Free Software Foundation; either version 2.1 of the License,</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> or (at your option) any later version.</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"></span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> PulseAudio is distributed in the hope that it will be useful, but</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> General Public License for more details.</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> You should have received a copy of the GNU Lesser General Public License</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">***/</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <pulse/cdecl.h></span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <<a class="code" href="gccmacro_8h.html">pulse/gccmacro.h</a>></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <<a class="code" href="proplist_8h.html">pulse/proplist.h</a>></span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <<a class="code" href="sample_8h.html">pulse/sample.h</a>></span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <<a class="code" href="channelmap_8h.html">pulse/channelmap.h</a>></span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> PA_C_DECL_BEGIN</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="format_8h.html#a708ed76801eb84544075e21fe8a07652"> 37</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="format_8h.html#a708ed76801eb84544075e21fe8a07652">pa_encoding</a> {</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="format_8h.html#a708ed76801eb84544075e21fe8a07652a1314110ee09c543c975b3ebdffe5bf70"> 38</a></span>  <a class="code" href="format_8h.html#a708ed76801eb84544075e21fe8a07652a1314110ee09c543c975b3ebdffe5bf70">PA_ENCODING_ANY</a>,</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="format_8h.html#a708ed76801eb84544075e21fe8a07652af5b3680520cee5f542b4d3d1b1c4e71f"> 41</a></span>  <a class="code" href="format_8h.html#a708ed76801eb84544075e21fe8a07652af5b3680520cee5f542b4d3d1b1c4e71f">PA_ENCODING_PCM</a>,</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="format_8h.html#a708ed76801eb84544075e21fe8a07652af570614498d7843f30f2860d14a8318a"> 44</a></span>  <a class="code" href="format_8h.html#a708ed76801eb84544075e21fe8a07652af570614498d7843f30f2860d14a8318a">PA_ENCODING_AC3_IEC61937</a>,</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="format_8h.html#a708ed76801eb84544075e21fe8a07652a080fa22cf987bdc4b64328984693d9ba"> 47</a></span>  <a class="code" href="format_8h.html#a708ed76801eb84544075e21fe8a07652a080fa22cf987bdc4b64328984693d9ba">PA_ENCODING_EAC3_IEC61937</a>,</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="format_8h.html#a708ed76801eb84544075e21fe8a07652a37ea55639a90b284526d4c29c86737e5"> 50</a></span>  <a class="code" href="format_8h.html#a708ed76801eb84544075e21fe8a07652a37ea55639a90b284526d4c29c86737e5">PA_ENCODING_MPEG_IEC61937</a>,</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="format_8h.html#a708ed76801eb84544075e21fe8a07652ad97283df564ca82862896059fa5877ce"> 53</a></span>  <a class="code" href="format_8h.html#a708ed76801eb84544075e21fe8a07652ad97283df564ca82862896059fa5877ce">PA_ENCODING_DTS_IEC61937</a>,</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="format_8h.html#a708ed76801eb84544075e21fe8a07652a96bfd1eb3dea46d8f05abac6cf060aec"> 56</a></span>  <a class="code" href="format_8h.html#a708ed76801eb84544075e21fe8a07652a96bfd1eb3dea46d8f05abac6cf060aec">PA_ENCODING_MPEG2_AAC_IEC61937</a>,</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="format_8h.html#a708ed76801eb84544075e21fe8a07652a6183eb06c06e2d708b7423da49824bd4"> 59</a></span>  <a class="code" href="format_8h.html#a708ed76801eb84544075e21fe8a07652a6183eb06c06e2d708b7423da49824bd4">PA_ENCODING_MAX</a>,</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="format_8h.html#a708ed76801eb84544075e21fe8a07652a1f9111d9e6ce5a7d631a9cf256cded52"> 62</a></span>  <a class="code" href="format_8h.html#a708ed76801eb84544075e21fe8a07652a1f9111d9e6ce5a7d631a9cf256cded52">PA_ENCODING_INVALID</a> = -1,</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> } <a class="code" href="format_8h.html#a078cbc9162779d7ea206b0546508a71b">pa_encoding_t</a>;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="preprocessor">#define PA_ENCODING_ANY PA_ENCODING_ANY</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="preprocessor">#define PA_ENCODING_PCM PA_ENCODING_PCM</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="preprocessor">#define PA_ENCODING_AC3_IEC61937 PA_ENCODING_AC3_IEC61937</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="preprocessor">#define PA_ENCODING_EAC3_IEC61937 PA_ENCODING_EAC3_IEC61937</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="preprocessor">#define PA_ENCODING_MPEG_IEC61937 PA_ENCODING_MPEG_IEC61937</span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="preprocessor">#define PA_ENCODING_DTS_IEC61937 PA_ENCODING_DTS_IEC61937</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="preprocessor">#define PA_ENCODING_MPEG2_AAC_IEC61937 PA_ENCODING_MPEG2_AAC_IEC61937</span></div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="preprocessor">#define PA_ENCODING_MAX PA_ENCODING_MAX</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="preprocessor">#define PA_ENCODING_INVALID PA_ENCODING_INVALID</span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="format_8h.html#ab26d3d38076ec1253877b56bb6e4c5a1">pa_encoding_to_string</a>(<a class="code" href="format_8h.html#a078cbc9162779d7ea206b0546508a71b">pa_encoding_t</a> e) <a class="code" href="gccmacro_8h.html#a318a98dce3b37977670c87a74c173b16">PA_GCC_CONST</a>;</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <a class="code" href="format_8h.html#a078cbc9162779d7ea206b0546508a71b">pa_encoding_t</a> <a class="code" href="format_8h.html#ad96df235255893807a779cf986a322ba">pa_encoding_from_string</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *encoding);</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structpa__format__info.html"> 85</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structpa__format__info.html">pa_format_info</a> {</div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structpa__format__info.html#aa5a1263cd3a5d126e73be1a80aa81cf6"> 86</a></span>  <a class="code" href="format_8h.html#a078cbc9162779d7ea206b0546508a71b">pa_encoding_t</a> <a class="code" href="structpa__format__info.html#aa5a1263cd3a5d126e73be1a80aa81cf6">encoding</a>;</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structpa__format__info.html#a7780c0fae8324fbef3c81fb482103913"> 89</a></span>  <a class="code" href="proplist_8h.html#acdf756a6014b6fae3b358b2c934c3426">pa_proplist</a> *<a class="code" href="structpa__format__info.html#a7780c0fae8324fbef3c81fb482103913">plist</a>;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> } <a class="code" href="format_8h.html#aedc90e3d37d0b6af1ab8deb6234ee8e5">pa_format_info</a>;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <a class="code" href="structpa__format__info.html">pa_format_info</a>* <a class="code" href="format_8h.html#a656b51bb7c82883e4cad92b134625942">pa_format_info_new</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <a class="code" href="structpa__format__info.html">pa_format_info</a>* <a class="code" href="format_8h.html#adcb74d9b96e4e7f2bf446ccb59fe795b">pa_format_info_copy</a>(<span class="keyword">const</span> <a class="code" href="structpa__format__info.html">pa_format_info</a> *src);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="keywordtype">void</span> <a class="code" href="format_8h.html#ad4a85d0c897cda925339194a6afbf4f3">pa_format_info_free</a>(<a class="code" href="structpa__format__info.html">pa_format_info</a> *f);</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="keywordtype">int</span> <a class="code" href="format_8h.html#a9efd301cfd24b37737c6a2e2b47c9261">pa_format_info_valid</a>(<span class="keyword">const</span> <a class="code" href="structpa__format__info.html">pa_format_info</a> *f);</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="keywordtype">int</span> <a class="code" href="format_8h.html#a8c48d16d0851791265bdb33ce81b749b">pa_format_info_is_pcm</a>(<span class="keyword">const</span> <a class="code" href="structpa__format__info.html">pa_format_info</a> *f);</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="keywordtype">int</span> <a class="code" href="format_8h.html#a71d871a0d9c0624d17a6fe12be0a548a">pa_format_info_is_compatible</a>(<span class="keyword">const</span> <a class="code" href="structpa__format__info.html">pa_format_info</a> *first, <span class="keyword">const</span> <a class="code" href="structpa__format__info.html">pa_format_info</a> *second);</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="format_8h.html#a9d03b1f626df546dd2f281a561853fe3"> 122</a></span> <span class="preprocessor">#define PA_FORMAT_INFO_SNPRINT_MAX 256</span></div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> </div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="keywordtype">char</span> *<a class="code" href="format_8h.html#acebcc293f5e695a6c171d94e2d1f17a3">pa_format_info_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__format__info.html">pa_format_info</a> *f);</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <a class="code" href="structpa__format__info.html">pa_format_info</a>* <a class="code" href="format_8h.html#ab8df9952b866161e257807dfe5da4357">pa_format_info_from_string</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *str);</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <a class="code" href="structpa__format__info.html">pa_format_info</a>* <a class="code" href="format_8h.html#a1cfd380549e94849b9bd29d43d62b593">pa_format_info_from_sample_spec</a>(<span class="keyword">const</span> <a class="code" href="structpa__sample__spec.html">pa_sample_spec</a> *ss, <span class="keyword">const</span> <a class="code" href="structpa__channel__map.html">pa_channel_map</a> *map);</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="keywordtype">int</span> <a class="code" href="format_8h.html#a092e9e20e51cd2b3b72acccc7d10ef15">pa_format_info_to_sample_spec</a>(<span class="keyword">const</span> <a class="code" href="structpa__format__info.html">pa_format_info</a> *f, <a class="code" href="structpa__sample__spec.html">pa_sample_spec</a> *ss, <a class="code" href="structpa__channel__map.html">pa_channel_map</a> *map);</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> </div><div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007"> 153</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007">pa_prop_type_t</a> {</div><div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007a10142fbf5a15bbdac6153afc1f3965bf"> 154</a></span>  <a class="code" href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007a10142fbf5a15bbdac6153afc1f3965bf">PA_PROP_TYPE_INT</a>,</div><div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007a5b7b6fc0c6064e1653109e2e239606f8"> 157</a></span>  <a class="code" href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007a5b7b6fc0c6064e1653109e2e239606f8">PA_PROP_TYPE_INT_RANGE</a>,</div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007ad045693657b6cbdf25a4f562b1a4b621"> 160</a></span>  <a class="code" href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007ad045693657b6cbdf25a4f562b1a4b621">PA_PROP_TYPE_INT_ARRAY</a>,</div><div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007a04e9b28bc24156fec65d0208eeffe35e"> 163</a></span>  <a class="code" href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007a04e9b28bc24156fec65d0208eeffe35e">PA_PROP_TYPE_STRING</a>,</div><div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007a4ab87daa27459bbed1cead84800135c8"> 166</a></span>  <a class="code" href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007a4ab87daa27459bbed1cead84800135c8">PA_PROP_TYPE_STRING_ARRAY</a>,</div><div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007adf3b133ae062ed88366c26d3645027c7"> 169</a></span>  <a class="code" href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007adf3b133ae062ed88366c26d3645027c7">PA_PROP_TYPE_INVALID</a> = -1,</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span> } <a class="code" href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007">pa_prop_type_t</a>;</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="preprocessor">#define PA_PROP_TYPE_INT PA_PROP_TYPE_INT</span></div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="preprocessor">#define PA_PROP_TYPE_INT_RANGE PA_PROP_TYPE_INT_RANGE</span></div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="preprocessor">#define PA_PROP_TYPE_INT_ARRAY PA_PROP_TYPE_INT_ARRAY</span></div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="preprocessor">#define PA_PROP_TYPE_STRING PA_PROP_TYPE_STRING</span></div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="preprocessor">#define PA_PROP_TYPE_STRING_ARRAY PA_PROP_TYPE_STRING_ARRAY</span></div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> <span class="preprocessor">#define PA_PROP_TYPE_INVALID PA_PROP_TYPE_INVALID</span></div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> </div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <a class="code" href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007">pa_prop_type_t</a> <a class="code" href="format_8h.html#a87728336c103aaac4c5e76d2c65f4cce">pa_format_info_get_prop_type</a>(<span class="keyword">const</span> <a class="code" href="structpa__format__info.html">pa_format_info</a> *f, <span class="keyword">const</span> <span class="keywordtype">char</span> *key);</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="keywordtype">int</span> <a class="code" href="format_8h.html#a385d73fe57a2c2dfd28e9eca48f6c408">pa_format_info_get_prop_int</a>(<span class="keyword">const</span> <a class="code" href="structpa__format__info.html">pa_format_info</a> *f, <span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keywordtype">int</span> *v);</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="keywordtype">int</span> <a class="code" href="format_8h.html#ab8e6eaecf82ee84f084b7654d938b9cb">pa_format_info_get_prop_int_range</a>(<span class="keyword">const</span> <a class="code" href="structpa__format__info.html">pa_format_info</a> *f, <span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keywordtype">int</span> *min, <span class="keywordtype">int</span> *max);</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="keywordtype">int</span> <a class="code" href="format_8h.html#a662935ca585b97d292336e638c2d2bb3">pa_format_info_get_prop_int_array</a>(<span class="keyword">const</span> <a class="code" href="structpa__format__info.html">pa_format_info</a> *f, <span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keywordtype">int</span> **values, <span class="keywordtype">int</span> *n_values);</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="keywordtype">int</span> <a class="code" href="format_8h.html#a8bb07a605cdfae5ada7918e01aa0872c">pa_format_info_get_prop_string</a>(<span class="keyword">const</span> <a class="code" href="structpa__format__info.html">pa_format_info</a> *f, <span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keywordtype">char</span> **v);</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="keywordtype">int</span> <a class="code" href="format_8h.html#a1c50248324fd57eb989ca898a5618fbe">pa_format_info_get_prop_string_array</a>(<span class="keyword">const</span> <a class="code" href="structpa__format__info.html">pa_format_info</a> *f, <span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keywordtype">char</span> ***values, <span class="keywordtype">int</span> *n_values);</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span> </div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="keywordtype">void</span> <a class="code" href="format_8h.html#a4e6c84b0e37e33cae25efd059d222d5c">pa_format_info_free_string_array</a>(<span class="keywordtype">char</span> **values, <span class="keywordtype">int</span> n_values);</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span> </div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="keywordtype">void</span> <a class="code" href="format_8h.html#a69567649133e4907c6a25e7baaa95d29">pa_format_info_set_prop_int</a>(<a class="code" href="structpa__format__info.html">pa_format_info</a> *f, <span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keywordtype">int</span> value);</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="keywordtype">void</span> <a class="code" href="format_8h.html#a422a3d83da63a6e778f1a40bc3540667">pa_format_info_set_prop_int_array</a>(<a class="code" href="structpa__format__info.html">pa_format_info</a> *f, <span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keyword">const</span> <span class="keywordtype">int</span> *values, <span class="keywordtype">int</span> n_values);</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="keywordtype">void</span> <a class="code" href="format_8h.html#a4faf1af2d146f848d1e31f276d4901c8">pa_format_info_set_prop_int_range</a>(<a class="code" href="structpa__format__info.html">pa_format_info</a> *f, <span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keywordtype">int</span> min, <span class="keywordtype">int</span> max);</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="keywordtype">void</span> <a class="code" href="format_8h.html#a3c0ad5ff976e2e3347b3bb98b0748b7a">pa_format_info_set_prop_string</a>(<a class="code" href="structpa__format__info.html">pa_format_info</a> *f, <span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keyword">const</span> <span class="keywordtype">char</span> *value);</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="keywordtype">void</span> <a class="code" href="format_8h.html#a5ae53ecf0d5b56a63aead1ff56f1cb25">pa_format_info_set_prop_string_array</a>(<a class="code" href="structpa__format__info.html">pa_format_info</a> *f, <span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keyword">const</span> <span class="keywordtype">char</span> **values, <span class="keywordtype">int</span> n_values);</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span> </div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span> <span class="keywordtype">void</span> <a class="code" href="format_8h.html#a6e43baade49ac428880361b10d66d08e">pa_format_info_set_sample_format</a>(<a class="code" href="structpa__format__info.html">pa_format_info</a> *f, <a class="code" href="sample_8h.html#a41051ceaa5cfbe60c9b176deb7bfed0e">pa_sample_format_t</a> sf);</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span> </div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="keywordtype">void</span> <a class="code" href="format_8h.html#a01cdeda2c082cf6a006b0b08102268c2">pa_format_info_set_rate</a>(<a class="code" href="structpa__format__info.html">pa_format_info</a> *f, <span class="keywordtype">int</span> rate);</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> </div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="keywordtype">void</span> <a class="code" href="format_8h.html#a6238546c60f370e8171b274feac7cb70">pa_format_info_set_channels</a>(<a class="code" href="structpa__format__info.html">pa_format_info</a> *f, <span class="keywordtype">int</span> channels);</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span> </div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span> <span class="keywordtype">void</span> <a class="code" href="format_8h.html#a2e6894e4e8bbb8ac23928f24d8d4b05c">pa_format_info_set_channel_map</a>(<a class="code" href="structpa__format__info.html">pa_format_info</a> *f, <span class="keyword">const</span> <a class="code" href="structpa__channel__map.html">pa_channel_map</a> *map);</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span> </div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span> PA_C_DECL_END</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span> </div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="format_8h_html_ab8df9952b866161e257807dfe5da4357"><div class="ttname"><a href="format_8h.html#ab8df9952b866161e257807dfe5da4357">pa_format_info_from_string</a></div><div class="ttdeci">pa_format_info * pa_format_info_from_string(const char *str)</div><div class="ttdoc">Parse a human-readable string of the form generated by pa_format_info_snprint() into a pa_format_info...</div></div> <div class="ttc" id="format_8h_html_adcb74d9b96e4e7f2bf446ccb59fe795b"><div class="ttname"><a href="format_8h.html#adcb74d9b96e4e7f2bf446ccb59fe795b">pa_format_info_copy</a></div><div class="ttdeci">pa_format_info * pa_format_info_copy(const pa_format_info *src)</div><div class="ttdoc">Returns a new pa_format_info struct and representing the same format as src. </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="format_8h_html_a1cfd380549e94849b9bd29d43d62b593"><div class="ttname"><a href="format_8h.html#a1cfd380549e94849b9bd29d43d62b593">pa_format_info_from_sample_spec</a></div><div class="ttdeci">pa_format_info * pa_format_info_from_sample_spec(const pa_sample_spec *ss, const pa_channel_map *map)</div><div class="ttdoc">Utility function to take a pa_sample_spec and generate the corresponding pa_format_info. </div></div> <div class="ttc" id="format_8h_html_a708ed76801eb84544075e21fe8a07652a96bfd1eb3dea46d8f05abac6cf060aec"><div class="ttname"><a href="format_8h.html#a708ed76801eb84544075e21fe8a07652a96bfd1eb3dea46d8f05abac6cf060aec">PA_ENCODING_MPEG2_AAC_IEC61937</a></div><div class="ttdoc">MPEG-2 AAC data encapsulated in IEC 61937 header/padding. </div><div class="ttdef"><b>Definition:</b> format.h:56</div></div> <div class="ttc" id="format_8h_html_a6238546c60f370e8171b274feac7cb70"><div class="ttname"><a href="format_8h.html#a6238546c60f370e8171b274feac7cb70">pa_format_info_set_channels</a></div><div class="ttdeci">void pa_format_info_set_channels(pa_format_info *f, int channels)</div><div class="ttdoc">Convenience method to set the number of channels as a property on the given format. </div></div> <div class="ttc" id="format_8h_html_a708ed76801eb84544075e21fe8a07652a080fa22cf987bdc4b64328984693d9ba"><div class="ttname"><a href="format_8h.html#a708ed76801eb84544075e21fe8a07652a080fa22cf987bdc4b64328984693d9ba">PA_ENCODING_EAC3_IEC61937</a></div><div class="ttdoc">EAC3 data encapsulated in IEC 61937 header/padding. </div><div class="ttdef"><b>Definition:</b> format.h:47</div></div> <div class="ttc" id="format_8h_html_ad4a85d0c897cda925339194a6afbf4f3"><div class="ttname"><a href="format_8h.html#ad4a85d0c897cda925339194a6afbf4f3">pa_format_info_free</a></div><div class="ttdeci">void pa_format_info_free(pa_format_info *f)</div><div class="ttdoc">Frees a pa_format_info structure. </div></div> <div class="ttc" id="format_8h_html_a3c0ad5ff976e2e3347b3bb98b0748b7a"><div class="ttname"><a href="format_8h.html#a3c0ad5ff976e2e3347b3bb98b0748b7a">pa_format_info_set_prop_string</a></div><div class="ttdeci">void pa_format_info_set_prop_string(pa_format_info *f, const char *key, const char *value)</div><div class="ttdoc">Sets a string property on the given format info. </div></div> <div class="ttc" id="structpa__format__info_html_aa5a1263cd3a5d126e73be1a80aa81cf6"><div class="ttname"><a href="structpa__format__info.html#aa5a1263cd3a5d126e73be1a80aa81cf6">pa_format_info::encoding</a></div><div class="ttdeci">pa_encoding_t encoding</div><div class="ttdoc">The encoding used for the format. </div><div class="ttdef"><b>Definition:</b> format.h:86</div></div> <div class="ttc" id="format_8h_html_a86db8f0013a38e9a0f18ed69859a4007a5b7b6fc0c6064e1653109e2e239606f8"><div class="ttname"><a href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007a5b7b6fc0c6064e1653109e2e239606f8">PA_PROP_TYPE_INT_RANGE</a></div><div class="ttdoc">Integer range property. </div><div class="ttdef"><b>Definition:</b> format.h:157</div></div> <div class="ttc" id="format_8h_html_a708ed76801eb84544075e21fe8a07652"><div class="ttname"><a href="format_8h.html#a708ed76801eb84544075e21fe8a07652">pa_encoding</a></div><div class="ttdeci">pa_encoding</div><div class="ttdoc">Represents the type of encoding used in a stream or accepted by a sink. </div><div class="ttdef"><b>Definition:</b> format.h:37</div></div> <div class="ttc" id="format_8h_html_a87728336c103aaac4c5e76d2c65f4cce"><div class="ttname"><a href="format_8h.html#a87728336c103aaac4c5e76d2c65f4cce">pa_format_info_get_prop_type</a></div><div class="ttdeci">pa_prop_type_t pa_format_info_get_prop_type(const pa_format_info *f, const char *key)</div><div class="ttdoc">Gets the type of property key in a given pa_format_info. </div></div> <div class="ttc" id="format_8h_html_a8bb07a605cdfae5ada7918e01aa0872c"><div class="ttname"><a href="format_8h.html#a8bb07a605cdfae5ada7918e01aa0872c">pa_format_info_get_prop_string</a></div><div class="ttdeci">int pa_format_info_get_prop_string(const pa_format_info *f, const char *key, char **v)</div><div class="ttdoc">Gets a string property from the given format info. </div></div> <div class="ttc" id="gccmacro_8h_html_a318a98dce3b37977670c87a74c173b16"><div class="ttname"><a href="gccmacro_8h.html#a318a98dce3b37977670c87a74c173b16">PA_GCC_CONST</a></div><div class="ttdeci">#define PA_GCC_CONST</div><div class="ttdoc">This function&#39;s return value depends only the arguments list (stricter version of PA_GCC_PURE) ...</div><div class="ttdef"><b>Definition:</b> gccmacro.h:82</div></div> <div class="ttc" id="format_8h_html_a078cbc9162779d7ea206b0546508a71b"><div class="ttname"><a href="format_8h.html#a078cbc9162779d7ea206b0546508a71b">pa_encoding_t</a></div><div class="ttdeci">enum pa_encoding pa_encoding_t</div><div class="ttdoc">Represents the type of encoding used in a stream or accepted by a sink. </div></div> <div class="ttc" id="format_8h_html_a422a3d83da63a6e778f1a40bc3540667"><div class="ttname"><a href="format_8h.html#a422a3d83da63a6e778f1a40bc3540667">pa_format_info_set_prop_int_array</a></div><div class="ttdeci">void pa_format_info_set_prop_int_array(pa_format_info *f, const char *key, const int *values, int n_values)</div><div class="ttdoc">Sets a property with a list of integer values on the given format info. </div></div> <div class="ttc" id="format_8h_html_a708ed76801eb84544075e21fe8a07652a6183eb06c06e2d708b7423da49824bd4"><div class="ttname"><a href="format_8h.html#a708ed76801eb84544075e21fe8a07652a6183eb06c06e2d708b7423da49824bd4">PA_ENCODING_MAX</a></div><div class="ttdoc">Valid encoding types must be less than this value. </div><div class="ttdef"><b>Definition:</b> format.h:59</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="format_8h_html_a656b51bb7c82883e4cad92b134625942"><div class="ttname"><a href="format_8h.html#a656b51bb7c82883e4cad92b134625942">pa_format_info_new</a></div><div class="ttdeci">pa_format_info * pa_format_info_new(void)</div><div class="ttdoc">Allocates a new pa_format_info structure. </div></div> <div class="ttc" id="format_8h_html_a86db8f0013a38e9a0f18ed69859a4007adf3b133ae062ed88366c26d3645027c7"><div class="ttname"><a href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007adf3b133ae062ed88366c26d3645027c7">PA_PROP_TYPE_INVALID</a></div><div class="ttdoc">Represents an invalid type. </div><div class="ttdef"><b>Definition:</b> format.h:169</div></div> <div class="ttc" id="format_8h_html_a662935ca585b97d292336e638c2d2bb3"><div class="ttname"><a href="format_8h.html#a662935ca585b97d292336e638c2d2bb3">pa_format_info_get_prop_int_array</a></div><div class="ttdeci">int pa_format_info_get_prop_int_array(const pa_format_info *f, const char *key, int **values, int *n_values)</div><div class="ttdoc">Gets an integer array property from the given format info. </div></div> <div class="ttc" id="channelmap_8h_html"><div class="ttname"><a href="channelmap_8h.html">channelmap.h</a></div><div class="ttdoc">Constants and routines for channel mapping handling. </div></div> <div class="ttc" id="format_8h_html_a86db8f0013a38e9a0f18ed69859a4007"><div class="ttname"><a href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007">pa_prop_type_t</a></div><div class="ttdeci">pa_prop_type_t</div><div class="ttdoc">Represents the type of value type of a property on a pa_format_info. </div><div class="ttdef"><b>Definition:</b> format.h:153</div></div> <div class="ttc" id="format_8h_html_a2e6894e4e8bbb8ac23928f24d8d4b05c"><div class="ttname"><a href="format_8h.html#a2e6894e4e8bbb8ac23928f24d8d4b05c">pa_format_info_set_channel_map</a></div><div class="ttdeci">void pa_format_info_set_channel_map(pa_format_info *f, const pa_channel_map *map)</div><div class="ttdoc">Convenience method to set the channel map as a property on the given format. </div></div> <div class="ttc" id="format_8h_html_a385d73fe57a2c2dfd28e9eca48f6c408"><div class="ttname"><a href="format_8h.html#a385d73fe57a2c2dfd28e9eca48f6c408">pa_format_info_get_prop_int</a></div><div class="ttdeci">int pa_format_info_get_prop_int(const pa_format_info *f, const char *key, int *v)</div><div class="ttdoc">Gets an integer property from the given format info. </div></div> <div class="ttc" id="structpa__format__info_html_a7780c0fae8324fbef3c81fb482103913"><div class="ttname"><a href="structpa__format__info.html#a7780c0fae8324fbef3c81fb482103913">pa_format_info::plist</a></div><div class="ttdeci">pa_proplist * plist</div><div class="ttdoc">Additional encoding-specific properties such as sample rate, bitrate, etc. </div><div class="ttdef"><b>Definition:</b> format.h:89</div></div> <div class="ttc" id="format_8h_html_a86db8f0013a38e9a0f18ed69859a4007a04e9b28bc24156fec65d0208eeffe35e"><div class="ttname"><a href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007a04e9b28bc24156fec65d0208eeffe35e">PA_PROP_TYPE_STRING</a></div><div class="ttdoc">String property. </div><div class="ttdef"><b>Definition:</b> format.h:163</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="format_8h_html_a86db8f0013a38e9a0f18ed69859a4007ad045693657b6cbdf25a4f562b1a4b621"><div class="ttname"><a href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007ad045693657b6cbdf25a4f562b1a4b621">PA_PROP_TYPE_INT_ARRAY</a></div><div class="ttdoc">Integer array property. </div><div class="ttdef"><b>Definition:</b> format.h:160</div></div> <div class="ttc" id="format_8h_html_a708ed76801eb84544075e21fe8a07652a1f9111d9e6ce5a7d631a9cf256cded52"><div class="ttname"><a href="format_8h.html#a708ed76801eb84544075e21fe8a07652a1f9111d9e6ce5a7d631a9cf256cded52">PA_ENCODING_INVALID</a></div><div class="ttdoc">Represents an invalid encoding. </div><div class="ttdef"><b>Definition:</b> format.h:62</div></div> <div class="ttc" id="format_8h_html_a9efd301cfd24b37737c6a2e2b47c9261"><div class="ttname"><a href="format_8h.html#a9efd301cfd24b37737c6a2e2b47c9261">pa_format_info_valid</a></div><div class="ttdeci">int pa_format_info_valid(const pa_format_info *f)</div><div class="ttdoc">Returns non-zero when the format info structure is valid. </div></div> <div class="ttc" id="format_8h_html_a708ed76801eb84544075e21fe8a07652ad97283df564ca82862896059fa5877ce"><div class="ttname"><a href="format_8h.html#a708ed76801eb84544075e21fe8a07652ad97283df564ca82862896059fa5877ce">PA_ENCODING_DTS_IEC61937</a></div><div class="ttdoc">DTS data encapsulated in IEC 61937 header/padding. </div><div class="ttdef"><b>Definition:</b> format.h:53</div></div> <div class="ttc" id="format_8h_html_ab8e6eaecf82ee84f084b7654d938b9cb"><div class="ttname"><a href="format_8h.html#ab8e6eaecf82ee84f084b7654d938b9cb">pa_format_info_get_prop_int_range</a></div><div class="ttdeci">int pa_format_info_get_prop_int_range(const pa_format_info *f, const char *key, int *min, int *max)</div><div class="ttdoc">Gets an integer range property from the given format info. </div></div> <div class="ttc" id="format_8h_html_a4e6c84b0e37e33cae25efd059d222d5c"><div class="ttname"><a href="format_8h.html#a4e6c84b0e37e33cae25efd059d222d5c">pa_format_info_free_string_array</a></div><div class="ttdeci">void pa_format_info_free_string_array(char **values, int n_values)</div><div class="ttdoc">Frees a string array returned by pa_format_info_get_prop_string_array. </div></div> <div class="ttc" id="format_8h_html_a708ed76801eb84544075e21fe8a07652a37ea55639a90b284526d4c29c86737e5"><div class="ttname"><a href="format_8h.html#a708ed76801eb84544075e21fe8a07652a37ea55639a90b284526d4c29c86737e5">PA_ENCODING_MPEG_IEC61937</a></div><div class="ttdoc">MPEG-1 or MPEG-2 (Part 3, not AAC) data encapsulated in IEC 61937 header/padding. ...</div><div class="ttdef"><b>Definition:</b> format.h:50</div></div> <div class="ttc" id="format_8h_html_a1c50248324fd57eb989ca898a5618fbe"><div class="ttname"><a href="format_8h.html#a1c50248324fd57eb989ca898a5618fbe">pa_format_info_get_prop_string_array</a></div><div class="ttdeci">int pa_format_info_get_prop_string_array(const pa_format_info *f, const char *key, char ***values, int *n_values)</div><div class="ttdoc">Gets a string array property from the given format info. </div></div> <div class="ttc" id="format_8h_html_a86db8f0013a38e9a0f18ed69859a4007a10142fbf5a15bbdac6153afc1f3965bf"><div class="ttname"><a href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007a10142fbf5a15bbdac6153afc1f3965bf">PA_PROP_TYPE_INT</a></div><div class="ttdoc">Integer property. </div><div class="ttdef"><b>Definition:</b> format.h:154</div></div> <div class="ttc" id="format_8h_html_a5ae53ecf0d5b56a63aead1ff56f1cb25"><div class="ttname"><a href="format_8h.html#a5ae53ecf0d5b56a63aead1ff56f1cb25">pa_format_info_set_prop_string_array</a></div><div class="ttdeci">void pa_format_info_set_prop_string_array(pa_format_info *f, const char *key, const char **values, int n_values)</div><div class="ttdoc">Sets a property with a list of string values on the given format info. </div></div> <div class="ttc" id="format_8h_html_a4faf1af2d146f848d1e31f276d4901c8"><div class="ttname"><a href="format_8h.html#a4faf1af2d146f848d1e31f276d4901c8">pa_format_info_set_prop_int_range</a></div><div class="ttdeci">void pa_format_info_set_prop_int_range(pa_format_info *f, const char *key, int min, int max)</div><div class="ttdoc">Sets a property which can have any value in a given integer range on the given format info...</div></div> <div class="ttc" id="sample_8h_html"><div class="ttname"><a href="sample_8h.html">sample.h</a></div><div class="ttdoc">Constants and routines for sample type handling. </div></div> <div class="ttc" id="format_8h_html_acebcc293f5e695a6c171d94e2d1f17a3"><div class="ttname"><a href="format_8h.html#acebcc293f5e695a6c171d94e2d1f17a3">pa_format_info_snprint</a></div><div class="ttdeci">char * pa_format_info_snprint(char *s, size_t l, const pa_format_info *f)</div><div class="ttdoc">Return a human-readable string representing the given format. </div></div> <div class="ttc" id="format_8h_html_a71d871a0d9c0624d17a6fe12be0a548a"><div class="ttname"><a href="format_8h.html#a71d871a0d9c0624d17a6fe12be0a548a">pa_format_info_is_compatible</a></div><div class="ttdeci">int pa_format_info_is_compatible(const pa_format_info *first, const pa_format_info *second)</div><div class="ttdoc">Returns non-zero if the format represented by first is a subset of the format represented by second...</div></div> <div class="ttc" id="format_8h_html_a092e9e20e51cd2b3b72acccc7d10ef15"><div class="ttname"><a href="format_8h.html#a092e9e20e51cd2b3b72acccc7d10ef15">pa_format_info_to_sample_spec</a></div><div class="ttdeci">int pa_format_info_to_sample_spec(const pa_format_info *f, pa_sample_spec *ss, pa_channel_map *map)</div><div class="ttdoc">Utility function to generate a pa_sample_spec and pa_channel_map corresponding to a given pa_format_i...</div></div> <div class="ttc" id="format_8h_html_a69567649133e4907c6a25e7baaa95d29"><div class="ttname"><a href="format_8h.html#a69567649133e4907c6a25e7baaa95d29">pa_format_info_set_prop_int</a></div><div class="ttdeci">void pa_format_info_set_prop_int(pa_format_info *f, const char *key, int value)</div><div class="ttdoc">Sets an integer property on the given format info. </div></div> <div class="ttc" id="format_8h_html_a8c48d16d0851791265bdb33ce81b749b"><div class="ttname"><a href="format_8h.html#a8c48d16d0851791265bdb33ce81b749b">pa_format_info_is_pcm</a></div><div class="ttdeci">int pa_format_info_is_pcm(const pa_format_info *f)</div><div class="ttdoc">Returns non-zero when the format info structure represents a PCM (i.e. uncompressed data) format...</div></div> <div class="ttc" id="format_8h_html_a86db8f0013a38e9a0f18ed69859a4007a4ab87daa27459bbed1cead84800135c8"><div class="ttname"><a href="format_8h.html#a86db8f0013a38e9a0f18ed69859a4007a4ab87daa27459bbed1cead84800135c8">PA_PROP_TYPE_STRING_ARRAY</a></div><div class="ttdoc">String array property. </div><div class="ttdef"><b>Definition:</b> format.h:166</div></div> <div class="ttc" id="format_8h_html_a708ed76801eb84544075e21fe8a07652af5b3680520cee5f542b4d3d1b1c4e71f"><div class="ttname"><a href="format_8h.html#a708ed76801eb84544075e21fe8a07652af5b3680520cee5f542b4d3d1b1c4e71f">PA_ENCODING_PCM</a></div><div class="ttdoc">Any PCM format. </div><div class="ttdef"><b>Definition:</b> format.h:41</div></div> <div class="ttc" id="format_8h_html_ab26d3d38076ec1253877b56bb6e4c5a1"><div class="ttname"><a href="format_8h.html#ab26d3d38076ec1253877b56bb6e4c5a1">pa_encoding_to_string</a></div><div class="ttdeci">const char * pa_encoding_to_string(pa_encoding_t e) PA_GCC_CONST</div><div class="ttdoc">Returns a printable string representing the given encoding type. </div></div> <div class="ttc" id="format_8h_html_a708ed76801eb84544075e21fe8a07652a1314110ee09c543c975b3ebdffe5bf70"><div class="ttname"><a href="format_8h.html#a708ed76801eb84544075e21fe8a07652a1314110ee09c543c975b3ebdffe5bf70">PA_ENCODING_ANY</a></div><div class="ttdoc">Any encoding format, PCM or compressed. </div><div class="ttdef"><b>Definition:</b> format.h:38</div></div> <div class="ttc" id="structpa__format__info_html"><div class="ttname"><a href="structpa__format__info.html">pa_format_info</a></div><div class="ttdoc">Represents the format of data provided in a stream or processed by a sink. </div><div class="ttdef"><b>Definition:</b> format.h:85</div></div> <div class="ttc" id="structpa__channel__map_html"><div class="ttname"><a href="structpa__channel__map.html">pa_channel_map</a></div><div class="ttdoc">A channel map which can be used to attach labels to specific channels of a stream. </div><div class="ttdef"><b>Definition:</b> channelmap.h:262</div></div> <div class="ttc" id="proplist_8h_html_acdf756a6014b6fae3b358b2c934c3426"><div class="ttname"><a href="proplist_8h.html#acdf756a6014b6fae3b358b2c934c3426">pa_proplist</a></div><div class="ttdeci">struct pa_proplist pa_proplist</div><div class="ttdoc">A property list object. </div><div class="ttdef"><b>Definition:</b> proplist.h:272</div></div> <div class="ttc" id="format_8h_html_a708ed76801eb84544075e21fe8a07652af570614498d7843f30f2860d14a8318a"><div class="ttname"><a href="format_8h.html#a708ed76801eb84544075e21fe8a07652af570614498d7843f30f2860d14a8318a">PA_ENCODING_AC3_IEC61937</a></div><div class="ttdoc">AC3 data encapsulated in IEC 61937 header/padding. </div><div class="ttdef"><b>Definition:</b> format.h:44</div></div> <div class="ttc" id="format_8h_html_a01cdeda2c082cf6a006b0b08102268c2"><div class="ttname"><a href="format_8h.html#a01cdeda2c082cf6a006b0b08102268c2">pa_format_info_set_rate</a></div><div class="ttdeci">void pa_format_info_set_rate(pa_format_info *f, int rate)</div><div class="ttdoc">Convenience method to set the sampling rate as a property on the given format. </div></div> <div class="ttc" id="proplist_8h_html"><div class="ttname"><a href="proplist_8h.html">proplist.h</a></div><div class="ttdoc">Property list constants and functions. </div></div> <div class="ttc" id="format_8h_html_aedc90e3d37d0b6af1ab8deb6234ee8e5"><div class="ttname"><a href="format_8h.html#aedc90e3d37d0b6af1ab8deb6234ee8e5">pa_format_info</a></div><div class="ttdeci">struct pa_format_info pa_format_info</div><div class="ttdoc">Represents the format of data provided in a stream or processed by a sink. </div></div> <div class="ttc" id="format_8h_html_ad96df235255893807a779cf986a322ba"><div class="ttname"><a href="format_8h.html#ad96df235255893807a779cf986a322ba">pa_encoding_from_string</a></div><div class="ttdeci">pa_encoding_t pa_encoding_from_string(const char *encoding)</div><div class="ttdoc">Converts a string of the form returned by pa_encoding_to_string() back to a pa_encoding_t. </div></div> <div class="ttc" id="format_8h_html_a6e43baade49ac428880361b10d66d08e"><div class="ttname"><a href="format_8h.html#a6e43baade49ac428880361b10d66d08e">pa_format_info_set_sample_format</a></div><div class="ttdeci">void pa_format_info_set_sample_format(pa_format_info *f, pa_sample_format_t sf)</div><div class="ttdoc">Convenience method to set the sample format as a property on the given format. </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="format_8h.html">format.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>