Skip to content

Instantly share code, notes, and snippets.

@yamatt
Forked from anonymous/pyglet-audio.py
Created January 9, 2013 14:53
Show Gist options
  • Save yamatt/4493714 to your computer and use it in GitHub Desktop.
Save yamatt/4493714 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