%CPU 7.2

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

 



Hi Benny,

This will be a good idea, because on iphone/ipod touch, when you active 
microphone, OS use 80% of CPU.
So if the sound device is just running when there is a call, the battery 
life will be bigger.

Thanks,

Samuel

Benny Prijono a ?crit :
> On Wed, Apr 23, 2008 at 5:52 AM, Alexei Kuznetsov <eofster at gmail.com> wrote:
>> Hi,
>>
>>  I'm using pjsua-lib from pjproject-0.8.0 and from the latest checkout
>>  on Mac OS X 10.5.2 (Intel). With the minimum code provided below, "ps
>>  aux" shows about 7.2 in %CPU. This is after "sound_port.c EC suspended
>>  because of inactivity" console output. Is that the way it should be?
>>
> 
> Probably yes. In PJSUA-LIB, sound device is always running even when
> there is no call active. This is something that we may change in the
> future.
> 
> Cheers
>  Benny
> 
>>  #include <pjsua-lib/pjsua.h>
>>
>>  int
>>  main(int argc, char *argv[])
>>  {
>>         pjsua_create();
>>         pjsua_init(NULL, NULL, NULL);
>>         pjsua_start();
>>
>>         for (;;) {
>>                 char option[10];
>>
>>                 fgets(option, sizeof (option), stdin);
>>
>>                 if (option[0] == 'q')
>>                         break;
>>         }
>>
>>         pjsua_destroy();
>>
>>         return 0;
>>  }
>>
>>  --
>>  Alexei Kuznetsov
>>
>>
>>  _______________________________________________
>>  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