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?