Thread
:
Play WAV in Python
View Single Post
darethehair
2008-01-01 , 21:35
Posts: 273 | Thanked: 104 times | Joined on Mar 2007 @ Manitoba, Canada
#
5
Aisu:
I am just a learner myself, but I have dabbled with sound in pygame just as you tried. I reduced my (working) program to a bare minimum, and for me on my desktop python (not yet confirmed in maemo python) it works fine for me as long as the python program itself runs long enough to actually *play* the sound file. To artificially make your program do the same, try adding this final line to your python file:
pygame.time.delay(5000)
For my actual program, it doesn't need this because it is a non-serial program that constantly polls the keys being pressed -- if you know what I mean.
Quote & Reply
|
The Following User Says Thank You to darethehair For This Useful Post:
Aisu
darethehair
View Public Profile
Send a private message to darethehair
Find all posts by darethehair