diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2008-06-13 17:01:46 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2008-06-13 17:01:46 +0000 |
commit | e3399b0820e6010b0a2d423261d54111af63e528 (patch) | |
tree | 06cb5c02a9de8441b964f66b8c46da72f936a7b6 /pjsip/include | |
parent | b7242dd477e952452a5c01b8ab49ae7e41463683 (diff) |
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
Diffstat (limited to 'pjsip/include')
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua.h | 8 | ||||
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua_internal.h | 2 |
2 files changed, 10 insertions, 0 deletions
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. */ |