Code:

sound = pyglet.media.Player()
sound.queue(pyglet.media.load(path))

sound.play()
while 1:
    print(sound.playing)
    if sound.playing:
        break
    time.sleep(0.1)

Result:
The console continually printed "True" even after the sound stopped (I used 
a sound file less than 1s here)


-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to