diff --git a/display.py b/display.py index eaf438b..a2a04d6 100644 --- a/display.py +++ b/display.py @@ -46,7 +46,7 @@ def initialize_gui(gameTitle): # Initialize audio system if not already done if not pygame.mixer.get_init(): - pygame.mixer.pre_init(44100, -16, 2, 4096, allowedchanges=0) + pygame.mixer.pre_init(44100, -16, 2, 1024, allowedchanges=0) pygame.mixer.init() pygame.mixer.set_num_channels(48) pygame.mixer.set_reserved(1) # Reserve channel 0 for cutscenes only diff --git a/sound.py b/sound.py index 1c055c0..6548d63 100644 --- a/sound.py +++ b/sound.py @@ -91,7 +91,7 @@ class Sound: self.volumeService = volumeService or VolumeService.get_instance() if not pygame.mixer.get_init(): - pygame.mixer.pre_init(44100, -16, 2, 4096, allowedchanges=0) + pygame.mixer.pre_init(44100, -16, 2, 1024, allowedchanges=0) pygame.mixer.init() pygame.mixer.set_num_channels(48) pygame.mixer.set_reserved(1) # Reserve channel 0 for cutscenes only