[SDL] ALSA/OSS linux audio driver priorities
Alan Swanson
swanson at ukfsn.org
Tue Aug 7 11:09:06 PDT 2007
On Tue, 2007-08-07 at 17:22 +0200, Gerry JJ wrote:
> Den Tue, 07 Aug 2007 17:14:46 +0200
> skrev YuGiOhJCJ <yugiohjcj at free.fr>:
> [..]
> > You can see the line :
> > --enable-alsa support the ALSA audio API [default=yes]
> > So no problem with SDL and ALSA.
>
> No, you misunderstand. I'm talking about run-time driver priorities,
> not what drivers are enabled in SDL. SDL currently tries to use OSS
> before it tries ALSA. Ie, on a system with ALSA and OSS emulation
> enabled (and no other sound drivers), setting SDL_AUDIODRIVER=dsp has
> no effect, since it's the same as SDL's default behaviour in that case.
I believe the attached patch should make ALSA preferred over OSS.
--
Alan.
"One must never be purposelessnessnesslessness."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sdl-alsa-default.patch
Type: text/x-patch
Size: 551 bytes
Desc: not available
Url : http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070807/5810016d/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070807/5810016d/attachment.pgp
More information about the SDL
mailing list