<!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.3"/> <title>PulseAudio: volume.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="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </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 style="padding-left: 0.5em;"> <div id="projectname">PulseAudio  <span id="projectnumber">2.1</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.3 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </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('volume_8h_source.html','');}); </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">volume.h</div> </div> </div><!--header--> <div class="contents"> <a href="volume_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 foovolumehfoo</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor"></span><span class="preprocessor">#define foovolumehfoo</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor"></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, write to the Free Software</span></div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307</span></div> <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> USA.</span></div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">***/</span></div> <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div> <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <inttypes.h></span></div> <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <limits.h></span></div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</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="gccmacro_8h.html" title="GCC attribute macros.">pulse/gccmacro.h</a>></span></div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include <<a class="code" href="sample_8h.html" title="Constants and routines for sample type handling.">pulse/sample.h</a>></span></div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include <<a class="code" href="channelmap_8h.html" title="Constants and routines for channel mapping handling.">pulse/channelmap.h</a>></span></div> <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include <<a class="code" href="version_8h.html" title="Define header version.">pulse/version.h</a>></span></div> <div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div> <div class="line"><a name="l00100"></a><span class="lineno"> 100</span> PA_C_DECL_BEGIN</div> <div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div> <div class="line"><a name="l00107"></a><span class="lineno"><a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352"> 107</a></span> <span class="keyword">typedef</span> uint32_t <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a>;</div> <div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div> <div class="line"><a name="l00110"></a><span class="lineno"><a class="code" href="volume_8h.html#aded56902e68e0f8ab576339bde55960e"> 110</a></span> <span class="preprocessor">#define PA_VOLUME_NORM ((pa_volume_t) 0x10000U)</span></div> <div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00113"></a><span class="lineno"><a class="code" href="volume_8h.html#a9e6e4562a3be216d39ad2246f0339f4c"> 113</a></span> <span class="preprocessor">#define PA_VOLUME_MUTED ((pa_volume_t) 0U)</span></div> <div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00116"></a><span class="lineno"><a class="code" href="volume_8h.html#afc3ad20b0ddc813e847b44afd90488ca"> 116</a></span> <span class="preprocessor">#define PA_VOLUME_MAX ((pa_volume_t) UINT32_MAX/2)</span></div> <div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00123"></a><span class="lineno"><a class="code" href="volume_8h.html#a353b44010677b005abd390af732eb86e"> 123</a></span> <span class="preprocessor">#define PA_VOLUME_UI_MAX (pa_sw_volume_from_dB(+11.0))</span></div> <div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00126"></a><span class="lineno"><a class="code" href="volume_8h.html#ae9f4578d6ad789317d2a2fb88195a732"> 126</a></span> <span class="preprocessor">#define PA_VOLUME_INVALID ((pa_volume_t) UINT32_MAX)</span></div> <div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00129"></a><span class="lineno"><a class="code" href="volume_8h.html#ada5f548dcb2b8c7de09bd83e2adccd2d"> 129</a></span> <span class="preprocessor">#define PA_VOLUME_IS_VALID(v) ((v) <= PA_VOLUME_MAX)</span></div> <div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00132"></a><span class="lineno"><a class="code" href="volume_8h.html#a7c4e15efd8cadecc75b1da13cfe50708"> 132</a></span> <span class="preprocessor">#define PA_CLAMP_VOLUME(v) (PA_CLAMP_UNLIKELY((v), PA_VOLUME_MUTED, PA_VOLUME_MAX))</span></div> <div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00135"></a><span class="lineno"><a class="code" href="structpa__cvolume.html"> 135</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> {</div> <div class="line"><a name="l00136"></a><span class="lineno"><a class="code" href="structpa__cvolume.html#a03f1742e241a995c6d76b6f7794fd342"> 136</a></span>  uint8_t <a class="code" href="structpa__cvolume.html#a03f1742e241a995c6d76b6f7794fd342" title="Number of channels.">channels</a>; </div> <div class="line"><a name="l00137"></a><span class="lineno"><a class="code" href="structpa__cvolume.html#ac47f79992e87428386d20411ebc9c32a"> 137</a></span>  <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> <a class="code" href="structpa__cvolume.html#ac47f79992e87428386d20411ebc9c32a" title="Per-channel volume.">values</a>[<a class="code" href="sample_8h.html#a4c6778fd8a093f9984ce0448f81d9dcf" title="Maximum number of allowed channels.">PA_CHANNELS_MAX</a>]; </div> <div class="line"><a name="l00138"></a><span class="lineno"> 138</span> } <a class="code" href="volume_8h.html#a58db6e157e614cf9699c5bead1552380" title="A structure encapsulating a per-channel volume.">pa_cvolume</a>;</div> <div class="line"><a name="l00139"></a><span class="lineno"> 139</span> </div> <div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="keywordtype">int</span> <a class="code" href="volume_8h.html#a84b52cdbff47aad9c058df783f342b57" title="Return non-zero when *a == *b.">pa_cvolume_equal</a>(<span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *a, <span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *b) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548" title="This function's return value depends only the arguments list and global state.">PA_GCC_PURE</a>;</div> <div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div> <div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a>* <a class="code" href="volume_8h.html#a6fdc24192547d6ef3d5b32e746016e22" title="Initialize the specified volume and return a pointer to it.">pa_cvolume_init</a>(<a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *a);</div> <div class="line"><a name="l00147"></a><span class="lineno"> 147</span> </div> <div class="line"><a name="l00149"></a><span class="lineno"><a class="code" href="volume_8h.html#aa2701828c290031c9bca9036f5148c72"> 149</a></span> <span class="preprocessor">#define pa_cvolume_reset(a, n) pa_cvolume_set((a), (n), PA_VOLUME_NORM)</span></div> <div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00152"></a><span class="lineno"><a class="code" href="volume_8h.html#a04805cb4b83ded75deca9c122977d8fb"> 152</a></span> <span class="preprocessor">#define pa_cvolume_mute(a, n) pa_cvolume_set((a), (n), PA_VOLUME_MUTED)</span></div> <div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a>* <a class="code" href="volume_8h.html#a0777581d85a1d4bf9c831bdacaac51ac" title="Set the volume of the specified number of channels to the volume v.">pa_cvolume_set</a>(<a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *a, <span class="keywordtype">unsigned</span> channels, <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> v);</div> <div class="line"><a name="l00156"></a><span class="lineno"> 156</span> </div> <div class="line"><a name="l00162"></a><span class="lineno"><a class="code" href="volume_8h.html#a4162617e79bec0c7972326cf28a98712"> 162</a></span> <span class="preprocessor">#define PA_CVOLUME_SNPRINT_MAX 320</span></div> <div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="keywordtype">char</span> *<a class="code" href="volume_8h.html#a99f2e389f425b888d3a02ade86d7c85f" title="Pretty print a volume structure.">pa_cvolume_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__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *c);</div> <div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div> <div class="line"><a name="l00172"></a><span class="lineno"><a class="code" href="volume_8h.html#ac516da5ed0f43f2ff41792fef4466115"> 172</a></span> <span class="preprocessor">#define PA_SW_CVOLUME_SNPRINT_DB_MAX 448</span></div> <div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="keywordtype">char</span> *<a class="code" href="volume_8h.html#aaf68a0e6959d18e192104802aab25717" title="Pretty print a volume structure but show dB values.">pa_sw_cvolume_snprint_dB</a>(<span class="keywordtype">char</span> *s, <span class="keywordtype">size_t</span> l, <span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *c);</div> <div class="line"><a name="l00176"></a><span class="lineno"> 176</span> </div> <div class="line"><a name="l00182"></a><span class="lineno"><a class="code" href="volume_8h.html#a80190278ec6e8506092d3d57d309234f"> 182</a></span> <span class="preprocessor">#define PA_VOLUME_SNPRINT_MAX 10</span></div> <div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="keywordtype">char</span> *<a class="code" href="volume_8h.html#a379a97102f5b88dc82ccccffc95b8aac" title="Pretty print a volume.">pa_volume_snprint</a>(<span class="keywordtype">char</span> *s, <span class="keywordtype">size_t</span> l, <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> v);</div> <div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div> <div class="line"><a name="l00192"></a><span class="lineno"><a class="code" href="volume_8h.html#a98deb2bff93c29e036c4cc14ad3d2e8f"> 192</a></span> <span class="preprocessor">#define PA_SW_VOLUME_SNPRINT_DB_MAX 10</span></div> <div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="keywordtype">char</span> *<a class="code" href="volume_8h.html#abcf6e407dfaec50edc13a994b2b0d9f9" title="Pretty print a volume but show dB values.">pa_sw_volume_snprint_dB</a>(<span class="keywordtype">char</span> *s, <span class="keywordtype">size_t</span> l, <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> v);</div> <div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div> <div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> <a class="code" href="volume_8h.html#a0f34f2c6d1b4738bf7f11ff06775dc1f" title="Return the average volume of all channels.">pa_cvolume_avg</a>(<span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *a) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548" title="This function's return value depends only the arguments list and global state.">PA_GCC_PURE</a>;</div> <div class="line"><a name="l00199"></a><span class="lineno"> 199</span> </div> <div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> <a class="code" href="volume_8h.html#a1631e5a8e8a48bb67b600dee21c33e44" title="Return the average volume of all channels that are included in the specified channel map with the spe...">pa_cvolume_avg_mask</a>(<span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *a, <span class="keyword">const</span> <a class="code" href="structpa__channel__map.html" title="A channel map which can be used to attach labels to specific channels of a stream.">pa_channel_map</a> *cm, <a class="code" href="channelmap_8h.html#a7523d4554f7ffdcf6a9c8b1333741877" title="A mask of channel positions.">pa_channel_position_mask_t</a> mask) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548" title="This function's return value depends only the arguments list and global state.">PA_GCC_PURE</a>;</div> <div class="line"><a name="l00206"></a><span class="lineno"> 206</span> </div> <div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> <a class="code" href="volume_8h.html#a8d65b3af7da133c78ce9def86ea54ba9" title="Return the maximum volume of all channels.">pa_cvolume_max</a>(<span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *a) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548" title="This function's return value depends only the arguments list and global state.">PA_GCC_PURE</a>;</div> <div class="line"><a name="l00209"></a><span class="lineno"> 209</span> </div> <div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> <a class="code" href="volume_8h.html#a45d52a8d30a0042c3aaf064ab40b3047" title="Return the maximum volume of all channels that are included in the specified channel map with the spe...">pa_cvolume_max_mask</a>(<span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *a, <span class="keyword">const</span> <a class="code" href="structpa__channel__map.html" title="A channel map which can be used to attach labels to specific channels of a stream.">pa_channel_map</a> *cm, <a class="code" href="channelmap_8h.html#a7523d4554f7ffdcf6a9c8b1333741877" title="A mask of channel positions.">pa_channel_position_mask_t</a> mask) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548" title="This function's return value depends only the arguments list and global state.">PA_GCC_PURE</a>;</div> <div class="line"><a name="l00216"></a><span class="lineno"> 216</span> </div> <div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> <a class="code" href="volume_8h.html#acf9d43b101bbe3e07b55935fe5dbb3f3" title="Return the minimum volume of all channels.">pa_cvolume_min</a>(<span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *a) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548" title="This function's return value depends only the arguments list and global state.">PA_GCC_PURE</a>;</div> <div class="line"><a name="l00219"></a><span class="lineno"> 219</span> </div> <div class="line"><a name="l00225"></a><span class="lineno"> 225</span> <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> <a class="code" href="volume_8h.html#aa0fb6aef11c33f84a9034f31a2f977b2" title="Return the minimum volume of all channels that are included in the specified channel map with the spe...">pa_cvolume_min_mask</a>(<span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *a, <span class="keyword">const</span> <a class="code" href="structpa__channel__map.html" title="A channel map which can be used to attach labels to specific channels of a stream.">pa_channel_map</a> *cm, <a class="code" href="channelmap_8h.html#a7523d4554f7ffdcf6a9c8b1333741877" title="A mask of channel positions.">pa_channel_position_mask_t</a> mask) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548" title="This function's return value depends only the arguments list and global state.">PA_GCC_PURE</a>;</div> <div class="line"><a name="l00226"></a><span class="lineno"> 226</span> </div> <div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="keywordtype">int</span> <a class="code" href="volume_8h.html#aba14d00682b29838ef39ca5a9afe8972" title="Return TRUE when the passed cvolume structure is valid, FALSE otherwise.">pa_cvolume_valid</a>(<span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *v) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548" title="This function's return value depends only the arguments list and global state.">PA_GCC_PURE</a>;</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="keywordtype">int</span> <a class="code" href="volume_8h.html#a2dd140d5c2fadd1d8cb7aa0eace05109" title="Return non-zero if the volume of all channels is equal to the specified value.">pa_cvolume_channels_equal_to</a>(<span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *a, <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> v) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548" title="This function's return value depends only the arguments list and global state.">PA_GCC_PURE</a>;</div> <div class="line"><a name="l00232"></a><span class="lineno"> 232</span> </div> <div class="line"><a name="l00234"></a><span class="lineno"><a class="code" href="volume_8h.html#a6b8766a2f30420a83457d2e1f0f139b2"> 234</a></span> <span class="preprocessor">#define pa_cvolume_is_muted(a) pa_cvolume_channels_equal_to((a), PA_VOLUME_MUTED)</span></div> <div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00237"></a><span class="lineno"><a class="code" href="volume_8h.html#a0b374bbe16de9ac047fc4e5f6994390c"> 237</a></span> <span class="preprocessor">#define pa_cvolume_is_norm(a) pa_cvolume_channels_equal_to((a), PA_VOLUME_NORM)</span></div> <div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> <a class="code" href="volume_8h.html#a1ca01f5bd640e7c5b2d3a6dad9093226" title="Multiply two volume specifications, return the result.">pa_sw_volume_multiply</a>(<a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> a, <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> b) <a class="code" href="gccmacro_8h.html#a318a98dce3b37977670c87a74c173b16" title="This function's return value depends only the arguments list (stricter version of PA_GCC_PURE)...">PA_GCC_CONST</a>;</div> <div class="line"><a name="l00243"></a><span class="lineno"> 243</span> </div> <div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *<a class="code" href="volume_8h.html#a6ae924bdad225c405c1e2f40c22b041b" title="Multiply two per-channel volumes and return the result in *dest.">pa_sw_cvolume_multiply</a>(<a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *dest, <span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *a, <span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *b);</div> <div class="line"><a name="l00248"></a><span class="lineno"> 248</span> </div> <div class="line"><a name="l00253"></a><span class="lineno"> 253</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *<a class="code" href="volume_8h.html#a3d040698f798c6cdb100771c7835c7a8" title="Multiply a per-channel volume with a scalar volume and return the result in *dest.">pa_sw_cvolume_multiply_scalar</a>(<a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *dest, <span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *a, <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> b);</div> <div class="line"><a name="l00254"></a><span class="lineno"> 254</span> </div> <div class="line"><a name="l00259"></a><span class="lineno"> 259</span> <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> <a class="code" href="volume_8h.html#adcf659351cef912786f53132664fa2b4" title="Divide two volume specifications, return the result.">pa_sw_volume_divide</a>(<a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> a, <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> b) <a class="code" href="gccmacro_8h.html#a318a98dce3b37977670c87a74c173b16" title="This function's return value depends only the arguments list (stricter version of PA_GCC_PURE)...">PA_GCC_CONST</a>;</div> <div class="line"><a name="l00260"></a><span class="lineno"> 260</span> </div> <div class="line"><a name="l00264"></a><span class="lineno"> 264</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *<a class="code" href="volume_8h.html#a7392cdb5137cedc579891ac4c8c6ff7d" title="Divide two per-channel volumes and return the result in *dest.">pa_sw_cvolume_divide</a>(<a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *dest, <span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *a, <span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *b);</div> <div class="line"><a name="l00265"></a><span class="lineno"> 265</span> </div> <div class="line"><a name="l00270"></a><span class="lineno"> 270</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *<a class="code" href="volume_8h.html#ae4f20d6c7da8d906f704ced36055b555" title="Divide a per-channel volume by a scalar volume and return the result in *dest.">pa_sw_cvolume_divide_scalar</a>(<a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *dest, <span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *a, <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> b);</div> <div class="line"><a name="l00271"></a><span class="lineno"> 271</span> </div> <div class="line"><a name="l00273"></a><span class="lineno"> 273</span> <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> <a class="code" href="volume_8h.html#ad638dfbc737f126e743584665ea8f557" title="Convert a decibel value to a volume (amplitude, not power).">pa_sw_volume_from_dB</a>(<span class="keywordtype">double</span> f) <a class="code" href="gccmacro_8h.html#a318a98dce3b37977670c87a74c173b16" title="This function's return value depends only the arguments list (stricter version of PA_GCC_PURE)...">PA_GCC_CONST</a>;</div> <div class="line"><a name="l00274"></a><span class="lineno"> 274</span> </div> <div class="line"><a name="l00276"></a><span class="lineno"> 276</span> <span class="keywordtype">double</span> <a class="code" href="volume_8h.html#a297851419c1e994d9fd2cfbb49aa480a" title="Convert a volume to a decibel value (amplitude, not power).">pa_sw_volume_to_dB</a>(<a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> v) <a class="code" href="gccmacro_8h.html#a318a98dce3b37977670c87a74c173b16" title="This function's return value depends only the arguments list (stricter version of PA_GCC_PURE)...">PA_GCC_CONST</a>;</div> <div class="line"><a name="l00277"></a><span class="lineno"> 277</span> </div> <div class="line"><a name="l00280"></a><span class="lineno"> 280</span> <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> <a class="code" href="volume_8h.html#aafb4825a03178ee327e55ae0866b7471" title="Convert a linear factor to a volume.">pa_sw_volume_from_linear</a>(<span class="keywordtype">double</span> v) <a class="code" href="gccmacro_8h.html#a318a98dce3b37977670c87a74c173b16" title="This function's return value depends only the arguments list (stricter version of PA_GCC_PURE)...">PA_GCC_CONST</a>;</div> <div class="line"><a name="l00281"></a><span class="lineno"> 281</span> </div> <div class="line"><a name="l00283"></a><span class="lineno"> 283</span> <span class="keywordtype">double</span> <a class="code" href="volume_8h.html#a04da6c4572a758a0244bbfc81d370cfb" title="Convert a volume to a linear factor.">pa_sw_volume_to_linear</a>(<a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> v) <a class="code" href="gccmacro_8h.html#a318a98dce3b37977670c87a74c173b16" title="This function's return value depends only the arguments list (stricter version of PA_GCC_PURE)...">PA_GCC_CONST</a>;</div> <div class="line"><a name="l00284"></a><span class="lineno"> 284</span> </div> <div class="line"><a name="l00285"></a><span class="lineno"> 285</span> <span class="preprocessor">#ifdef INFINITY</span></div> <div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <span class="preprocessor"></span><span class="preprocessor">#define PA_DECIBEL_MININFTY ((double) -INFINITY)</span></div> <div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div> <div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00289"></a><span class="lineno"><a class="code" href="volume_8h.html#ae0b917d42c58310ed848916058d75f27"> 289</a></span> <span class="preprocessor">#define PA_DECIBEL_MININFTY ((double) -200.0)</span></div> <div class="line"><a name="l00290"></a><span class="lineno"> 290</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div> <div class="line"><a name="l00291"></a><span class="lineno"> 291</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00293"></a><span class="lineno"> 293</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *<a class="code" href="volume_8h.html#a5eab9b175690ff534492673ad30ed2e7" title="Remap a volume from one channel mapping to a different channel mapping.">pa_cvolume_remap</a>(<a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *v, <span class="keyword">const</span> <a class="code" href="structpa__channel__map.html" title="A channel map which can be used to attach labels to specific channels of a stream.">pa_channel_map</a> *from, <span class="keyword">const</span> <a class="code" href="structpa__channel__map.html" title="A channel map which can be used to attach labels to specific channels of a stream.">pa_channel_map</a> *to);</div> <div class="line"><a name="l00294"></a><span class="lineno"> 294</span> </div> <div class="line"><a name="l00297"></a><span class="lineno"> 297</span> <span class="keywordtype">int</span> <a class="code" href="volume_8h.html#a9f315d36ea592c0e91407db899e5fab5" title="Return non-zero if the specified volume is compatible with the specified sample spec.">pa_cvolume_compatible</a>(<span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *v, <span class="keyword">const</span> <a class="code" href="structpa__sample__spec.html" title="A sample format and attribute specification.">pa_sample_spec</a> *ss) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548" title="This function's return value depends only the arguments list and global state.">PA_GCC_PURE</a>;</div> <div class="line"><a name="l00298"></a><span class="lineno"> 298</span> </div> <div class="line"><a name="l00301"></a><span class="lineno"> 301</span> <span class="keywordtype">int</span> <a class="code" href="volume_8h.html#a15263326cff59a120509bafd24565c1d" title="Return non-zero if the specified volume is compatible with the specified sample spec.">pa_cvolume_compatible_with_channel_map</a>(<span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *v, <span class="keyword">const</span> <a class="code" href="structpa__channel__map.html" title="A channel map which can be used to attach labels to specific channels of a stream.">pa_channel_map</a> *cm) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548" title="This function's return value depends only the arguments list and global state.">PA_GCC_PURE</a>;</div> <div class="line"><a name="l00302"></a><span class="lineno"> 302</span> </div> <div class="line"><a name="l00308"></a><span class="lineno"> 308</span> <span class="keywordtype">float</span> <a class="code" href="volume_8h.html#affea337dd40255580c9de68799e569d1" title="Calculate a 'balance' value for the specified volume with the specified channel map.">pa_cvolume_get_balance</a>(<span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *v, <span class="keyword">const</span> <a class="code" href="structpa__channel__map.html" title="A channel map which can be used to attach labels to specific channels of a stream.">pa_channel_map</a> *map) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548" title="This function's return value depends only the arguments list and global state.">PA_GCC_PURE</a>;</div> <div class="line"><a name="l00309"></a><span class="lineno"> 309</span> </div> <div class="line"><a name="l00319"></a><span class="lineno"> 319</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a>* <a class="code" href="volume_8h.html#a0cad9c475a9a318c433f12ff019d7fec" title="Adjust the 'balance' value for the specified volume with the specified channel map.">pa_cvolume_set_balance</a>(<a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *v, <span class="keyword">const</span> <a class="code" href="structpa__channel__map.html" title="A channel map which can be used to attach labels to specific channels of a stream.">pa_channel_map</a> *map, <span class="keywordtype">float</span> new_balance);</div> <div class="line"><a name="l00320"></a><span class="lineno"> 320</span> </div> <div class="line"><a name="l00326"></a><span class="lineno"> 326</span> <span class="keywordtype">float</span> <a class="code" href="volume_8h.html#aaf78aa9297c11860338ffa3c958f9a36" title="Calculate a 'fade' value (i.e.">pa_cvolume_get_fade</a>(<span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *v, <span class="keyword">const</span> <a class="code" href="structpa__channel__map.html" title="A channel map which can be used to attach labels to specific channels of a stream.">pa_channel_map</a> *map) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548" title="This function's return value depends only the arguments list and global state.">PA_GCC_PURE</a>;</div> <div class="line"><a name="l00327"></a><span class="lineno"> 327</span> </div> <div class="line"><a name="l00337"></a><span class="lineno"> 337</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a>* <a class="code" href="volume_8h.html#a4379c7e84379121f4baaba0aefaf76ee" title="Adjust the 'fade' value (i.e.">pa_cvolume_set_fade</a>(<a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *v, <span class="keyword">const</span> <a class="code" href="structpa__channel__map.html" title="A channel map which can be used to attach labels to specific channels of a stream.">pa_channel_map</a> *map, <span class="keywordtype">float</span> new_fade);</div> <div class="line"><a name="l00338"></a><span class="lineno"> 338</span> </div> <div class="line"><a name="l00342"></a><span class="lineno"> 342</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a>* <a class="code" href="volume_8h.html#a175fa9c547655cd868b4812755a0a113" title="Scale the passed pa_cvolume structure so that the maximum volume of all channels equals max...">pa_cvolume_scale</a>(<a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *v, <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> max);</div> <div class="line"><a name="l00343"></a><span class="lineno"> 343</span> </div> <div class="line"><a name="l00348"></a><span class="lineno"> 348</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a>* <a class="code" href="volume_8h.html#a830ad2a196782fcac20ab3d3ccf856bf" title="Scale the passed pa_cvolume structure so that the maximum volume of all channels selected via cm/mask...">pa_cvolume_scale_mask</a>(<a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *v, <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> max, <a class="code" href="structpa__channel__map.html" title="A channel map which can be used to attach labels to specific channels of a stream.">pa_channel_map</a> *cm, <a class="code" href="channelmap_8h.html#a7523d4554f7ffdcf6a9c8b1333741877" title="A mask of channel positions.">pa_channel_position_mask_t</a> mask);</div> <div class="line"><a name="l00349"></a><span class="lineno"> 349</span> </div> <div class="line"><a name="l00355"></a><span class="lineno"> 355</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a>* <a class="code" href="volume_8h.html#a162e08219b4de7d4bc96d25c8b3e0d44" title="Set the passed volume to all channels at the specified channel position.">pa_cvolume_set_position</a>(<a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *cv, <span class="keyword">const</span> <a class="code" href="structpa__channel__map.html" title="A channel map which can be used to attach labels to specific channels of a stream.">pa_channel_map</a> *map, <a class="code" href="channelmap_8h.html#a73a7ec05f42b21cb70ba4405b54177f6" title="A list of channel labels.">pa_channel_position_t</a> t, <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> v);</div> <div class="line"><a name="l00356"></a><span class="lineno"> 356</span> </div> <div class="line"><a name="l00361"></a><span class="lineno"> 361</span> <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> <a class="code" href="volume_8h.html#aa50b7a4b2e1335e0d3ba4a64d6577b26" title="Get the maximum volume of all channels at the specified channel position.">pa_cvolume_get_position</a>(<a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *cv, <span class="keyword">const</span> <a class="code" href="structpa__channel__map.html" title="A channel map which can be used to attach labels to specific channels of a stream.">pa_channel_map</a> *map, <a class="code" href="channelmap_8h.html#a73a7ec05f42b21cb70ba4405b54177f6" title="A list of channel labels.">pa_channel_position_t</a> t) <a class="code" href="gccmacro_8h.html#aa1c5f50faa1073e28ba469b86f6a0548" title="This function's return value depends only the arguments list and global state.">PA_GCC_PURE</a>;</div> <div class="line"><a name="l00362"></a><span class="lineno"> 362</span> </div> <div class="line"><a name="l00366"></a><span class="lineno"> 366</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a>* <a class="code" href="volume_8h.html#af7c6b663bfdc7c527475a0690bc7113b" title="This goes through all channels in a and b and sets the corresponding channel in dest to the greater v...">pa_cvolume_merge</a>(<a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *dest, <span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *a, <span class="keyword">const</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *b);</div> <div class="line"><a name="l00367"></a><span class="lineno"> 367</span> </div> <div class="line"><a name="l00370"></a><span class="lineno"> 370</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a>* <a class="code" href="volume_8h.html#a0091f0005e1c097d64af5ba7d088b394" title="Increase the volume passed in by 'inc', but not exceeding 'limit'.">pa_cvolume_inc_clamp</a>(<a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *v, <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> inc, <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> limit);</div> <div class="line"><a name="l00371"></a><span class="lineno"> 371</span> </div> <div class="line"><a name="l00374"></a><span class="lineno"> 374</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a>* <a class="code" href="volume_8h.html#a26b4a370e6fff4b318acd3a7ac055d7a" title="Increase the volume passed in by 'inc'.">pa_cvolume_inc</a>(<a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *v, <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> inc);</div> <div class="line"><a name="l00375"></a><span class="lineno"> 375</span> </div> <div class="line"><a name="l00378"></a><span class="lineno"> 378</span> <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a>* <a class="code" href="volume_8h.html#a3d01d4da8c279bd66c0d09c7310ef95c" title="Increase the volume passed in by 'inc'.">pa_cvolume_dec</a>(<a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> *v, <a class="code" href="volume_8h.html#a6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; < PA_VOLUME_NORM: decreased volume; PA_VOLUME_NORM: n...">pa_volume_t</a> dec);</div> <div class="line"><a name="l00379"></a><span class="lineno"> 379</span> </div> <div class="line"><a name="l00380"></a><span class="lineno"> 380</span> PA_C_DECL_END</div> <div class="line"><a name="l00381"></a><span class="lineno"> 381</span> </div> <div class="line"><a name="l00382"></a><span class="lineno"> 382</span> <span class="preprocessor">#endif</span></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="volume_8h.html">volume.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.3 </li> </ul> </div> </body> </html>