[Freeswitch-users] Portaudio Improvements

Paulo Vicentini vizentini at hotmail.com
Fri Jan 28 14:51:05 MSK 2011


HiYou can try PortMixer for volume control that is intended to work along with PortAudio 
I am developing/testing "mod_portaudio2" that does not rely on pablio, maybe things will be better with this approach  Paulo
From: mitch.capper at gmail.com
Date: Sat, 22 Jan 2011 21:05:22 -0800
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Portaudio Improvements

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.   



~Mitch

On Sat, Jan 22, 2011 at 5:26 PM, Seven Du <dujinfang at gmail.com> wrote:


Thanks Mitch, I actually had tried the equivalent uuid_audio and looks

like it's the only way to do it for now. We had wanted to get energy

levels dynamically to show a live indication but we given up that

feature.





On Sun, Jan 23, 2011 at 2:52 AM, Mitch Capper <mitch.capper at gmail.com> wrote:

> It is true PA lacks volume control, it had been something I was debating.

> Adding gain is pretty simple as you are for the most part just multiplying

> up the samples I believe so would not be a major item to add to portaudio, I

> however decided not to go this route for two reasons.  1) In Windows each

> application has its own volume setting (Vista and higher),  and apps are

> starting to tie into this than internal volume controls.  The downside is it

> doesn't distort audio/have a gain option.   This is when I thought about

> allowing for a fixed gain amount added to portaudio.  2) Freeswitch actually

> has its own built in volume control settings with set_audio_level.

> set_audio_level allows for 9 settings (4 lower 4 higher) and seems to do a

> good job at digital volume control.

> Avoiding modifying the audio stream itself could also result in less

> distortion when using actual volume controls (headsets, etc).

>

> So if you want volume control I would say take a look at set_audio_level as

> it may be the simplest method.   Adding it to portaudio would work but one

> of the nice advantages of set_audio_level is the fact you can also do it per

> channel rather than globally:)

>

> ~Mitch

>

> On Fri, Jan 21, 2011 at 5:44 PM, Seven Du <dujinfang at gmail.com> wrote:

>>

>> In addition to AEC. I also found PA lacks the ability to change the

>> sound device volume. I tried to control sound devices in QT but

>> haven't find a way. Ideas on this?

>

>

> _______________________________________________

> FreeSWITCH-users mailing list

> FreeSWITCH-users at lists.freeswitch.org

> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users

> http://www.freeswitch.org

>

>







--

About: http://about.me/dujinfang

Blog: http://www.dujinfang.com

Proj:  http://www.freeswitch.org.cn



_______________________________________________

FreeSWITCH-users mailing list

FreeSWITCH-users at lists.freeswitch.org

http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users

http://www.freeswitch.org




_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110128/2d99a272/attachment.html 


More information about the FreeSWITCH-users mailing list