On Tue, Apr 15, 2008 at 7:37 PM, PyMike <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm trying to loop my music. Right now I have:
>
> music = pyglet.media.load(os.path.join("data", "loop.ogg"),
> streaming=False)
> music.play()
>
> How do I make it loop?
file = os.path.join("data", "loop.ogg")
player = pyglet.media.Player()
player.queue(pyglet.media.load(file))
player.eos_action = 'loop'
player.play()
--
Hugo Ruscitti
www.losersjuegos.com.ar
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---