summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsua-lib
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-10-06 17:31:09 +0000
committerBenny Prijono <bennylp@teluu.com>2007-10-06 17:31:09 +0000
commit19ec25d341a9d1dfceed588df7a578ea0fa464ba (patch)
treed008d1f2e352c1c798694adc8e95fffccb9cd6ad /pjsip/include/pjsua-lib
parentfa298fdd0586f32c551f14bda9b722742a837a00 (diff)
Ticket #393: Added configuration to set basic audio frame length to minimize audio latency in pjsua-lib
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1482 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsua-lib')
-rw-r--r--pjsip/include/pjsua-lib/pjsua.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h
index 062943b7..fad79178 100644
--- a/pjsip/include/pjsua-lib/pjsua.h
+++ b/pjsip/include/pjsua-lib/pjsua.h
@@ -1744,7 +1744,7 @@ PJ_DECL(pj_status_t) pjsua_transport_close( pjsua_transport_id id,
* either "sip" or "sips".
*/
#ifndef PJSUA_SECURE_SCHEME
-# define PJSUA_SECURE_SCHEME "sip"
+# define PJSUA_SECURE_SCHEME "sips"
#endif
@@ -3466,6 +3466,16 @@ struct pjsua_media_config
unsigned clock_rate;
/**
+ * Specify audio frame ptime. The value here will affect the
+ * samples per frame of both the sound device and the conference
+ * bridge. Specifying lower ptime will normally reduce the
+ * latency.
+ *
+ * Default: 20 (miliseconds)
+ */
+ unsigned audio_frame_ptime;
+
+ /**
* Specify maximum number of media ports to be created in the
* conference bridge. Since all media terminate in the bridge
* (calls, file player, file recorder, etc), the value must be
@@ -3505,7 +3515,7 @@ struct pjsua_media_config
unsigned quality;
/**
- * Specify default ptime.
+ * Specify default codec ptime.
*
* Default: 0 (codec specific)
*/