[Freeswitch-users] Portaudio Improvements

vip killa vipkilla at gmail.com
Fri Jan 28 16:48:51 MSK 2011


It would be very cool to be able to send audio to portaudio from another
program using something like PulseAudio. For instance I am running a
freeswitch box with no soundcard but i want to be able to send audio from a
program such as MPD to freeswitch. Could something like this be possible in
PA2?

2011/1/28 João Mesquita <jmesquita at freeswitch.org>

> Paulo,
>
> What is the current status of PA with non-blocking I/O? A little while ago
> it was not moving forward and pablio was the only way out of it. What are
> your plans? Maybe some of us can help?
>
> Regards,
> João Mesquita
>
>
>
> On Fri, Jan 28, 2011 at 9:54 AM, Tamas Jalsovszky <jalsot at gmail.com>wrote:
>
>> Wow, I didn't even know that somebody is working on PA2.
>> Paulo, could you share some more information about that module? Why would
>> somebody use it instead of the current one? Advantages/disadvantages?
>> Is the source code available somewhere? Do you have a roadmap for the
>> module? :)
>>
>> Regards,
>>   Tamas
>>
>>
>> On Fri, Jan 28, 2011 at 12:51 PM, Paulo Vicentini <vizentini at hotmail.com>wrote:
>>
>>>  Hi
>>> You 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-usersUNSUBSCRIBE:
>>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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/870214ed/attachment-0001.html 


More information about the FreeSWITCH-users mailing list