Pygame - Sound delay

前端 未结 7 1240
广开言路
广开言路 2020-12-16 01:32

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

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-16 02:22

    In my situation the delay was between 0.2 and 0.5 sec. To call pygame.mixer.pre_init() is a very good solution but the delay also depends on the given values.

提交回复
热议问题