Hello
i need to open an .au file, and rigth now i'm able to read the header.
from struct import unpack
import struct
import appuifw
from graphics import Image
import camera, e32
#...
au_file = u'e:\\5000.au'
f = open(au_file, 'rb')
print f
a=f.read(4)
print a
b=0
while 1:
if b==5:break
a=struct.unpack('>L', f.read(4))[0]
print a
b=b+1
in this moment i got the info:
> .snd
> 24
> 1000
> 3
> 8000
> 1
http://en.wikipedia.org/wiki/Au_file_format that is a correct format.
rigth now i cant read the data. I got something like this, but it doesnt work:
b=0
while 1:
if b==100:break
a=struct.unpack('L', f.read(4))[0]
b=b+1
Please help me![]()

Reply With Quote

