Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xiph/speex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>2007-11-26 03:13:48 +0300
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>2007-11-26 03:13:48 +0300
commite169fe49ef68c47839ff0f6ce6ad8859005a62f5 (patch)
treeecca8b7dc8b41b427fe6ab4663cc9f2b297d44cd /doc
parentcb4cf50cf14c8aecf08743a4e14fb18fda648926 (diff)
manual: jitter buffer update
git-svn-id: http://svn.xiph.org/trunk/speex@14232 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.lyx33
1 files changed, 20 insertions, 13 deletions
diff --git a/doc/manual.lyx b/doc/manual.lyx
index cb7fa2c..87c0c3b 100644
--- a/doc/manual.lyx
+++ b/doc/manual.lyx
@@ -4513,7 +4513,7 @@ status open
\begin_layout Standard
-JitterBuffer *state = jitter_buffer_init(tick);
+JitterBuffer *state = jitter_buffer_init(step);
\end_layout
\end_inset
@@ -4529,15 +4529,20 @@ status collapsed
\begin_layout Standard
-tick
+step
\end_layout
\end_inset
- argument is the time resolution (in timestamp units) used for the jitter
- buffer, and is generally the period at which the data is played out of
- the jitter buffer.
-
+ argument is the default time step (in timestamp units) used for adjusting
+ the delay and doing concealment.
+ A value of 1 is always correct, but higher values may be more convenient
+ sometimes.
+ For example, if you are only able to do concealment on 20ms frames, there
+ is no point in the jitter buffer asking you to do it on one sample.
+ Another example is that for video, it makes no sense to adjust the delay
+ by less than a full frame.
+ The value provided can always be changed at a later time.
\end_layout
\begin_layout Standard
@@ -4634,7 +4639,7 @@ int start_offset;
\begin_layout Standard
-err = jitter_buffer_get(state, &packet, &start_offset);
+err = jitter_buffer_get(state, &packet, desired_span, &start_offset);
\end_layout
\end_inset
@@ -4694,20 +4699,22 @@ jitter_buffer_tick(state);
\end_layout
\begin_layout Standard
-This needs to be done every time
+This needs to be done periodically in the playing thread.
+ This will be the last jitter buffer call before going to sleep (until more
+ data is played back).
+ In some cases, it may be preferable to use
\begin_inset listings
-inline true
-status collapsed
+inline false
+status open
\begin_layout Standard
-tick
+jitter_buffer_remaining_span(state, remaining);
\end_layout
\end_inset
- units have elapsed.
-
+
\end_layout
\begin_layout Section