From 19ec25d341a9d1dfceed588df7a578ea0fa464ba Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sat, 6 Oct 2007 17:31:09 +0000 Subject: 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 --- pjsip/include/pjsua-lib/pjsua.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'pjsip/include/pjsua-lib') 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 @@ -3465,6 +3465,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 @@ -3505,7 +3515,7 @@ struct pjsua_media_config unsigned quality; /** - * Specify default ptime. + * Specify default codec ptime. * * Default: 0 (codec specific) */ -- cgit v1.2.3