[MPlayer-dev-eng] [patch] prefer ALSA over OSS

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Apr 28 17:04:37 CEST 2007


Hello,
On Sat, Apr 28, 2007 at 04:23:14PM +0200, Adrian Bunk wrote:
> In Linux kernel 2.6, ALSA is the default sound system.
> It contains an in-kernel OSS emulation, but using ALSA directly is 
> better.
> 
> MPlayer supports both ALSA and OSS, and this patch changes the order to 
> check for ALSA before checking for OSS.
> 
> --- libao2/audio_out.c.old	2007-04-28 01:08:17.000000000 +0200
> +++ libao2/audio_out.c	2007-04-28 01:08:44.000000000 +0200
> @@ -84,9 +84,6 @@
>  #ifdef MACOSX
>  	&audio_out_macosx,
>  #endif
> -#ifdef USE_OSS_AUDIO
> -        &audio_out_oss,
> -#endif
>  #ifdef HAVE_ALSA1X
>  	&audio_out_alsa,
>  #endif
> @@ -96,6 +93,9 @@
>  #ifdef HAVE_ALSA5
>  	&audio_out_alsa5,
>  #endif
> +#ifdef USE_OSS_AUDIO
> +        &audio_out_oss,
> +#endif

Alsa 0.5 certainly shouldn't be preferred over OSS.

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list