Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #59889

Byteorder of audioop functions

From Michael Schwarz <michi.schwarz@gmail.com>
Subject Byteorder of audioop functions
Date 2013-11-18 17:51 +0100
Newsgroups comp.lang.python
Message-ID <mailman.2853.1384793523.18130.python-list@python.org> (permalink)

Show all headers | View raw


Hi

Is the byteorder (or endianness) of the functions in the audioop module somewhere specified or does anyone know how it behaves on different systems?

On my little-endian system it matches the system's endianness:

>>> import sys, audioop
>>> sys.byteorder
'little'
>>> audioop.lin2lin(b'\xff', 1, 2)
b'\x00\xff'

Michael

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Byteorder of audioop functions Michael Schwarz <michi.schwarz@gmail.com> - 2013-11-18 17:51 +0100

csiph-web