Playing Sound in Pyglet

suggest change
sound = pyglet.media.load(sound.wav)
sound.play()

pyglet is not imported, and sound.wav is not a string, so this raises NameError before any file is loaded.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents