Ticket #393: Added configuration to set basic audio frame length to minimize audio latency in pjsua-lib
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1482 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h
index 062943b..fad7917 100644
--- a/pjsip/include/pjsua-lib/pjsua.h
+++ b/pjsip/include/pjsua-lib/pjsua.h
@@ -1744,7 +1744,7 @@
* either "sip" or "sips".
*/
#ifndef PJSUA_SECURE_SCHEME
-# define PJSUA_SECURE_SCHEME "sip"
+# define PJSUA_SECURE_SCHEME "sips"
#endif
@@ -3466,6 +3466,16 @@
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 @@
unsigned quality;
/**
- * Specify default ptime.
+ * Specify default codec ptime.
*
* Default: 0 (codec specific)
*/