More work on trying to reduce pops and clicks, especially in Windows.
This commit is contained in:
3
sound.py
3
sound.py
@@ -29,9 +29,8 @@ class Sound:
|
||||
self.volumeService = volumeService or VolumeService.get_instance()
|
||||
|
||||
if not pygame.mixer.get_init():
|
||||
pygame.mixer.pre_init(44100, -16, 2, 512)
|
||||
pygame.mixer.init()
|
||||
pygame.mixer.set_num_channels(32)
|
||||
pygame.mixer.set_num_channels(64)
|
||||
pygame.mixer.set_reserved(0)
|
||||
|
||||
self.load_sounds()
|
||||
|
Reference in New Issue
Block a user