summaryrefslogtreecommitdiffstats
path: root/Doc/library/audioop.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/audioop.rst')
-rw-r--r--Doc/library/audioop.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/audioop.rst b/Doc/library/audioop.rst
index ca6cfb3..fbb7fc6 100644
--- a/Doc/library/audioop.rst
+++ b/Doc/library/audioop.rst
@@ -77,6 +77,14 @@ The module defines the following variables and functions:
sample. Samples wrap around in case of overflow.
+.. function:: byteswap(fragment, width)
+
+ "Byteswap" all samples in a fragment and returns the modified fragment.
+ Converts big-endian samples to little-endian and vice versa.
+
+ .. versionadded: 3.4
+
+
.. function:: cross(fragment, width)
Return the number of zero crossings in the fragment passed as an argument.