summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsua-lib
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2008-06-13 17:01:46 +0000
committerNanang Izzuddin <nanang@teluu.com>2008-06-13 17:01:46 +0000
commite3399b0820e6010b0a2d423261d54111af63e528 (patch)
tree06cb5c02a9de8441b964f66b8c46da72f936a7b6 /pjsip/include/pjsua-lib
parentb7242dd477e952452a5c01b8ab49ae7e41463683 (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/pjsua-lib')
-rw-r--r--pjsip/include/pjsua-lib/pjsua.h8
-rw-r--r--pjsip/include/pjsua-lib/pjsua_internal.h2
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. */