Tone generation by frequency modulation(f1*f2) and conjugation(f1+f2) !! ???

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

 



Hi Vikas,

The tonegen generates sin wave of both specified freqs, in
get_frame(), the sum of all amplitudes is returned. Don't know the
signal processing term.

If your need other alternative, just implement it using pjmedia port
framework, so your app can use it in the same way as tonegen or any
other pjmedia ports.

BR,
nanang


On Wed, Nov 16, 2011 at 11:30 AM, Vikas Khanna <vikas_60060 at yahoo.co.in> wrote:
>
> Hey thanks for your answer...:)
> ?and by wrong freq i mean inappropriate freq..(may be i am wrong,ignore the point if such :) )
> Now i want to know that,yes "tonegen" plays dual tone that i know,but does it mixes frequencies based on modulation(*) or conjugation(+) ??? and surely it does only 1 of them,then how to make other alternative possible?
> ?and what is use of 'freq2' in 'tonegen'?? becoz in documentation it is stated that freq2 is optional !!
>
> Thanks in advance,
> Vikas Khanna.
>
> --- On Wed, 16/11/11, Nanang Izzuddin <nanang at pjsip.org> wrote:
>
> From: Nanang Izzuddin <nanang@xxxxxxxxx>
> Subject: Re: Tone generation by frequency modulation(f1*f2) and conjugation(f1+f2) !! ???
> To: "pjsip list" <pjsip at lists.pjsip.org>
> Date: Wednesday, 16 November, 2011, 3:54 AM
>
> Hi Vikas,
>
> Not really sure how freq can be wrong :)
>
> FYI, the tonegen can generate dual tone (dial/ring/ringback/etc) by
> mixing samples of both freqs (freq modulation?).
>
> BR,
> nanang
>
>
> On Tue, Nov 15, 2011 at 4:22 PM, Vikas Khanna <vikas_60060 at yahoo.co.in> wrote:
> >
> > Hi,
> > Can anyone help regarding generating tone based on frequency modulation and frequency conjugation??????
> >
> > pjmedia_tone_desc tones[1];
> >
> >? ? ? ? ? tones[0].freq1 = 200;
> >? ? ? ? ? tones[0].freq2 = 0;
> >? ? ? ? ? tones[0].on_msec = ON_DURATION;
> >? ? ? ? ? tones[0].off_msec = OFF_DURATION;
> >
> > status = pjmedia_tonegen_play(port, 1, tones, 0);
> >
> > Here 'freq2' is frequency which is used only if 'freq1' is wrong..
> > ON_DURATION & OFF-DURATION refers to time in ms?unto?which tone should be on and off respectively...
> > Now i want that when i provide 2 frequencies it should do modulation(*) and/or conjugation(+) and generate ring accordingly!!
> > Can anybody help with it???????
> > It is same as generation of various tone like dial tone,busy tone,error tone....etc
> > Thanks,
> > Vikas Khanna.
> > _______________________________________________
> > Visit our blog: http://blog.pjsip.org
> >
> > pjsip mailing list
> > pjsip at lists.pjsip.org
> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> >
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux