I think sound is as good as I can get it.

This commit is contained in:
Storm Dragon
2025-09-18 23:23:08 -04:00
parent 65dae48200
commit 95215eefc8
3 changed files with 11 additions and 9 deletions

View File

@@ -151,8 +151,8 @@ class Game:
# Set up audio system
pygame.mixer.pre_init(44100, -16, 2, 1024, allowedchanges=0)
pygame.mixer.init()
pygame.mixer.set_num_channels(64)
pygame.mixer.set_reserved(16) # Reserve channels 0-15 for priority sounds (cutscenes, obj_play)
pygame.mixer.set_num_channels(48)
pygame.mixer.set_reserved(1) # Reserve channel 0 for cutscenes only
# Enable key repeat for volume controls
pygame.key.set_repeat(500, 100)