The same parameter exists in pjsua media config. pjsua_media_config_default(&(app_config->media_cfg)); app_config->media_cfg.snd_auto_close_time = 0; Samuel > Message du 06/11/08 18:32 > De : "Alexei Kuznetsov" > A : "samuel.vinson" , "pjsip list" > Copie ? : > Objet : Re: [pjsip] CPU is up to 10% after pjsua_set_snd_dev() > > Thanks, I didn't know about that parameter. Just tried it. It helped in case of pjsua app: cpu usage decreases to less than 1% after making a call. But if I use pjsua-lib and call pjsua_set_snd_dev(), cpu usage stays high. Alexei On Thu, Nov 6, 2008 at 8:00 PM, samuel.vinson wrote: > > Did you try to use auto-sound-close parameter with value=0 ? > > Samuel > > > >> Message du 06/11/08 13:57 >> De : "Alexei Kuznetsov" >> A : "pjsip list" >> Copie ? : >> Objet : Re: [pjsip] CPU is up to 10% after pjsua_set_snd_dev() > >> >> >> I mean, the application uses 10% of cpu without any media active. >> Also, pjsua without any params uses less than 1% cpu after start-up, >> but 10% after the first call. Is it something you could improve in the >> future? Or is it the design, or is it not up to pjproject but to other >> code pjrpoject uses? Is it on a Mac only? >> >> -- >> Best regards, >> Alexei >> >> On Thu, Nov 6, 2008 at 12:05 PM, Nanang Izzuddin wrote: >> > Hi, >> > >> > I guess that's normal, I experienced about the same with echo >> > canceller enabled (running pjsua without any params). >> > >> > Regards, >> > nanang >> > >> > >> > On Thu, Nov 6, 2008 at 5:45 AM, Alexei Kuznetsov wrote: >> >> Hi, >> >> >> >> After calling pjsua_set_snd_dev() CPU loads up to 10%. Mac OS X 10.5.5, >> >> Intel. >> >> >> >> Is that an ussue or a normal behavior? >> >> >> >> -- >> >> Best regards, >> >> Alexei Kuznetsov Cr?ez votre adresse ?lectronique prenom.nom at laposte.net 1 Go d'espace de stockage, anti-spam et anti-virus int?gr?s. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20081106/f00e8eca/attachment.html>