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

Re: [pygame] music module bindings for python



René Dudfield wrote:

pygame has mod support through sdl_mixer.

That's true. Note that you need to use pygame.mixer.music
rather than a pygame.mixer.Sound object, though.

I just tried the following on MacOSX and it worked:

from time import sleep
from pygame import mixer
mixer.init()
music = mixer.music
music.load("bigjapan.mod")
music.play()
sleep(10000)

(The mod file I used is from
http://www.df.lth.se/~fernbom/music/mods/files/bigjapan.zip).

--
Greg