This problem appears only on Linux.
I went to a friend and tried it on a windows system. The following code
works fine if tried on Windows 7, using Python 2.7 using pyglet 1.2.0 and
Python 2.7. It does not work on Linux Mint 17 "Qiana" using pyglet 1.2.0
and Python 2.7.7:
import pyglet
player = pyglet.media.Player() # init player
player.play() # let player play
def play_sound():
path = "test.wav"
source = pyglet.media.load(path, streaming=False)
player.queue(source)
On Windows every call of play_sound() will play the test.wav sound. On
Linux the sound is only played on the first call. All other calls of
play_sound will work without an error but you can hear no sound.
I will have a look inside pyglet, but don't think I will found the problem
in there.
--
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 http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.