-1

So I created a game in pygame but I have a very weird problem where it plays the qued song on the computer and when converted to exe but wont play when I used pygbag to put it on the web. Here is the code for the music. (There are questions about mixer not working but this is different because it plays the first song but doesn't play the second)

pygame.mixer.music.load("Assets/soundtrack_A.ogg")
pygame.mixer.music.queue("Assets/soundtrack_loop.ogg", "ogg", -1)
pygame.mixer.music.play()
  • The queue is not yet implemented because part of the mixer are not handled by wasm but browser API instead for performance reason. So it need manpower to have a 1:1 match with the pygame SDL api, you can follow the issue here https://github.com/pygame-web/pygbag/issues/106 – Pmp P. Aug 26 '23 at 01:06

0 Answers0