## The console continually printed "True" even after the sound stopped
import pyglet
import time
sound = pyglet.media.Player()
sound.queue(pyglet.media.load('demo.WAV')) # a short sound
sound.play()
while 1:
print(sound.playing) # checking
if not sound.playing:
break
time.sleep(0.1)
--
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.