I'm using mixer to open file but I get a error. I'm using mac os x.this is my code:
mixer.init()
mixer.pre_init(44100, 16, 2, 4096)
mixer.music.load('Warning.wav')
mixer.music.play()
and I get error:
Couldn't open 'Warning.wav'.
And also when I write pygame.mixer.init()
, I get error too:
name 'pygame' is not defined
How can I solve this problem? And also can you change the code for me? I need solution as fast as you can!