From e3399b0820e6010b0a2d423261d54111af63e528 Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Fri, 13 Jun 2008 17:01:46 +0000 Subject: Ticket #540: Added pjsua-lib feature auto-close sound device on idle and new pjsua option --snd-auto-close=N git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2018 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/include/pjsua-lib/pjsua.h | 8 ++++++++ pjsip/include/pjsua-lib/pjsua_internal.h | 2 ++ 2 files changed, 10 insertions(+) (limited to 'pjsip/include') diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index 21d8ffb1..0ee97f9c 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -3908,6 +3908,14 @@ struct pjsua_media_config * Specify the credential to authenticate with the TURN server. */ pj_stun_auth_cred turn_auth_cred; + + /** + * Specify idle time of sound device before it is automatically closed, + * in seconds. + * + * Default : -1 (Disable the auto-close feature of sound device) + */ + int snd_auto_close_time; }; diff --git a/pjsip/include/pjsua-lib/pjsua_internal.h b/pjsip/include/pjsua-lib/pjsua_internal.h index dfb9f84a..766d8782 100644 --- a/pjsip/include/pjsua-lib/pjsua_internal.h +++ b/pjsip/include/pjsua-lib/pjsua_internal.h @@ -236,7 +236,9 @@ struct pjsua_data int cap_dev; /**< Capture device ID. */ int play_dev; /**< Playback device ID. */ pj_bool_t no_snd; /**< No sound (app will manage it) */ + pj_pool_t *snd_pool; /**< Sound's private pool. */ pjmedia_snd_port *snd_port; /**< Sound port. */ + pj_timer_entry snd_idle_timer;/**< Sound device idle timer. */ pjmedia_master_port *null_snd; /**< Master port for null sound. */ pjmedia_port *null_port; /**< Null port. */ -- cgit v1.2.3