[Pythonmac-SIG] Is wave.py maybe broken?
Dinu Gherman
gherman at darwin.in-berlin.de
Thu Apr 29 05:25:07 EDT 2004
Dinu Gherman:
> I'm trying to use the wave module in the standard library, but seem
> to get errors when accessing .wav files which are otherwise playing
> fine on OS X (see traceback below).
The following, using PyObjC, does also not produce any sound for
the .wav files I've got, but it does for .aiff ones...
Kind of strange...
Dinu
Python 2.3.3 (#1, Feb 2 2004, 19:00:54)
[GCC 3.1 20020420 (prerelease)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> from AppKit import NSSound
>>> mkSound = NSSound.alloc().initWithContentsOfFile_byReference_
>>> s = mkSound("seriousbitch.wav", False)
>>> s.play()
1
More information about the Pythonmac-SIG
mailing list