summaryrefslogtreecommitdiffstats
path: root/libao2
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-06-23 03:58:44 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-06-23 03:58:44 +0300
commitde560e8167c21a8fd9ea34f5f42f377102d65232 (patch)
treed5ef49221ccbb17308b0d14a96e6bd8cfba5916f /libao2
parent68e70b3ec34af2e1002d17d0dc81b3408a399ade (diff)
parent5eee4632d3e2bcf17a29483467d247c71c202e0d (diff)
downloadmpv-de560e8167c21a8fd9ea34f5f42f377102d65232.tar.bz2
mpv-de560e8167c21a8fd9ea34f5f42f377102d65232.tar.xz
Merge svn changes up to r27123
Conflicts: libmenu/menu_filesel.c libmenu/menu_pt.c
Diffstat (limited to 'libao2')
-rw-r--r--libao2/audio_out.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libao2/audio_out.c b/libao2/audio_out.c
index c4f71cdf65..754e6a11f4 100644
--- a/libao2/audio_out.c
+++ b/libao2/audio_out.c
@@ -134,14 +134,23 @@ const ao_functions_t* init_best_audio_out(char** ao_list,int use_plugin,int rate
}
else
ao_len = strlen(ao);
+
+ mp_msg(MSGT_AO, MSGL_V, MSGTR_AO_TryingPreferredAudioDriver,
+ 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)){
// name matches, try it
if(audio_out->init(rate,channels,format,flags))
return audio_out; // success!
+ else
+ mp_msg(MSGT_AO, MSGL_WARN, MSGTR_AO_FailedInit, ao);
+ break;
}
}
+ if (!audio_out_drivers[i]) // we searched through the entire list
+ mp_msg(MSGT_AO, MSGL_WARN, MSGTR_AO_NoSuchDriver, ao_len, ao);
// continue...
++ao_list;
if(!(ao_list[0])) return NULL; // do NOT fallback to others
@@ -150,6 +159,9 @@ const ao_functions_t* init_best_audio_out(char** ao_list,int use_plugin,int rate
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];