diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-23 20:26:01 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-23 20:26:01 (GMT) |
commit | 3062c9a6c87ff9b480d1eea960efbfc604e4b157 (patch) | |
tree | b31b2fe4839d47d9ca54f171d6adf518cfbffa9d /Doc/library/audioop.rst | |
parent | 2b38fc187c2a764b7608cd262de5a2777a77f4c8 (diff) | |
download | cpython-3062c9a6c87ff9b480d1eea960efbfc604e4b157.zip cpython-3062c9a6c87ff9b480d1eea960efbfc604e4b157.tar.gz cpython-3062c9a6c87ff9b480d1eea960efbfc604e4b157.tar.bz2 |
Issue #19641: Added the audioop.byteswap() function to convert big-endian
samples to little-endian and vice versa.
Diffstat (limited to 'Doc/library/audioop.rst')
-rw-r--r-- | Doc/library/audioop.rst | 8 |
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. |