[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Newbie question

From: Simon Morlat
Subject: Re: [Linphone-developers] Newbie question
Date: Tue, 4 Apr 2006 10:31:36 +0200
User-agent: KMail/1.9.1

Thanks Kosta for this correct explanation !

I just wanted to add that mediastreamer directory is becoming obsolete in 
favour of mediastreamer2, which is the basically the same architecture but 
with much much more simpler coding techniques (no more by-hand inheriting).
In cvs the whole linphone is now switched to mediastreamer2, with the same 
functionnality as before (+ some additions), but the code has been reduced 
I think mediastreamer2 is easier to understand.


Le Mardi 28 Mars 2006 12:48, Kosta Welke a écrit :
> Asim Jamshed wrote:
> > I wish to modify the linphone source code slightly... Instead of
> > receiving calls, I wish to morph it into an answering machine... so
> > that whenever someone calls my linphone, its audio clip is saved in a
> > file.
> Maybe you also want to play a message before recording? :)
> > Since I am entirely new to the OSS architecture,
> linphone is sound-architecture-independent :)
>  > I need guidance
> >
> > to understand the entire architecture of linphone. Thanx,
> You have to decide if you want to save the call as wave file, in the
> codec format used by RTP (GSM, ulaw, speex, ...) or in a different
> format (ogg, mp3).
> Basically, instead of writing to the sound card, you need to write to a
> file. linphone has a struct called MSFilter. Multiple filters are used
> to build a filter chain. Each filter does one step of the en/de-coding
> process, like read from a soundcard, write to a soundcard, encode to
> codec, decode to codec, etc. To see an example, use the console client
> linphonec, it displays the filter chains it builts.
> MSFilter are a bit hard to understand in the beginnning. If you are
> familiar with C++, think of pure virtual member functions. Only, as it
> is C, not C++, its done using function pointers in the init function
> (which basically takes the role of the constructor)
> The process functions do the actual work.
> What you would need to do is write a new MSFilter that saves to/reads
> from a file instead of the soundcard.
> HTH,
> Kosta
> _______________________________________________
> Linphone-developers mailing list
> address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]