[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] loading ogg or mp3 files



Jacques Guignot wrote:

It's very easy, with pygame, to load a wav file, but I didn't find in the doc, a way to load a more compressed format, such as ogg or mp3 for instance... Of course, it is possible to convert 'on the fly' to wav format, and load the newly created wav file, but it's not clean, and very slow...


this works for me:

music.load( foo.ogg )
music.play( 0 )

-Jasper