(python / pygame)声音口吃和停止

时间:2016-03-31 00:40:47

标签: python audio pygame

在我的游戏中,我的声音非常好。除非,如果声音快速播放,或多个声音重叠,则只播放其中一个声音,其余声音被切断。有没有办法来解决这个问题?我正在使用:

application/json

播放声音。

1 个答案:

答案 0 :(得分:0)

这可能是因为你有:

pygame.mixer.music.play()

在循环中。尝试:

pygame.mixer.music.play()
pygame.time.wait()#Inside the () of pygame.time.wait(), type the length of the audio in seconds,

应该这样做!

相关问题