Why doesn't my PyGame mixer play sounds,?

前端 未结 4 2170
忘了有多久
忘了有多久 2021-01-03 08:57

My PyGame mixer in 2.7 won\'t work with the sound option. I can make it work with mixer.music but not with mixer.sound, with mixer.sound it makes a small ticking noise and t

4条回答
  •  青春惊慌失措
    2021-01-03 09:22

    Usually, Pygame will not play mp3 files. You could test to see if .wav and .ogg files will play first, to make sure your code is correct (based on what you pasted, it seems to be right). I suggest converting your mp3 sounds to ogg for Pygame.

提交回复
热议问题