You Are Here:

Community: Developer Discussion Boards

#1 Old Question .AU open and read?! PYS60 - 2008-01-30, 16:09

Join Date: Nov 2007
Posts: 2
cuthberg
Offline
Registered User
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

#2 Old Re: .AU open and read?! PYS60 - 2008-01-30, 16:28

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Hello ,

You can find in the wiki solution to your problem

BR
Cyke64


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
What is Open C ? kkrish Open C/C++ 14 2007-04-18 12:58
Read and Open files with Series60 pablovara Mobile Java General 2 2006-06-14 18:08
Compilation error if i use CQikAppUi instead of CAknAppUi sambasivarao.p General Symbian C++ 3 2005-10-12 06:26
Help:can Series 40 open the MMS file and read this file?? evicn Mobile Java General 0 2004-04-28 04:08
An error about open a file and read data..... tntfighter-2002 General Symbian C++ 1 2002-11-06 06:15

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ