Ah well viewing volume levels had not been something I had looked into.  It wouldn&#39;t be too hard but the question is how do you constantly report that (FS event every second? every half second? port audio commands to return that value frequently?).  If your client is windows however again the native windows volume handler for apps does also keep track of their current output.   <br>

<br>~Mitch<br><br><div class="gmail_quote">On Sat, Jan 22, 2011 at 5:26 PM, Seven Du <span dir="ltr">&lt;<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Thanks Mitch, I actually had tried the equivalent uuid_audio and looks<br>
like it&#39;s the only way to do it for now. We had wanted to get energy<br>
levels dynamically to show a live indication but we given up that<br>
feature.<br>
<div><div></div><div class="h5"><br>
<br>
On Sun, Jan 23, 2011 at 2:52 AM, Mitch Capper &lt;<a href="mailto:mitch.capper@gmail.com">mitch.capper@gmail.com</a>&gt; wrote:<br>
&gt; It is true PA lacks volume control, it had been something I was debating.<br>
&gt; Adding gain is pretty simple as you are for the most part just multiplying<br>
&gt; up the samples I believe so would not be a major item to add to portaudio, I<br>
&gt; however decided not to go this route for two reasons.  1) In Windows each<br>
&gt; application has its own volume setting (Vista and higher),  and apps are<br>
&gt; starting to tie into this than internal volume controls.  The downside is it<br>
&gt; doesn&#39;t distort audio/have a gain option.   This is when I thought about<br>
&gt; allowing for a fixed gain amount added to portaudio.  2) Freeswitch actually<br>
&gt; has its own built in volume control settings with set_audio_level.<br>
&gt; set_audio_level allows for 9 settings (4 lower 4 higher) and seems to do a<br>
&gt; good job at digital volume control.<br>
&gt; Avoiding modifying the audio stream itself could also result in less<br>
&gt; distortion when using actual volume controls (headsets, etc).<br>
&gt;<br>
&gt; So if you want volume control I would say take a look at set_audio_level as<br>
&gt; it may be the simplest method.   Adding it to portaudio would work but one<br>
&gt; of the nice advantages of set_audio_level is the fact you can also do it per<br>
&gt; channel rather than globally:)<br>
&gt;<br>
&gt; ~Mitch<br>
&gt;<br>
&gt; On Fri, Jan 21, 2011 at 5:44 PM, Seven Du &lt;<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; In addition to AEC. I also found PA lacks the ability to change the<br>
&gt;&gt; sound device volume. I tried to control sound devices in QT but<br>
&gt;&gt; haven&#39;t find a way. Ideas on this?<br>
&gt;<br>
&gt;<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
About: <a href="http://about.me/dujinfang" target="_blank">http://about.me/dujinfang</a><br>
Blog: <a href="http://www.dujinfang.com" target="_blank">http://www.dujinfang.com</a><br>
Proj:  <a href="http://www.freeswitch.org.cn" target="_blank">http://www.freeswitch.org.cn</a><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>