ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pythoncard
pythoncard
RE: [Pythoncard-users] bug in sound.py
by Kevin Altis other posts by this author
Apr 21 2002 11:12PM messages near this date
[Pythoncard-users] bug in sound.py | [Pythoncard-users] what is the syntax for posting an event?
Checked into cvs, thanks! If you or anyone else wants to do more work on the
sound module, be my guest.

I don't know whether there is cross-platform playback support for other
formats in the standard libraries or possibly some other add-on packages
that we could support. If there was a library and it isn't part of the
standard distribution then we can set a flag in the sound.py module and if a
user has that module we can make use of it, otherwise we would just support
wav files like we do now.

ka

>  -----Original Message-----
>  From: pythoncard-users-admin@[...].net
>  [mailto:pythoncard-users-admin@[...].net]On Behalf Of
>  Richard Wolff
>  Sent: Sunday, April 21, 2002 3:43 PM
>  To: pythoncard-users@[...].net
>  Subject: [Pythoncard-users] bug in sound.py
> 
> 
>  In sound.py:_soundType, if the filename path has more than one period,
>  as in, say, c:\Python2.2\x\y\noise.wav, the function fails.
> 
>  fix: change    name,ext = filename.split('.')
>  to
>      ext = filename.split('.')[-1]
> 
>  However, the standard python library module 'sndhdr' is a more general
>  approach to what _soundType is doing.  Thus, the above change led me to
>  a more extensive rewrite.  Suggested new sound.py (from
>  site-packages/PythonCardPrototype) and new samples/sounds/sounds.py are
>  attached.
> 
>  Richard
> 


_______________________________________________
Pythoncard-users mailing list
Pythoncard-users@[...].net
https://lists.sourceforge.net/lists/listinfo/pythoncard-users
Thread:
Richard Wolff
Kevin Altis

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved