Hello,
I am new to Pyglet and am trying to play the same .wav file over and
over and over.

What I have so far is:


import pyglet
import random, time
from pyglet.media import Player

# get ready to play
sound...
sound = pyglet.media.load('go1.wav')

#initialize
player
player = Player()

player.queue(sound)

#play 200
times
for i in range(1,201):
    print(i)
    player.seek(0)
    player.play()
    time.sleep(1.0)


pyglet.app.run()



I think my problem is something to do with the seek/play/queue.  But i
am not sure.  When I run the program it counts to 200, then plays the
sound once, and then freezes.

Any help would be appreciated !

-- 
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.

Reply via email to