From 95fd83a269db6e2a04e40fe0c40cc02a051f316d Mon Sep 17 00:00:00 2001 From: xylosper Date: Tue, 3 Feb 2015 17:15:14 +0900 Subject: command: new commands audio_add/audio_remove/audio_reload These commands are counterparts of sub_add/sub_remove/sub_reload which work for external audio file. Signed-off-by: wm4 (minor simplification) --- input/cmd_list.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'input/cmd_list.c') diff --git a/input/cmd_list.c b/input/cmd_list.c index 376f330ce2..28c89884e7 100644 --- a/input/cmd_list.c +++ b/input/cmd_list.c @@ -193,6 +193,12 @@ const struct mp_cmd_def mp_cmds[] = { {"double", 1})), }}, + { MP_CMD_AUDIO_ADD, "audio_add", { ARG_STRING, + OARG_CHOICE(0, ({"select", 0}, {"auto", 1}, {"cached", 2})), + OARG_STRING(""), OARG_STRING("") } }, + { MP_CMD_AUDIO_REMOVE, "audio_remove", { OARG_INT(-1) } }, + { MP_CMD_AUDIO_RELOAD, "audio_reload", { OARG_INT(-1) } }, + {0} }; -- cgit v1.2.3