Pygame MemoryError

前端 未结 1 1571
粉色の甜心
粉色の甜心 2020-12-19 15:23

HI i wrote a simple block collecting program that was working just fine and dandy until i added sound. Then all the sudden i get a MemoryError which is something ive never s

相关标签:
1条回答
  • 2020-12-19 16:11

    I think you have to initialize the mixer first, before using sounds.

    pygame.mixer.init(44100, -16, 2, 2048)
    # Read the docs to know what these numbers are
    
    0 讨论(0)
提交回复
热议问题