How can i set another audio device than /dev/dsp?

Hello

Is it possible to set another audio device name than /dev/dsp?

I know of the SDL_AUDIODRIVER Variable, but i don’t know how to change
the device itself from /dev/dsp to /dev/sam0_dsp for example.

The reason because i am asking is that i have problems with the sound in
UT.
The game crashes after 2 minutes of playing when run with sound.
It doesn’t crash without sound (or in other words not so often).

My soundcard has two soundchips, one high quality (the sam9407 chip) and
one low quality soundchip (the cs4232 chip).

I also have two sounddrivers, for the cs4232 chip i use the ALSA driver
snd-card-cs4232 that has /dev/dsp0 as main device name.

The sam9407 chip has the sam9407 sounddriver, it is a native sounddriver
(no alsa or OSS driver) and uses the device name /dev/sam0_dsp.

The cs4232 device name ist linked to /dev/dsp, so thats the main
soundchip i am using normally. (i need it because of KDE, where i have
some problems with the sam9407 driver because of the complex mixer
settings of that chip)
Now i want to use for UT instead of the cs4232 chip my sam9407 chip, so
i must tell UT to use the device /dev/sam0_dsp.

Perhaps the sam9407 chip works better with ut, so that ut doens’t crash
so often.

How can i do that?
Is that possible?

Thanks
Oliver C.

How can i do that?

All things are answered by the source my son.
SDL_audiodev.c, line 59:
Set the SDL_PATH_DSP environment variable.

Succinctly,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Sam Lantinga wrote:

How can i do that?

All things are answered by the source my son.
SDL_audiodev.c, line 59:
Set the SDL_PATH_DSP environment variable.

Succinctly,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Thanks my father :wink:

But how can i do this with UT?

Isn’t UT linked statically to an own sdl library?
Or can i use a normal shared sdl library to do this?

Wouldn’t it be better to be able to do such a thing also with
compiled SDL librarys in an environment variable or a sdl configure
file?

Thanks
Oliver C.

Isn’t UT linked statically to an own sdl library?

SDL’s use of environment variables is not affected by how it is linked