Ah well viewing volume levels had not been something I had looked into. It wouldn'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"><<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>></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'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 <<a href="mailto:mitch.capper@gmail.com">mitch.capper@gmail.com</a>> wrote:<br>
> It is true PA lacks volume control, it had been something I was debating.<br>
> Adding gain is pretty simple as you are for the most part just multiplying<br>
> up the samples I believe so would not be a major item to add to portaudio, I<br>
> however decided not to go this route for two reasons. 1) In Windows each<br>
> application has its own volume setting (Vista and higher), and apps are<br>
> starting to tie into this than internal volume controls. The downside is it<br>
> doesn't distort audio/have a gain option. This is when I thought about<br>
> allowing for a fixed gain amount added to portaudio. 2) Freeswitch actually<br>
> has its own built in volume control settings with set_audio_level.<br>
> set_audio_level allows for 9 settings (4 lower 4 higher) and seems to do a<br>
> good job at digital volume control.<br>
> Avoiding modifying the audio stream itself could also result in less<br>
> distortion when using actual volume controls (headsets, etc).<br>
><br>
> So if you want volume control I would say take a look at set_audio_level as<br>
> it may be the simplest method. Adding it to portaudio would work but one<br>
> of the nice advantages of set_audio_level is the fact you can also do it per<br>
> channel rather than globally:)<br>
><br>
> ~Mitch<br>
><br>
> On Fri, Jan 21, 2011 at 5:44 PM, Seven Du <<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>> wrote:<br>
>><br>
>> In addition to AEC. I also found PA lacks the ability to change the<br>
>> sound device volume. I tried to control sound devices in QT but<br>
>> haven't find a way. Ideas on this?<br>
><br>
><br>
</div></div><div><div></div><div class="h5">> _______________________________________________<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>
><br>
><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>