]> granicus.if.org Git - python/commitdiff
Added doco for ratecv.
authorGuido van Rossum <guido@python.org>
Fri, 14 Feb 1997 15:59:49 +0000 (15:59 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 14 Feb 1997 15:59:49 +0000 (15:59 +0000)
Doc/lib/libaudioop.tex
Doc/libaudioop.tex

index 6a74a0beb7dc937b54493827ab0727ecc010b763..13a82b3b34b69b71ebb379e7a241a0163e9576ea 100644 (file)
@@ -146,6 +146,17 @@ multiplied by the floating-point value \var{factor}.  Overflow is
 silently ignored.
 \end{funcdesc}
 
+\begin{funcdesc}{ratecv}{fragment\, width\, nchannels\, inrate\, outrate\, state\optional{\, weightA\, weightB}}
+Convert the frame rate of the input fragment.
+
+\code{State} is a tuple containing the state of the converter.  The
+converter returns a tupl \code{(\var{newfragment}, \var{newstate})},
+and \var{newstate} should be passed to the next call of ratecv.
+
+The \code{weightA} and \coden{weightB} arguments are parameters for a
+simple digital filter and default to 1 and 0 respectively.
+\end{funcdesc}
+
 \begin{funcdesc}{reverse}{fragment\, width}
 Reverse the samples in a fragment and returns the modified fragment.
 \end{funcdesc}
index 6a74a0beb7dc937b54493827ab0727ecc010b763..13a82b3b34b69b71ebb379e7a241a0163e9576ea 100644 (file)
@@ -146,6 +146,17 @@ multiplied by the floating-point value \var{factor}.  Overflow is
 silently ignored.
 \end{funcdesc}
 
+\begin{funcdesc}{ratecv}{fragment\, width\, nchannels\, inrate\, outrate\, state\optional{\, weightA\, weightB}}
+Convert the frame rate of the input fragment.
+
+\code{State} is a tuple containing the state of the converter.  The
+converter returns a tupl \code{(\var{newfragment}, \var{newstate})},
+and \var{newstate} should be passed to the next call of ratecv.
+
+The \code{weightA} and \coden{weightB} arguments are parameters for a
+simple digital filter and default to 1 and 0 respectively.
+\end{funcdesc}
+
 \begin{funcdesc}{reverse}{fragment\, width}
 Reverse the samples in a fragment and returns the modified fragment.
 \end{funcdesc}