OS X: How to play .wav file w/Python?
kj
socyl at 987jk.com.invalid
Mon May 11 21:55:51 EDT 2009
Hi. I'm trying to learn how to play a .wav file in OS X with Python.
I tried the following, which ran without errors, but produced
nothing audible (even though the file bell.wav plays perfectly well
otherwise, e.g. view the Finder's Preview):
import pygame.mixer
pygame.mixer.init()
pygame.mixer.Sound("bell.wav").play
print "done"
What am I doing wrong?
TIA!
kynn
--
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.
More information about the Python-list
mailing list