[svn-commits] mjordan: trunk r420640 - in /trunk: ./ funcs/func_jitterbuffer.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sun Aug 10 20:31:59 CDT 2014


Author: mjordan
Date: Sun Aug 10 20:31:56 2014
New Revision: 420640

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=420640
Log:
funcs/func_jitterbuffer: Tweak documentation

This patch merely reformats and cleans up a bit of the jitterbuffer
documentation for the wiki.
........

Merged revisions 420639 from http://svn.asterisk.org/svn/asterisk/branches/13

Modified:
    trunk/   (props changed)
    trunk/funcs/func_jitterbuffer.c

Propchange: trunk/
------------------------------------------------------------------------------
--- branch-13-merged (original)
+++ branch-13-merged Sun Aug 10 20:31:56 2014
@@ -1,1 +1,1 @@
-/branches/13:1-420494,420514,420534,420536,420538,420562,420577,420592,420609,420624
+/branches/13:1-420494,420514,420534,420536,420538,420562,420577,420592,420609,420624,420639

Modified: trunk/funcs/func_jitterbuffer.c
URL: http://svnview.digium.com/svn/asterisk/trunk/funcs/func_jitterbuffer.c?view=diff&rev=420640&r1=420639&r2=420640
==============================================================================
--- trunk/funcs/func_jitterbuffer.c (original)
+++ trunk/funcs/func_jitterbuffer.c Sun Aug 10 20:31:56 2014
@@ -45,27 +45,39 @@
 /*** DOCUMENTATION
 	<function name="JITTERBUFFER" language="en_US">
 		<synopsis>
-			Add a Jitterbuffer to the Read side of the channel.  This dejitters the audio stream before it reaches the Asterisk core. This is a write only function.
+			Add a Jitterbuffer to the Read side of the channel. This dejitters the audio stream before it reaches the Asterisk core. This is a write only function.
 		</synopsis>
 		<syntax>
 			<parameter name="jitterbuffer type" required="true">
-				<para>Jitterbuffer type can be <literal>fixed</literal>, <literal>adaptive</literal>, or
-					<literal>disabled</literal>.</para>
-				<para>Used as follows. </para>
-				<para>Set(JITTERBUFFER(type)=max_size[,resync_threshold[,target_extra]])</para>
-				<para>Set(JITTERBUFFER(type)=default) </para>
+				<optionlist>
+					<option name="fixed">
+						<para>Set a fixed jitterbuffer on the channel.</para>
+					</option>
+					<option name="adaptive">
+						<para>Set an adaptive jitterbuffer on the channel.</para>
+					</option>
+					<option name="disabled">
+						<para>Remove a previously set jitterbuffer from the channel.</para>
+					</option>
+				</optionlist>
 			</parameter>
 		</syntax>
 		<description>
-			<para>max_size: Defaults to 200 ms</para>
-			<para>Length in milliseconds of buffer.</para>
-			<para> </para>
-			<para>resync_threshold: Defaults to 1000ms </para>
-			<para>The length in milliseconds over which a timestamp difference will result in resyncing the jitterbuffer. </para>
-			<para> </para>
-			<para>target_extra: Defaults to 40ms</para>
-			<para>This option only affects the adaptive jitterbuffer. It represents the amount time in milliseconds by which the new jitter buffer will pad its size.</para>
-			<para> </para>
+			<para>Jitterbuffers are constructed in two different ways.
+			The first always take three arguments: <replaceable>max_size</replaceable>,
+			<replaceable>resync_threshold</replaceable>, and <replaceable>target_extra</replaceable>.
+			Alternatively, a single argument of <literal>default</literal> can be provided,
+			which will construct the default jitterbuffer for the given
+			<replaceable>jitterbuffer type</replaceable>.</para>
+			<para>The arguments are:</para>
+			<para><replaceable>max_size</replaceable>: Length in milliseconds of the buffer.
+			Defaults to 200 ms.</para>
+			<para><replaceable>resync_threshold</replaceable>: The length in milliseconds over
+			which a timestamp difference will result in resyncing the jitterbuffer.
+			Defaults to 1000ms.</para>
+			<para>target_extra: This option only affects the adaptive jitterbuffer. It represents
+			the amount time in milliseconds by which the new jitter buffer will pad its size.
+			Defaults to 40ms.</para>
 			<example title="Fixed with defaults" language="text">
 			exten => 1,1,Set(JITTERBUFFER(fixed)=default)
 			</example>




More information about the svn-commits mailing list