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

[pygame] pygame.mixer failure on Mac OS X



Hey,  y'all. Anybody else using PyGame on Mac OS X? I installed it using 
the pre-built packages from http://undefined.org/python/pimp/ and it was 
working perfectly until I started to plaay around with pygame.mixer

I added .ogg music and sound effects to my game, and they worked fine on 
both my GNU/Linux boxes, and on both Windows98 and WindowsXP boxes I 
tested with, but on my Mac OS X box, it hangs on 
pygame.mixer.Sound(filename) and the processor usage spikes. I have to 
force-quit the python interpreter.

I strongly suspect that this is because the ogg vorbis libraries are 
completely missing in the Mac OS X prebuilt packages. The description 
for the "sdl_pygame_deps 1.2.6" package says: "SDL, SDL_image, 
SDL_mixer, SDL_ttf, smpeg for pygame" but it says nothing about ogg 
vorbis.

So my questions:

(1) Does anybody know how to get this fixed? Or worked-around?

(2) Does anybody know how to detect that the program is running on Mac 
OS X so I can disable sound support until I figure out (1)? Python's 
os.name == 'posix' on Mac OS X, same as on GNU/Linux, so I can'tt use 
that.

--
Bob