added multi sound-channel

This commit is contained in:
2026-02-16 21:46:32 +01:00
parent 434abad282
commit bb71f893e5
5 changed files with 102 additions and 18 deletions
+2 -1
View File
@@ -32,7 +32,8 @@ def create_app():
# pygame initialisieren (einmalig)
pygame.mixer.init(frequency=44100, size=-16, channels=2, buffer=512)
pygame.mixer.music.set_volume(0.8) # Standard-Lautstärke
pygame.mixer.set_num_channels(16) # genug parallele Kanäle für BG + Effekte
pygame.mixer.music.set_volume(0.8) # Standard-Lautstärke (für Legacy-Fälle)
app.logger.info("pygame initialisiert")
# Blueprints registrieren