pygame.mixer.load not working

G

globalrev

import pygame

pygame.mixer.music.load(example1.mp3)
pygame.mixer.music.play(loops=1, start=0.0)


Traceback (most recent call last):
File "C:\Python25\myPrograms\pygameProgs\musicexp.py", line 3, in
<module>
pygame.mixer.music.load(example1.mp3)
NameError: name 'example1' is not defined

example1 is in the same directory as the script
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top