adangert / JoustMania

Raspberry Pi Jousting at its finest
http://joustmania.com
Other
124 stars 34 forks source link

pygame.error: mixer not initialized #305

Closed NetSpida closed 9 months ago

NetSpida commented 1 year ago

During startup I get the following error:

Traceback (most recent call last):
  File "/home/joustmania/JoustMania/piparty.py", line 1053, in <module>
    InitAudio()
  File "/home/joustmania/JoustMania/piparty.py", line 630, in game_loop
    self.check_game_trigger()
  File "/home/joustmania/JoustMania/piparty.py", line 876, in check_start_game
    self.random_added.append(serial)
  File "/home/joustmania/JoustMania/piaudio.py", line 192, in __init__
    self.sample_ = pygame.mixer.Sound(file=fname)
pygame.error: mixer not initialized
NetSpida commented 1 year ago

Possibly the issue might be caused by my solution to https://github.com/adangert/JoustMania/issues/301

adangert commented 9 months ago

Fixed for the pi 4 on both bookworm and bullseye from #301