[MPlayer-DOCS] Re: letter to distro mplayer packagers?

Tobias Diedrich ranma at tdiedrich.de
Sun Nov 27 21:13:49 CET 2005


Diego Biurrun wrote:
> vo=x11,
[...]
> The defaults MPlayer uses have been carefully chosen, there should be
> no need to ship more than the default config file where all entries are
> commented out. To further complicate matters there are multiple copies
> of the example config file scattered over the packaging patch.

On that note, maybe it would be nice to reorder the default list for
the audio codecs?
ATM oss is tried before alsa and wrappers are tried after direct
output drivers.

But for ease of use and desktop systems it might be preferable to
try some wrappers first (e.g. jack, arts, polypaudio, don't know
about esd (does it still only do nearest neighbour resampling?),
what does gnome use?) and then alsa before oss (since oss is getting
obsolete).  Also AFAIK the alsa driver still does not use the default
device by default, but wants to open hw:0.0 which is of course nicer for
MPlayer, but can be annoying if you expect mplayer to respect your
dmix setup without extra configuration like most alsa apps do...

I'd suggest something like the attached patch.

-- 
Tobias						PGP: http://9ac7e0bc.uguu.de
-------------- next part --------------
Index: libao2/audio_out.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/audio_out.c,v
retrieving revision 1.50
diff -u -r1.50 audio_out.c
--- libao2/audio_out.c	11 Oct 2005 23:07:53 -0000	1.50
+++ libao2/audio_out.c	27 Nov 2005 20:05:43 -0000
@@ -73,6 +73,16 @@
 #ifdef HAVE_DXR2
         &audio_out_dxr2,
 #endif
+// most often used or good wrappers:
+#ifdef USE_JACK
+        &audio_out_jack,
+#endif
+#ifdef USE_ARTS
+        &audio_out_arts,
+#endif
+#ifdef USE_POLYP
+        &audio_out_polyp,
+#endif
 // native:
 #ifdef HAVE_DIRECTX
         &audio_out_dsound,
@@ -83,12 +93,12 @@
 #ifdef MACOSX
 	&audio_out_macosx,
 #endif
-#ifdef USE_OSS_AUDIO
-        &audio_out_oss,
-#endif
 #ifdef HAVE_ALSA1X
 	&audio_out_alsa,
 #endif
+#ifdef USE_OSS_AUDIO
+        &audio_out_oss,
+#endif
 #ifdef HAVE_ALSA9
 	&audio_out_alsa,
 #endif
@@ -101,19 +111,10 @@
 #ifdef USE_SUN_AUDIO
         &audio_out_sun,
 #endif
-// wrappers:
-#ifdef USE_ARTS
-        &audio_out_arts,
-#endif
+// seldom used or bad wrappers:
 #ifdef USE_ESD
         &audio_out_esd,
 #endif
-#ifdef USE_POLYP
-        &audio_out_polyp,
-#endif
-#ifdef USE_JACK
-        &audio_out_jack,
-#endif
 #ifdef HAVE_NAS
 	&audio_out_nas,
 #endif


More information about the MPlayer-DOCS mailing list