K
kj
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
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