A different approach to improving sound.
This commit is contained in:
2
utils.py
2
utils.py
@@ -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
|
||||
|
Reference in New Issue
Block a user