I am using pyglet to write a small fishing game. The sound for the stream
is around 5 seconds long, and plays in a loop. It loops fine, but every so
often there's a very small gap in playback. The gap does not appear when I
loop it in an autio player.
Here is the code for the stream sound:
streamSound = pyglet.media.load('sounds/stream.opus', streaming=True)
streamPlayer = pyglet.media.Player()
streamPlayer.queue(streamSound)
streamPlayer.volume = (0.5)
streamPlayer.loop = True
streamPlayer.play()
I have tried switching it to a .wav instead of .opus and it does the same
thing. So am I doing something wrong 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 view this discussion on the web visit
https://groups.google.com/d/msgid/pyglet-users/2915a62a-c699-413c-b277-6f74421a50ean%40googlegroups.com.