A different approach to improving sound.

This commit is contained in:
Storm Dragon
2025-09-18 20:36:26 -04:00
parent 385e5a81ed
commit 2be0424168
3 changed files with 18 additions and 21 deletions

View File

@@ -149,7 +149,7 @@ class Game:
pygame.display.set_caption(self.title)
# Set up audio system
pygame.mixer.pre_init(44100, -16, 2, 1024)
pygame.mixer.pre_init(44100, -16, 2, 1024, allowedchanges=0)
pygame.mixer.init()
pygame.mixer.set_num_channels(32)
pygame.mixer.set_reserved(0) # Reserve channel for cut scenes