On 6 Apr 2005 12:01:23 -0700, [EMAIL PROTECTED] wrote:
>I'm writing a program to read in raw data from a WAV file, and write it
>to an IT file. I got this to work in C by reading the data into an
>array of unsigned chars called "RawDataAry", then converted it to
>signed chars by doing the followi
[EMAIL PROTECTED] wrote:
fmt = str(chunklen) + 'B'
fmtsize = struct.calcsize(fmt)
rawdata = struct.unpack(fmt, s[:fmtsize])
rawdata = list(rawdata)
Then I tried to convert it:
charary = array.array('b')
charary.fromlist(rawdata)
Uh, don't you want to be consistent in your use
of signed and unsigned