Skip to content

Instantly share code, notes, and snippets.

@danleyb2
Forked from yamatt/pyglet-audio.py
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danleyb2/e74e24abd6d74bb5e13c to your computer and use it in GitHub Desktop.
Save danleyb2/e74e24abd6d74bb5e13c to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import pyglet
mp3 = "test.mp3"
source = pyglet.media.load(mp3)
player = pyglet.media.Player()
player.queue(source)
player.play()
pyglet.app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment