HI all, i would like to know from where we can get the algorithm of this part of the code which you have implemented... it lies in the pjsip-apps/src/samples/level.c repository... and the part of the code i am refering to is .. for (i=0; i<COUNT; ++i) { 00136 pj_int16_t <http://www.pjsip.org/pjlib/docs/html/group__PJ__BASIC.htm#ga1bc332ac2d70cd1a23adef144571790f> framebuf[NSAMPLES]; 00137 pjmedia_frame <http://www.pjsip.org/pjmedia/docs/html/structpjmedia__frame.htm> frm; 00138 pj_int32_t <http://www.pjsip.org/pjlib/docs/html/group__PJ__BASIC.htm#gac65eeb4771a6fc34225302fee5bcb7e2> level32; 00139 unsigned ms; 00140 int level; 00141 00142 frm.buf <http://www.pjsip.org/pjmedia/docs/html/structpjmedia__frame.htm#adaef949faa0309df6383c2955d4405af> = framebuf; 00143 frm.size <http://www.pjsip.org/pjmedia/docs/html/structpjmedia__frame.htm#aef71e5daee31e30f0222aaca74819792> = sizeof(framebuf); 00144 00145 pjmedia_port_get_frame <http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__PORT.htm#gabb664bcbd6c07ac3b0b4793a68c9a757>(file_port, &frm); 00146 00147 level32 = pjmedia_calc_avg_signal <http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__SILENCEDET.htm#gaf2f16dcbcce6f9ad437f358e8a42ef02>(framebuf, 00148 file_port->info <http://www.pjsip.org/pjmedia/docs/html/structpjmedia__port.htm#a1003b9085848f0a1ad3a3af9a760cbdb>.samples_per_frame <http://www.pjsip.org/pjmedia/docs/html/structpjmedia__port__info.htm#afd0e1dca00660c509808a09ba3135e5c>); 00149 level = pjmedia_linear2ulaw(level32) ^ 0xFF; 00150 00151 ms = i * 1000 * file_port->info <http://www.pjsip.org/pjmedia/docs/html/structpjmedia__port.htm#a1003b9085848f0a1ad3a3af9a760cbdb>.samples_per_frame <http://www.pjsip.org/pjmedia/docs/html/structpjmedia__port__info.htm#afd0e1dca00660c509808a09ba3135e5c> / 00152 file_port->info <http://www.pjsip.org/pjmedia/docs/html/structpjmedia__port.htm#a1003b9085848f0a1ad3a3af9a760cbdb>.clock_rate <http://www.pjsip.org/pjmedia/docs/html/structpjmedia__port__info.htm#a67150be4ab8cf4855fe8ca75156d9f61>; 00153 printf("%03d.%03d\t%7d\t%7d\n", 00154 ms/1000, ms%1000, level, level32); 00155 } ...Thanks in advance. john Smith. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20101231/a6102347/attachment.html>