Skip to content
Snippets Groups Projects
Commit b243dca3 authored by Ralph Giles's avatar Ralph Giles
Browse files

Wrap lookahead code example in a figure.

parent 9e85220f
No related branches found
No related tags found
No related merge requests found
......@@ -1142,11 +1142,17 @@ An implementation could reasonably choose any of these numbers for its internal
<t>
When encoding Opus files, Ogg encoders should take into account the
algorithmic delay of the Opus encoder.
</t>
<figure align="center">
<preamble>
In encoders derived from the reference implementation, the number of
samples can be queried with:
opus_encoder_ctl(encoder_state, OPUS_GET_LOOKAHEAD, &amp;samples_delay);
</preamble>
<artwork align="center"><![CDATA[
opus_encoder_ctl(encoder_state, OPUS_GET_LOOKAHEAD, &samples_delay);
]]></artwork>
</figure>
<t>
To achieve good quality in the very first samples of a stream, the Ogg encoder
MAY use LPC extrapolation to generate at least 120 extra samples
(extra_samples) at the beginning to avoid the Opus encoder having to encode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment