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

Adrian Bunk bunk at stusta.de
Sat Apr 28 16:23:14 CEST 2007


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
 #ifdef USE_SGI_AUDIO
         &audio_out_sgi,
 #endif





More information about the MPlayer-dev-eng mailing list