More playing with the mixer for stability and fewer or no clicks.
This commit is contained in:
@@ -46,9 +46,9 @@ def initialize_gui(gameTitle):
|
||||
|
||||
# Initialize audio system if not already done
|
||||
if not pygame.mixer.get_init():
|
||||
pygame.mixer.pre_init(44100, -16, 2, 1536)
|
||||
pygame.mixer.pre_init(44100, -16, 2, 4096)
|
||||
pygame.mixer.init()
|
||||
pygame.mixer.set_num_channels(64)
|
||||
pygame.mixer.set_num_channels(48)
|
||||
pygame.mixer.set_reserved(0) # Reserve channel for cut scenes
|
||||
|
||||
# Enable key repeat for volume controls
|
||||
|
Reference in New Issue
Block a user