I\'ve made a button class that checks if a button is selected (when the mouse is hovering over the button). When the button is selected, unselected or clicked it plays a wav
I had a sound delay, too. Now, this works fine for me:
pg.mixer.pre_init(44100, -16, 1, 512) pg.init() pg.mixer.init()
With pg.mixer.pre_init(22100, -16, 2, 64) the sound plays faster but is twisted, okay for sound effects but not for real music as background.
pg.mixer.pre_init(22100, -16, 2, 64)