diff options
Diffstat (limited to 'input')
-rw-r--r-- | input/cmd_list.c | 6 | ||||
-rw-r--r-- | input/cmd_list.h | 3 |
2 files changed, 9 insertions, 0 deletions
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} }; diff --git a/input/cmd_list.h b/input/cmd_list.h index 84e64273e2..c761be98ee 100644 --- a/input/cmd_list.h +++ b/input/cmd_list.h @@ -73,6 +73,9 @@ enum mp_command_type { MP_CMD_MULTIPLY, MP_CMD_CYCLE_VALUES, MP_CMD_STOP, + MP_CMD_AUDIO_ADD, + MP_CMD_AUDIO_REMOVE, + MP_CMD_AUDIO_RELOAD, MP_CMD_ENABLE_INPUT_SECTION, MP_CMD_DISABLE_INPUT_SECTION, |