pygame.mixer.music not playing

Greg Krohn greg at invalid.invalid
Sun Feb 6 13:54:03 EST 2005


Marian Aldenhövel wrote:
> Hi,
> 
> I am trying to make pygame play music on windows. This simple program:
> 
>     import pygame,time
>     pygame.init()
>     print "Mixer settings", pygame.mixer.get_init()
>     print "Mixer channels", pygame.mixer.get_num_channels()
>     pygame.mixer.music.set_volume(1.0)
>     pygame.mixer.music.load('file1.mp3)
>     print "Play"
>     pygame.mixer.music.play()
> 
>     while pygame.mixer.music.get_busy():
>         print "Playing", pygame.mixer.music.get_pos()
>         time.sleep(1)
>     
>     print "Done"

I tried this exact same code (except the mp3 filename, of course) on my 
machine and it worked fine. ActivePython 2.3.4 and Pygame 1.6. Could it 
be a hardware problem?

-greg



More information about the Python-list mailing list