HI I wrote a simple block collection program that worked just fine and dandy until I added sound. Then all of a sudden, I get a MemoryError that I have never seen before.
my code comes with a sound (wav) file, which seems to be the problem. Any help would be great, and yes, the code and sound are in the same folder along with many other programs and pictures, etc.
import pygame import random import pygame.mixer winsound=pygame.mixer.Sound('winning.wav') collectsound=pygame.mixer.Sound('blip.wav')
So, when I run the code, I get an error
Traceback (most recent call last): File "/Users/zackbaker/Desktop/PythonFolder/BlockCollecter.py", line 4, in <module> sound=pygame.mixer.Sound('winning.wav') MemoryError
source share