[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] playing MP3s using pygame



Frank Raiser <crashchaos@gmx.net> writes:


> err.. it does. Except that mp3 is an mpeg layer and therefore
> supported
> 
> by smpeg. Try this:
> 
> import pygame,pygame.movie
> m = pygame.movie.Movie("some file.mp3")
> m.play()
> print "yes it looks strange playing a movie when you just want sound
> :)"

Why not do something like this:
pygame.mixer.music.load("some file.mp3")
pygame.mixer.music.play()

I mean if the strangeness bothers you :-)
 

-- 

Vennlig hilsen 

Syver Enstad


____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org