summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTimothy B. Terriberry <tterribe@xiph.org>2016-01-15 15:57:49 -0800
committerTimothy B. Terriberry <tterribe@xiph.org>2016-01-15 15:57:49 -0800
commitf21970a65772fb189539f13dbb27bf2d9174ca8b (patch)
tree25b75ada48a2d269cf1c42b2a679d4a95afc05cb /doc
parent44f87362fbc10b64a5f2ece564c55f242cbde9b7 (diff)
downloadopus-f21970a65772fb189539f13dbb27bf2d9174ca8b.tar.gz
Docuemnt the source of the 2.5 ms and 48 kHz restrictions.
Thanks to Joel Halpern for the suggestion.
Diffstat (limited to 'doc')
-rw-r--r--doc/draft-ietf-codec-oggopus.xml12
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/draft-ietf-codec-oggopus.xml b/doc/draft-ietf-codec-oggopus.xml
index cb8d149c..8cc11528 100644
--- a/doc/draft-ietf-codec-oggopus.xml
+++ b/doc/draft-ietf-codec-oggopus.xml
@@ -248,14 +248,16 @@ A page that is entirely spanned by a single packet (that completes on a
The granule position of an audio data page is in units of PCM audio samples at
a fixed rate of 48&nbsp;kHz (per channel; a stereo stream's granule position
does not increment at twice the speed of a mono stream).
-It is possible to run an Opus decoder at other sampling rates, but the value
- in the granule position field always counts samples assuming a 48&nbsp;kHz
- decoding rate, and the rest of this specification makes the same assumption.
+It is possible to run an Opus decoder at other sampling rates, but all of them
+ evenly divide 48&nbsp;kHz.
+Therefore, the value in the granule position field always counts samples
+ assuming a 48&nbsp;kHz decoding rate, and the rest of this specification makes
+ the same assumption.
</t>
<t>
-The duration of an Opus packet can be any multiple of 2.5&nbsp;ms, up to a
- maximum of 120&nbsp;ms.
+The duration of an Opus packet as defined in <xref target="RFC6716"/> can be
+ any multiple of 2.5&nbsp;ms, up to a maximum of 120&nbsp;ms.
This duration is encoded in the TOC sequence at the beginning of each packet.
The number of samples returned by a decoder corresponds to this duration
exactly, even for the first few packets.