CPU is up to 10% after pjsua_set_snd_dev()

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

 



Hi Ruud,

>> 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
>
> I've noticed exactly the same behaviour on Mac, it's a very annoying
> problem. Just having the sound device open seems to consume an inordinate
> amount of CPU cycles already. From what I've seen, it actually seems to be a
> PortAudio issue. I already went on their mailinglist to discuss the issue,
> but I didn't pursue the matter.
>
> Ruud Klaver
> AG Projects

I've solved this issure for me, but not shure if this is the most
correct way. It's only about adding one line into pjsua_media.c and
setting snd_auto_close_time=0. I've written about it here:
http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2008-November/005341.html

Alexei Kuznetsov



[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