Small gaps in looped file

37 views
Skip to first unread message

Storm Dragon

unread,
Sep 15, 2022, 4:37:30 PM9/15/22
to pyglet-users
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?
Reply all
Reply to author
Forward
0 new messages