Freezing on SDL_mixer

Howdy,

New to the list here…I’ve been playing with the Pygame modules in
Python and am working on a 2D side scrolling game. I started out in Windows,
just got Linux running again, so I wanted to get my game development stuff
over to Linux. I’ve run into a problem…whenever I try to init
SDL_mixer, my program freezes. I also notice that other SDL apps
(particularly, Scorched3D) hang when initializing sound. My system is
Slackware 9.1, SDL 1.2.6, and SDL_mixer 1.2.6. Here’s a snip from the strace
output of my app where it appears to be hanging:

access("/dev/dsp0", F_OK) = 0
open("/dev/dsp0", O_WRONLY

After that I have to kill the app, it doesn’t do anything. This actually
happens with any pygame-based app, since pygame’s init() function calls
SDL_mixer.

Using an Ensoniq AudioPCI soundcard, with the snd-ens1371 module. Motherboard
is an Asus A7N8X-X (has onboard sound, but I disabled it…I did try using
the onboard sound but had the same problems).

I’ve had both the PCI soundcard and the onboard sound working for other apps
like XMMS etc (though not at the same time…). Any ideas?

Thanks,

-Matt Bailey

PS: FWIW, SDL 1.2.6 came with Slack, SDL_mixer was compiled from source.

Hello !

PS: FWIW, SDL 1.2.6 came with Slack, SDL_mixer was compiled from source.

You should delete the SDL Package that comes with
Slackware and built your own set of SDL + helper libs.
Or another way would be converting the RPMs to TGZs
with rpm2tgz.

The Quality of the Slackware Packages is normally pretty good,
but the Quality of the SDL package seems very poor to me.

A good idea is also to test the latest CVS versions.

PS: A Happy New Year to all !

CU

Hello !

PS: FWIW, SDL 1.2.6 came with Slack, SDL_mixer was compiled from source.

You should delete the SDL Package that comes with
Slackware and built your own set of SDL + helper libs.
Or another way would be converting the RPMs to TGZs
with rpm2tgz.

The Quality of the Slackware Packages is normally pretty good,
but the Quality of the SDL package seems very poor to me.

Ah, ok, will dump the prebuilt SDL and start from scratch. Thanks!

A good idea is also to test the latest CVS versions.

PS: A Happy New Year to all !

CU

Happy new year to you too!

-Matt BaileyOn Friday 31 December 2004 04:28, Torsten Giebl wrote:

Hmmm well I tried compiling SDL 1.2.8 and I still get the same problem when
trying to run my game. Do I need to upgrade to SDL_mixer 1.2.8?

I did remove the old SDL install first. :slight_smile:

-Matt Bailey