[python] When should I call set_snd_dev?

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

 



On Thu, Mar 19, 2009 at 10:42 PM, Sa?l Ibarra <saghul at gmail.com> wrote:

> Hi!
>
> I'm having some trouble when setting the sound device: I'm calling the
> set_snd_dev function when my pjsip application starts, but it causes
> an error when another application is using the sound card.
>
>
That's always the problem indeed. Not to mention that opening the sound
device all the time consumes CPU power hence will affect battery use on
mobile devices.


> Is it better to set the sound device just when Ireceive an incomming
> call or I make an outgoing call?
>
>
>
Best way is to set pjsua_media_config.snd_auto_close_time to >= 0, to let
pjsua-lib open and close the sound device automatically when it's needed/not
needed. This has been made as default setting in release 1.1.

cheers
 Benny




>
> Thanks in advance for any help!
>
> --
> Sa?l -- "Nunca subestimes el ancho de banda de un cami?n lleno de
> disketes."
> ----------------------------------------------------------------
> http://www.saghul.net/
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090320/acd4590b/attachment-0001.html>


[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