diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-08-28 17:05:18 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-08-28 17:05:18 +0000 |
commit | acf654cf8ff5d7a2693067116347ce568b0455d6 (patch) | |
tree | 55aa4861d6411c4f81e0f08c4be4e44233af23b9 /input | |
parent | 0decebcb05de3b3f4774567524f32d9013c4c6ee (diff) | |
download | mpv-acf654cf8ff5d7a2693067116347ce568b0455d6.tar.bz2 mpv-acf654cf8ff5d7a2693067116347ce568b0455d6.tar.xz |
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19574 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'input')
-rw-r--r-- | input/input.c | 5 | ||||
-rw-r--r-- | input/input.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c index 931526d993..5e824d147b 100644 --- a/input/input.c +++ b/input/input.c @@ -47,6 +47,11 @@ /// is the default value wich is used for optional arguments static mp_cmd_t mp_cmds[] = { +#ifdef USE_RADIO + { MP_CMD_RADIO_STEP_CHANNEL, "radio_step_channel", 1, { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }}, + { MP_CMD_RADIO_SET_CHANNEL, "radio_set_channel", 1, { { MP_CMD_ARG_STRING, {0}}, {-1,{0}} }}, + { MP_CMD_RADIO_SET_FREQ, "radio_set_freq", 1, { {MP_CMD_ARG_FLOAT,{0}}, {-1,{0}} } }, +#endif { MP_CMD_SEEK, "seek", 1, { {MP_CMD_ARG_FLOAT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } }, { MP_CMD_EDL_MARK, "edl_mark", 0, { {-1,{0}} } }, { MP_CMD_AUDIO_DELAY, "audio_delay", 1, { {MP_CMD_ARG_FLOAT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } }, diff --git a/input/input.h b/input/input.h index 53072ceff7..df1c964287 100644 --- a/input/input.h +++ b/input/input.h @@ -86,6 +86,9 @@ #define MP_CMD_GET_META_COMMENT 84 #define MP_CMD_GET_META_TRACK 85 #define MP_CMD_GET_META_GENRE 86 +#define MP_CMD_RADIO_STEP_CHANNEL 87 +#define MP_CMD_RADIO_SET_CHANNEL 88 +#define MP_CMD_RADIO_SET_FREQ 89 #define MP_CMD_GUI_EVENTS 5000 #define MP_CMD_GUI_LOADFILE 5001 |