summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-09 21:21:31 +0200
committerwm4 <wm4@nowhere>2014-10-09 21:21:31 +0200
commit35649a990a5d468b6e9539c9e362d1e5a351c9c4 (patch)
tree31b1f76c5c219cfeaa0360c09122bfc45c4b90b7 /options/options.c
parent89890192711e1478e7626df6f8eb2a7ecb117342 (diff)
downloadmpv-35649a990a5d468b6e9539c9e362d1e5a351c9c4.tar.bz2
mpv-35649a990a5d468b6e9539c9e362d1e5a351c9c4.tar.xz
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.
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index af30a584b9..39b562ee80 100644
--- a/options/options.c
+++ b/options/options.c
@@ -350,6 +350,7 @@ const m_option_t mp_opts[] = {
OPT_SETTINGSLIST("vo-defaults", vo.vo_defs, 0, &vo_obj_list),
OPT_SETTINGSLIST("ao", audio_driver_list, 0, &ao_obj_list),
OPT_SETTINGSLIST("ao-defaults", ao_defs, 0, &ao_obj_list),
+ OPT_STRING("audio-device", audio_device, 0),
OPT_FLAG("fixed-vo", fixed_vo, CONF_GLOBAL),
OPT_FLAG("force-window", force_vo, CONF_GLOBAL),
OPT_FLAG("ontop", vo.ontop, M_OPT_FIXED),
@@ -562,6 +563,7 @@ const struct MPOpts mp_default_opts = {
.mixer_init_mute = -1,
.gapless_audio = -1,
.audio_buffer = 0.2,
+ .audio_device = "auto",
.vo = {
.video_driver_list = NULL,
.monitor_pixel_aspect = 1.0,