Web lists-archives.org

[MPlayer-dev-eng] [PATCH] add messages about search for audio driver




I thought this had been committed, but I don't see it, so here it is again.
Index: libao2/audio_out.c
===================================================================
--- libao2/audio_out.c	(revision 27074)
+++ libao2/audio_out.c	(working copy)
@@ -134,6 +134,10 @@
         }
         else
             ao_len = strlen(ao);
+
+        mp_msg(MSGT_AO, MSGL_V, MSGTR_AO_TryingPreferredAudioDriver,
+               ao_len, ao_len, ao, ao_subdevice ? ao_subdevice : "[none]");
+
         for(i=0;audio_out_drivers[i];i++){
             const ao_functions_t* audio_out=audio_out_drivers[i];
             if(!strncmp(audio_out->info->short_name,ao,ao_len)){
@@ -142,6 +146,7 @@
                     return audio_out; // success!
             }
         }
+        mp_msg(MSGT_AO, MSGL_V, MSGTR_AO_NoDriverByThatName);
         // continue...
         ++ao_list;
         if(!(ao_list[0])) return NULL; // do NOT fallback to others
@@ -150,6 +155,9 @@
         free(ao_subdevice);
         ao_subdevice = NULL;
     }
+
+    mp_msg(MSGT_AO, MSGL_V, MSGTR_AO_TryingEveryKnown);
+
     // now try the rest...
     for(i=0;audio_out_drivers[i];i++){
         const ao_functions_t* audio_out=audio_out_drivers[i];
Index: help/help_mp-en.h
===================================================================
--- help/help_mp-en.h	(revision 27074)
+++ help/help_mp-en.h	(working copy)
@@ -1153,6 +1153,9 @@
 
 // audio_out.c
 #define MSGTR_AO_ALSA9_1x_Removed "audio_out: alsa9 and alsa1x modules were removed, use -ao alsa instead.\n"
+#define MSGTR_AO_TryingPreferredAudioDriver "Trying preferred audio driver '%*.*s', subdevice '%s'\n"
+#define MSGTR_AO_NoDriverByThatName "No driver by that name, or it wouldn't initialize\n"
+#define MSGTR_AO_TryingEveryKnown "Trying every known audio driver ...\n"
 
 // ao_oss.c
 #define MSGTR_AO_OSS_CantOpenMixer "[AO OSS] audio_setup: Can't open mixer device %s: %s\n"
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng