Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

opening menu bgm in streaming mode causes decoding issues #46

Open
RiedleroD opened this issue Aug 18, 2020 · 0 comments
Open

opening menu bgm in streaming mode causes decoding issues #46

RiedleroD opened this issue Aug 18, 2020 · 0 comments
Labels
bug Something isn't working upstream a bug in some library we're using

Comments

@RiedleroD
Copy link
Owner

this is a bug in pyglet, but I'll add it anyway so I can fix it if a workaround is found

code sample to reproduce:

import pyglet
from pyglet.media.codecs.ffmpeg import FFmpegDecoder
dec=FFmpegDecoder()
mus=pyglet.media.load("./mus.wav",streaming=True,decoder=dec)
pl=mus.play()
pl.loop=True
pyglet.app.run()

This only happens when FFmpegDecoder is selected in streaming mode and the player loops. Incredibly specific, but all of those are necessary, since:

  • only ffmpeg supports opus, Gstreamer is not compatible.
  • it's the menu bgm, ofc it should loop.
  • not streaming music causes long loading startup
    Since I don't have a choice here, I disabled streaming in the default datapack anyway.
@RiedleroD RiedleroD added bug Something isn't working upstream a bug in some library we're using labels Aug 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working upstream a bug in some library we're using
Projects
None yet
Development

No branches or pull requests

1 participant