From 35649a990a5d468b6e9539c9e362d1e5a351c9c4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 9 Oct 2014 21:21:31 +0200 Subject: audio: add device selection & listing with --audio-device Not sure how good of an idea this is. This commit doesn't add support for this to any AO yet; the AO implementations will follow later. --- player/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'player') diff --git a/player/main.c b/player/main.c index af1d3427dc..bf14b25340 100644 --- a/player/main.c +++ b/player/main.c @@ -229,6 +229,10 @@ static bool handle_help_options(struct MPContext *mpctx) MP_INFO(mpctx, "\n"); opt_exit = 1; } + if (opts->audio_device && strcmp(opts->audio_device, "help") == 0) { + ao_print_devices(log); + opt_exit = 1; + } #if HAVE_ENCODING if (encode_lavc_showhelp(log, opts->encode_opts)) opt_exit = 1; -- cgit v1.2.3