Bo Jangeborg wrote:
file_path = "07-Boabdil, BulerĂ­as.ogg"
fi = open(file_path, 'rb').read()
pygame.mixer.music.load(fi)

But that gets me the Error:
"File path 'OggS' contains null characters"

music.load() expects to be passed the name of a file,
not the contents of the file. Just do this:

file_path = "07-Boabdil, BulerĂ­as.ogg"
pygame.mixer.music.load(file_path)

--
Greg

Reply via email to