I like pygame and the command below should work:
pygame.init() pygame.mixer.Sound('sound.wav').play()
but it does not work on any of my computers, and there is limited help on this. edit: I understood why the pygame sound doesn’t work for me, it doesn’t load most sounds correctly, the “length” attribute is ~ 0,0002 when loading. perhaps loading them using something other than mygame will lead to more evasion.
with pyglet. I get an error not found by the resource. Using the above example, mix both relative and full file paths.
using pyglet.media.load() instead of pyglet.resource.media() allows me to upload files.
but sound.play() only plays the first part of a second of the file, unless I run pyglet.app.run() , which blocks everything else ...
suki Dec 05 '09 at 12:52 2009-12-05 12:52
source share