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 <wm4@nowhere>
(minor simplification)
This commit is contained in:
xylosper
2015-02-03 17:15:14 +09:00
committed by wm4
parent 2c22fcd350
commit 95fd83a269
6 changed files with 55 additions and 34 deletions

View File

@@ -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}
};