[SDL] SDL_Init(SDL_INIT_AUDIO) crash
slouken at devolution.com
Thu Dec 7 09:02:44 PST 2000
> One of my games crashed when /dev/dsp is in use, when I call
> SDL_Init(SDL_INIT_AUDIO), even if it's the first line in the main function. The
> only output is "/dev/dsp: Device or resource busy". That's probably my fault,
> since other programs work well. Does anyone have an idea what could cause this?
> Here's gdb's output:
> #0 0x80547ec in pause ()
> #1 0x40233a73 in esd_open_sound () from /usr/lib/libesd.so.0
> #2 0x40025490 in SDL_OpenAudioPath () from /usr/local/lib/libSDL-1.1.so.0
> #3 0x4002318a in SDL_AudioInit () from /usr/local/lib/libSDL-1.1.so.0
> #4 0x400222c6 in SDL_InitSubSystem () from /usr/local/lib/libSDL-1.1.so.0
> #5 0x40022385 in SDL_Init () from /usr/local/lib/libSDL-1.1.so.0
> #6 0x804b241 in main (argc=2, argv=0xbffffbe4) at main.c:435
I've seen this as well. It appears to be a bug in esd.
Anybody tracked down what's going on?
-Sam Lantinga, Lead Programmer, Loki Entertainment Software
More information about the SDL