I am currently trying to incorporate some audio in a game I am creating in python 3.2.3. and pygame. I am currently receiving the following error:
Traceback (most recent call last):
File "E:\FinalProject.py", line 57, in <module>
BackMusic = pygame.mixer.Sound('Background Music.mp3')
pygame.error: Unable to open file 'Background Music.mp3'
with the following code:
pygame.mixer.init(44100,-16,300, 1024)
BackMusic = pygame.mixer.Sound('Background Music.mp3')
Sound.play()
This is my first time working with loading audio files so I'm not really sure why python is unable to load the while when the file is in the same folder as the program. Any help is appreciated.