%CPU 7.2

AK
Alexei Kuznetsov
Wed, Apr 23, 2008 4:52 AM

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?

#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

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? #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
BP
Benny Prijono
Wed, Apr 23, 2008 4:10 PM

On Wed, Apr 23, 2008 at 5:52 AM, Alexei Kuznetsov eofster@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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

On Wed, Apr 23, 2008 at 5:52 AM, Alexei Kuznetsov <eofster@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@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
SV
Samuel Vinson
Wed, Apr 23, 2008 7:06 PM

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@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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

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@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@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >