[Freeswitch-users] implementing stereo (e.g. portaudio to test it easily)

MatzeMuc86 matzemuc86 at gmail.com
Fri Feb 25 13:16:31 MSK 2011


Hello,

 

OK I'm sure that I am not such an expert. I have done some C, but it's in
the past (which shouldn't be a big problem). C++ is a bigger problem but it
seams to be C, not C++ (?).

 

Of course I read the book, played with freeswitch and did some debugging
(problems with debugging are written below).

 

I created a stream local media extension to play a stereo 32 kHz wav file.

So far it is down mixed to mono in the switch_core_file.c file.

I could find an online documentation about this c file by doxygen:
http://www.freeswitch.org/eg/dox/switch__core__file_8c.html

I checked the code and found some positions where fh->channels have to be >
1.

 

All in all I can try to get these functions ready for stereo, but I have the
feeling that this is only one very small problem regarding to my whole idea.

 

I think about debugging the whole "pa call 1987" progress but therefore I
need to know where to put the first debug point => where does the program
starts executing my custom extension?

 

In addition: Is there some further documentation or is the doxygen, mostly
the same as the pure C code, all I can get for code-documentations (e.g.
what are all the variables, what are the ideas e.g.).

 

Thanks a lot

MatzeMuc86

 

Von: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] Im Auftrag von
Michael Collins
Gesendet: Freitag, 25. Februar 2011 04:20
An: FreeSWITCH Users Help
Betreff: Re: [Freeswitch-users] implementing stereo (e.g. portaudio to test
it easily)

 

Hehe,

 

In other words, you didn't tell him: Just flip this switch and you can have
stereo. :) It's a lot of work but an expert could definitely do it.

 

DISCLAIMER: I am not such an expert. :P

 

-MC

On Thu, Feb 24, 2011 at 3:47 PM, Grmt <garmt.noname at gmail.com> wrote:

If I remember well I think you mentioned that anthm said that it was
possible.

I just gave you a quick intro into FS.

 

Did you buy the book? And read it?

Did you spend at least a week playing with FS?

Did you spend at least that amount of time with your development
environment?

Did you debug the scenario I presented to you and inspect  the source code?

 

If you did, you should be able to make a rough order of magnitude estimation
of the effort needed to make this scenario do stereo. And additionally, you
would know if your skills and tenacity match the task you have set out for
yourself. 

 

Given your background and the amount of time you have, I think you should be
able to do your project.

I would start by looking at the code right there were it tells you that it
converts to mono.

 

And again, given my level of expertise in FS or coding or codecs or
whatever, I cannot help you any further, but I hope to see you become a FS
expert so that I can have a stereo conversation with you in a few months.

 

 

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
MatzeMuc86
Sent: Thursday, 24 February, 2011 21:49
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] implementing stereo (e.g. portaudio to test
it easily)

 

Are you sure?
I had a diskussion at the IRC dev channel and Grmt told me it should be
possible.
It is quite important for me and i do not ask somebody to implement this for
me.

Thanks
MatzeMuc86

2011/2/24 Michael Collins <msc at freeswitch.org>

Sorry, FreeSWITCH is not set up to do stereo... perhaps one day, but it
isn't something that is high on the priority list.

 

-MC

On Thu, Feb 24, 2011 at 9:22 AM, MatzeMuc86 <matzemuc86 at gmail.com> wrote:

hello FreeSWITCH community,

actually it is my first time to use lists like this. I hope I do everything
fine.
For my project I try to get stereo (and some special features later)
integrated in freeSWITCH, especially SIP.
TO start with this idea I need to know where I have to activate or implement
stereo.
In the second I try to play a bit with the portaudio module as I do not have
to focus on SDP problems transporting SIP and the need of a SIP client which
is able to receive stereo.
So I set up some custom moh local media stuff which works finde - using
mono.
Changing the channels to 2 makes the console telling me that the sound file
will be mixed to mono and the sound is quite strange.
I would be happy about getting some useful information which modules or
configs are the important ones for my idea. Unfurtun ately I have only found
some recording stuff about stereo which is not what I want to do.

Thank you very much.
MatzeMuc86

_______________________________________________
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/20110225/7cb00a12/attachment-0001.html 


More information about the FreeSWITCH-users mailing list