Trying to play large audio files with Pygame Mixer (Mac OS)

41 Views Asked by At

Whenever I try to run pygame.mixer_music.load('myfile.mp3') with big audio files, it tells me that pygame.error: mpg123_getformat: Failed to find valid MPEG data within limit on resync. (code 28)

This only happens with big audio files, I can play small ones just fine

1

There are 1 best solutions below

0
F_H On

For starters I think you need to add the full path of your mp3 file. For example:

pygame.mixer_music.load('/home/pi/Desktop/myfile.mp3')