[Scummvm-devel] [PATCH] sdloss backend

Torbjorn.E.Andersson at personec.com Torbjorn.E.Andersson at personec.com
Sun May 1 11:25:44 CEST 2005


Marc Haisenko <marc at darkdust.net> wrote:

> - The SDL backend can now optionally make use of backend/x11/oss.o if the  
>   define SDL_USE_OSS is set (which is done via "./configure --backend=sdloss")
> 
> I hope you'll find it useful enough to include it in SCUMMVM. Please tell me 
> if/what I should tweak to make the patch include-worthy ;-)

I doubt this patch will be accepted. After all, one of the main ideas with
using SDL is to not have to worry about how sound is implemented on various
platforms. SDL itself should be capable of playing the sound through OSS or
ALSA or whatever, though I'm not sure which one it picks by default. Might
depend on the compile-time options used by whoever prepared the SuSE
packages.

There are a number of environment variables which control the behaviour of
SDL. I haven't found any good documentation of them, unfortunately, but you
may want to experiment with the SDL_AUDIODRIVER variable if you haven't
already. It specifies which audio driver SDL should use. Some possible
values you may want to try are "alsa", "arts", "dma", "dsp", and "esd". I
believe it's the "dma" and "dsp" settings which use OSS, though apparently
in different ways.

In the "dma" case it will also check the SDL_DSP_NOSELECT. If it's set, it
will use some kind of workaround for some unspecified problem. I have no
idea what difference that makes.

Torbjörn Andersson




More information about the Scummvm-devel mailing list