summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-04-11 18:59:19 +0000
committercehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-04-11 18:59:19 +0000
commit40ac0d3109c4baeb10a04b503c6e6213c75d7779 (patch)
tree7e13b80aa22a6b8ecb11f616ac48efdcd079f596 /input
parente3ed371d519ff0267882632658d9cd94f0dee008 (diff)
downloadmpv-40ac0d3109c4baeb10a04b503c6e6213c75d7779.tar.bz2
mpv-40ac0d3109c4baeb10a04b503c6e6213c75d7779.tar.xz
Add slave commands for loading and unloading audio filters at runtime.
Patch by Jehan Hysseo, hysseo zemarmot net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31030 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'input')
-rw-r--r--input/input.c5
-rw-r--r--input/input.h7
2 files changed, 12 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c
index 7e679119ea..0bcd5752af 100644
--- a/input/input.c
+++ b/input/input.c
@@ -209,6 +209,11 @@ static const mp_cmd_t mp_cmds[] = {
{ MP_CMD_SEEK_CHAPTER, "seek_chapter", 1, { {MP_CMD_ARG_INT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } },
{ MP_CMD_SET_MOUSE_POS, "set_mouse_pos", 2, { {MP_CMD_ARG_INT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } },
+ { MP_CMD_AF_SWITCH, "af_switch", 1, { {MP_CMD_ARG_STRING, {0}}, {-1,{0}} } },
+ { MP_CMD_AF_ADD, "af_add", 1, { {MP_CMD_ARG_STRING, {0}}, {-1,{0}} } },
+ { MP_CMD_AF_DEL, "af_del", 1, { {MP_CMD_ARG_STRING, {0}}, {-1,{0}} } },
+ { MP_CMD_AF_CLR, "af_clr", 0, { {-1,{0}} } },
+
{ 0, NULL, 0, {} }
};
diff --git a/input/input.h b/input/input.h
index 2df3f03932..69c6d4b959 100644
--- a/input/input.h
+++ b/input/input.h
@@ -162,6 +162,13 @@ typedef enum {
MP_CMD_CHELP = 7000,
MP_CMD_CEXIT,
MP_CMD_CHIDE,
+
+ /// Audio Filter commands
+ MP_CMD_AF_SWITCH,
+ MP_CMD_AF_ADD,
+ MP_CMD_AF_DEL,
+ MP_CMD_AF_CLR,
+
} mp_command_type;
// The arg types