Sophie

Sophie

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

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>PulseAudio: volume.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>volume.h</h1><a href="volume_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef foovolumehfoo</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define foovolumehfoo</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="comment">/***</span>
<a name="l00005"></a>00005 <span class="comment">  This file is part of PulseAudio.</span>
<a name="l00006"></a>00006 <span class="comment"></span>
<a name="l00007"></a>00007 <span class="comment">  Copyright 2004-2006 Lennart Poettering</span>
<a name="l00008"></a>00008 <span class="comment">  Copyright 2006 Pierre Ossman &lt;ossman@cendio.se&gt; for Cendio AB</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">  PulseAudio is free software; you can redistribute it and/or modify</span>
<a name="l00011"></a>00011 <span class="comment">  it under the terms of the GNU Lesser General Public License as published</span>
<a name="l00012"></a>00012 <span class="comment">  by the Free Software Foundation; either version 2.1 of the License,</span>
<a name="l00013"></a>00013 <span class="comment">  or (at your option) any later version.</span>
<a name="l00014"></a>00014 <span class="comment"></span>
<a name="l00015"></a>00015 <span class="comment">  PulseAudio is distributed in the hope that it will be useful, but</span>
<a name="l00016"></a>00016 <span class="comment">  WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00017"></a>00017 <span class="comment">  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00018"></a>00018 <span class="comment">  General Public License for more details.</span>
<a name="l00019"></a>00019 <span class="comment"></span>
<a name="l00020"></a>00020 <span class="comment">  You should have received a copy of the GNU Lesser General Public License</span>
<a name="l00021"></a>00021 <span class="comment">  along with PulseAudio; if not, write to the Free Software</span>
<a name="l00022"></a>00022 <span class="comment">  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307</span>
<a name="l00023"></a>00023 <span class="comment">  USA.</span>
<a name="l00024"></a>00024 <span class="comment">***/</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;inttypes.h&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;limits.h&gt;</span>
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;pulse/cdecl.h&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;<a class="code" href="gccmacro_8h.html" title="GCC attribute macros.">pulse/gccmacro.h</a>&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;<a class="code" href="sample_8h.html" title="Constants and routines for sample type handling.">pulse/sample.h</a>&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;<a class="code" href="channelmap_8h.html" title="Constants and routines for channel mapping handling.">pulse/channelmap.h</a>&gt;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;<a class="code" href="version_8h.html" title="Define header version.">pulse/version.h</a>&gt;</span>
<a name="l00034"></a>00034 
<a name="l00097"></a>00097 PA_C_DECL_BEGIN
<a name="l00098"></a>00098 
<a name="l00104"></a><a class="code" href="volume_8h.html#6d671c65284ff2e94d3773c7368a0352">00104</a> <span class="keyword">typedef</span> uint32_t <a class="code" href="volume_8h.html#6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; &amp;lt; PA_VOLUME_NORM: decreased volume;...">pa_volume_t</a>;
<a name="l00105"></a>00105 
<a name="l00107"></a><a class="code" href="volume_8h.html#ded56902e68e0f8ab576339bde55960e">00107</a> <span class="preprocessor">#define PA_VOLUME_NORM ((pa_volume_t) 0x10000U)</span>
<a name="l00108"></a>00108 <span class="preprocessor"></span>
<a name="l00110"></a><a class="code" href="volume_8h.html#9e6e4562a3be216d39ad2246f0339f4c">00110</a> <span class="preprocessor">#define PA_VOLUME_MUTED ((pa_volume_t) 0U)</span>
<a name="l00111"></a>00111 <span class="preprocessor"></span>
<a name="l00113"></a><a class="code" href="volume_8h.html#fc3ad20b0ddc813e847b44afd90488ca">00113</a> <span class="preprocessor">#define PA_VOLUME_MAX ((pa_volume_t) UINT32_MAX)</span>
<a name="l00114"></a>00114 <span class="preprocessor"></span>
<a name="l00116"></a><a class="code" href="structpa__cvolume.html">00116</a> <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> {
<a name="l00117"></a><a class="code" href="structpa__cvolume.html#03f1742e241a995c6d76b6f7794fd342">00117</a>     uint8_t <a class="code" href="structpa__cvolume.html#03f1742e241a995c6d76b6f7794fd342" title="Number of channels.">channels</a>;                     
<a name="l00118"></a><a class="code" href="structpa__cvolume.html#c47f79992e87428386d20411ebc9c32a">00118</a>     <a class="code" href="volume_8h.html#6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; &amp;lt; PA_VOLUME_NORM: decreased volume;...">pa_volume_t</a> <a class="code" href="structpa__cvolume.html#c47f79992e87428386d20411ebc9c32a" title="Per-channel volume.">values</a>[<a class="code" href="sample_8h.html#4c6778fd8a093f9984ce0448f81d9dcf" title="Maximum number of allowed channels.">PA_CHANNELS_MAX</a>];  
<a name="l00119"></a>00119 } <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a>;
<a name="l00120"></a>00120 
<a name="l00122"></a>00122 <span class="keywordtype">int</span> <a class="code" href="volume_8h.html#84b52cdbff47aad9c058df783f342b57" 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#a1c5f50faa1073e28ba469b86f6a0548" title="This function&amp;#39;s return value depends only the arguments list and global state...">PA_GCC_PURE</a>;
<a name="l00123"></a>00123 
<a name="l00127"></a>00127 <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#6fdc24192547d6ef3d5b32e746016e22" 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);
<a name="l00128"></a>00128 
<a name="l00130"></a><a class="code" href="volume_8h.html#a2701828c290031c9bca9036f5148c72">00130</a> <span class="preprocessor">#define pa_cvolume_reset(a, n) pa_cvolume_set((a), (n), PA_VOLUME_NORM)</span>
<a name="l00131"></a>00131 <span class="preprocessor"></span>
<a name="l00133"></a><a class="code" href="volume_8h.html#04805cb4b83ded75deca9c122977d8fb">00133</a> <span class="preprocessor">#define pa_cvolume_mute(a, n) pa_cvolume_set((a), (n), PA_VOLUME_MUTED)</span>
<a name="l00134"></a>00134 <span class="preprocessor"></span>
<a name="l00136"></a>00136 <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#0777581d85a1d4bf9c831bdacaac51ac" title="Set the volume of all channels to the specified parameter.">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#6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; &amp;lt; PA_VOLUME_NORM: decreased volume;...">pa_volume_t</a> v);
<a name="l00137"></a>00137 
<a name="l00143"></a><a class="code" href="volume_8h.html#4162617e79bec0c7972326cf28a98712">00143</a> <span class="preprocessor">#define PA_CVOLUME_SNPRINT_MAX 320</span>
<a name="l00144"></a>00144 <span class="preprocessor"></span>
<a name="l00146"></a>00146 <span class="keywordtype">char</span> *<a class="code" href="volume_8h.html#99f2e389f425b888d3a02ade86d7c85f" 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);
<a name="l00147"></a>00147 
<a name="l00153"></a><a class="code" href="volume_8h.html#c516da5ed0f43f2ff41792fef4466115">00153</a> <span class="preprocessor">#define PA_SW_CVOLUME_SNPRINT_DB_MAX 448</span>
<a name="l00154"></a>00154 <span class="preprocessor"></span>
<a name="l00156"></a>00156 <span class="keywordtype">char</span> *<a class="code" href="volume_8h.html#af68a0e6959d18e192104802aab25717" 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);
<a name="l00157"></a>00157 
<a name="l00163"></a><a class="code" href="volume_8h.html#80190278ec6e8506092d3d57d309234f">00163</a> <span class="preprocessor">#define PA_VOLUME_SNPRINT_MAX 10</span>
<a name="l00164"></a>00164 <span class="preprocessor"></span>
<a name="l00166"></a>00166 <span class="keywordtype">char</span> *<a class="code" href="volume_8h.html#379a97102f5b88dc82ccccffc95b8aac" 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#6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; &amp;lt; PA_VOLUME_NORM: decreased volume;...">pa_volume_t</a> v);
<a name="l00167"></a>00167 
<a name="l00173"></a><a class="code" href="volume_8h.html#98deb2bff93c29e036c4cc14ad3d2e8f">00173</a> <span class="preprocessor">#define PA_SW_VOLUME_SNPRINT_DB_MAX 10</span>
<a name="l00174"></a>00174 <span class="preprocessor"></span>
<a name="l00176"></a>00176 <span class="keywordtype">char</span> *<a class="code" href="volume_8h.html#bcf6e407dfaec50edc13a994b2b0d9f9" 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#6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; &amp;lt; PA_VOLUME_NORM: decreased volume;...">pa_volume_t</a> v);
<a name="l00177"></a>00177 
<a name="l00179"></a>00179 <a class="code" href="volume_8h.html#6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; &amp;lt; PA_VOLUME_NORM: decreased volume;...">pa_volume_t</a> <a class="code" href="volume_8h.html#0f34f2c6d1b4738bf7f11ff06775dc1f" 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#a1c5f50faa1073e28ba469b86f6a0548" title="This function&amp;#39;s return value depends only the arguments list and global state...">PA_GCC_PURE</a>;
<a name="l00180"></a>00180 
<a name="l00182"></a>00182 <a class="code" href="volume_8h.html#6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; &amp;lt; PA_VOLUME_NORM: decreased volume;...">pa_volume_t</a> <a class="code" href="volume_8h.html#8d65b3af7da133c78ce9def86ea54ba9" 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#a1c5f50faa1073e28ba469b86f6a0548" title="This function&amp;#39;s return value depends only the arguments list and global state...">PA_GCC_PURE</a>;
<a name="l00183"></a>00183 
<a name="l00185"></a>00185 <span class="keywordtype">int</span> <a class="code" href="volume_8h.html#ba14d00682b29838ef39ca5a9afe8972" 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#a1c5f50faa1073e28ba469b86f6a0548" title="This function&amp;#39;s return value depends only the arguments list and global state...">PA_GCC_PURE</a>;
<a name="l00186"></a>00186 
<a name="l00188"></a>00188 <span class="keywordtype">int</span> <a class="code" href="volume_8h.html#2dd140d5c2fadd1d8cb7aa0eace05109" 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#6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; &amp;lt; PA_VOLUME_NORM: decreased volume;...">pa_volume_t</a> v) <a class="code" href="gccmacro_8h.html#a1c5f50faa1073e28ba469b86f6a0548" title="This function&amp;#39;s return value depends only the arguments list and global state...">PA_GCC_PURE</a>;
<a name="l00189"></a>00189 
<a name="l00191"></a><a class="code" href="volume_8h.html#6b8766a2f30420a83457d2e1f0f139b2">00191</a> <span class="preprocessor">#define pa_cvolume_is_muted(a) pa_cvolume_channels_equal_to((a), PA_VOLUME_MUTED)</span>
<a name="l00192"></a>00192 <span class="preprocessor"></span>
<a name="l00194"></a><a class="code" href="volume_8h.html#0b374bbe16de9ac047fc4e5f6994390c">00194</a> <span class="preprocessor">#define pa_cvolume_is_norm(a) pa_cvolume_channels_equal_to((a), PA_VOLUME_NORM)</span>
<a name="l00195"></a>00195 <span class="preprocessor"></span>
<a name="l00199"></a>00199 <a class="code" href="volume_8h.html#6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; &amp;lt; PA_VOLUME_NORM: decreased volume;...">pa_volume_t</a> <a class="code" href="volume_8h.html#1ca01f5bd640e7c5b2d3a6dad9093226" title="Multiply two volume specifications, return the result.">pa_sw_volume_multiply</a>(<a class="code" href="volume_8h.html#6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; &amp;lt; PA_VOLUME_NORM: decreased volume;...">pa_volume_t</a> a, <a class="code" href="volume_8h.html#6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; &amp;lt; PA_VOLUME_NORM: decreased volume;...">pa_volume_t</a> b) <a class="code" href="gccmacro_8h.html#318a98dce3b37977670c87a74c173b16" title="This function&amp;#39;s return value depends only the arguments list (stricter version...">PA_GCC_CONST</a>;
<a name="l00200"></a>00200 
<a name="l00203"></a>00203 <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#6ae924bdad225c405c1e2f40c22b041b" 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);
<a name="l00204"></a>00204 
<a name="l00209"></a>00209 <a class="code" href="volume_8h.html#6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; &amp;lt; PA_VOLUME_NORM: decreased volume;...">pa_volume_t</a> <a class="code" href="volume_8h.html#dcf659351cef912786f53132664fa2b4" title="Divide two volume specifications, return the result.">pa_sw_volume_divide</a>(<a class="code" href="volume_8h.html#6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; &amp;lt; PA_VOLUME_NORM: decreased volume;...">pa_volume_t</a> a, <a class="code" href="volume_8h.html#6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; &amp;lt; PA_VOLUME_NORM: decreased volume;...">pa_volume_t</a> b) <a class="code" href="gccmacro_8h.html#318a98dce3b37977670c87a74c173b16" title="This function&amp;#39;s return value depends only the arguments list (stricter version...">PA_GCC_CONST</a>;
<a name="l00210"></a>00210 
<a name="l00213"></a>00213 <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#7392cdb5137cedc579891ac4c8c6ff7d" title="Multiply to 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);
<a name="l00214"></a>00214 
<a name="l00216"></a>00216 <a class="code" href="volume_8h.html#6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; &amp;lt; PA_VOLUME_NORM: decreased volume;...">pa_volume_t</a> <a class="code" href="volume_8h.html#d638dfbc737f126e743584665ea8f557" title="Convert a decibel value to a volume.">pa_sw_volume_from_dB</a>(<span class="keywordtype">double</span> f) <a class="code" href="gccmacro_8h.html#318a98dce3b37977670c87a74c173b16" title="This function&amp;#39;s return value depends only the arguments list (stricter version...">PA_GCC_CONST</a>;
<a name="l00217"></a>00217 
<a name="l00219"></a>00219 <span class="keywordtype">double</span> <a class="code" href="volume_8h.html#297851419c1e994d9fd2cfbb49aa480a" title="Convert a volume to a decibel value.">pa_sw_volume_to_dB</a>(<a class="code" href="volume_8h.html#6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; &amp;lt; PA_VOLUME_NORM: decreased volume;...">pa_volume_t</a> v) <a class="code" href="gccmacro_8h.html#318a98dce3b37977670c87a74c173b16" title="This function&amp;#39;s return value depends only the arguments list (stricter version...">PA_GCC_CONST</a>;
<a name="l00220"></a>00220 
<a name="l00222"></a>00222 <a class="code" href="volume_8h.html#6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; &amp;lt; PA_VOLUME_NORM: decreased volume;...">pa_volume_t</a> <a class="code" href="volume_8h.html#afb4825a03178ee327e55ae0866b7471" 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#318a98dce3b37977670c87a74c173b16" title="This function&amp;#39;s return value depends only the arguments list (stricter version...">PA_GCC_CONST</a>;
<a name="l00223"></a>00223 
<a name="l00225"></a>00225 <span class="keywordtype">double</span> <a class="code" href="volume_8h.html#04da6c4572a758a0244bbfc81d370cfb" title="Convert a volume to a linear factor.">pa_sw_volume_to_linear</a>(<a class="code" href="volume_8h.html#6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; &amp;lt; PA_VOLUME_NORM: decreased volume;...">pa_volume_t</a> v) <a class="code" href="gccmacro_8h.html#318a98dce3b37977670c87a74c173b16" title="This function&amp;#39;s return value depends only the arguments list (stricter version...">PA_GCC_CONST</a>;
<a name="l00226"></a>00226 
<a name="l00227"></a>00227 <span class="preprocessor">#ifdef INFINITY</span>
<a name="l00228"></a>00228 <span class="preprocessor"></span><span class="preprocessor">#define PA_DECIBEL_MININFTY ((double) -INFINITY)</span>
<a name="l00229"></a>00229 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00230"></a>00230 <span class="preprocessor"></span>
<a name="l00231"></a><a class="code" href="volume_8h.html#e0b917d42c58310ed848916058d75f27">00231</a> <span class="preprocessor">#define PA_DECIBEL_MININFTY ((double) -200.0)</span>
<a name="l00232"></a>00232 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00233"></a>00233 <span class="preprocessor"></span>
<a name="l00235"></a>00235 <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#5eab9b175690ff534492673ad30ed2e7" 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);
<a name="l00236"></a>00236 
<a name="l00239"></a>00239 <span class="keywordtype">int</span> <a class="code" href="volume_8h.html#9f315d36ea592c0e91407db899e5fab5" 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#a1c5f50faa1073e28ba469b86f6a0548" title="This function&amp;#39;s return value depends only the arguments list and global state...">PA_GCC_PURE</a>;
<a name="l00240"></a>00240 
<a name="l00243"></a>00243 <span class="keywordtype">int</span> <a class="code" href="volume_8h.html#15263326cff59a120509bafd24565c1d" 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#a1c5f50faa1073e28ba469b86f6a0548" title="This function&amp;#39;s return value depends only the arguments list and global state...">PA_GCC_PURE</a>;
<a name="l00244"></a>00244 
<a name="l00250"></a>00250 <span class="keywordtype">float</span> <a class="code" href="volume_8h.html#ffea337dd40255580c9de68799e569d1" title="Calculate a &amp;#39;balance&amp;#39; value for the specified volume with the specified channel...">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#a1c5f50faa1073e28ba469b86f6a0548" title="This function&amp;#39;s return value depends only the arguments list and global state...">PA_GCC_PURE</a>;
<a name="l00251"></a>00251 
<a name="l00261"></a>00261 <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#0cad9c475a9a318c433f12ff019d7fec" title="Adjust the &amp;#39;balance&amp;#39; value for the specified volume with the specified channel...">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);
<a name="l00262"></a>00262 
<a name="l00268"></a>00268 <span class="keywordtype">float</span> <a class="code" href="volume_8h.html#af78aa9297c11860338ffa3c958f9a36" title="Calculate a &amp;#39;fade&amp;#39; 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#a1c5f50faa1073e28ba469b86f6a0548" title="This function&amp;#39;s return value depends only the arguments list and global state...">PA_GCC_PURE</a>;
<a name="l00269"></a>00269 
<a name="l00279"></a>00279 <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#4379c7e84379121f4baaba0aefaf76ee" title="Adjust the &amp;#39;fade&amp;#39; 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);
<a name="l00280"></a>00280 
<a name="l00284"></a>00284 <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#175fa9c547655cd868b4812755a0a113" title="Scale the passed pa_cvolume structure so that the maximum volume of all channels...">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#6d671c65284ff2e94d3773c7368a0352" title="Volume specification: PA_VOLUME_MUTED: silence; &amp;lt; PA_VOLUME_NORM: decreased volume;...">pa_volume_t</a> max);
<a name="l00285"></a>00285 
<a name="l00286"></a>00286 PA_C_DECL_END
<a name="l00287"></a>00287 
<a name="l00288"></a>00288 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Sep 2 04:18:19 2009 for PulseAudio by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>