Why doesn't my PyGame mixer play sounds,?

前端 未结 4 2160
忘了有多久
忘了有多久 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:25

    you just created an object called song.

    instead of "pygame.mixer.Sound.play(song)" try this:

    song.play()

提交回复
热议问题