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,

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
>



[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