weird behaviour: pygame plays in shell but not in script
mikprog at gmail.com
Thu Mar 29 14:33:45 CEST 2012
I am a bit frustrated by the following as I believe it is something
silly that I am not able to see.
I am using python 2.7.1+ under ubuntu.
When I run the following script as in
I do not get any sound out of it
BUT if I run every line in the python shell it works great.
It doesn't make sense to me, maybe someone has a clue?
Thanks for any clue!
#done twice to get rid of a sound card error
pygame.mixer.pre_init(44100, -16, 2, 2048)
# called twice to make it so that it detects sound card
sounds = 
for sound in sounds:
More information about the Python-list