1 #ifndef MPLAYER_STREAM_RADIO_H
2 #define MPLAYER_STREAM_RADIO_H
7 #define RADIO_CHANNEL_LOWER 1
8 #define RADIO_CHANNEL_HIGHER 2
10 typedef struct radio_param_s
{
11 /** name of radio device file */
13 #ifdef CONFIG_RADIO_BSDBT848
14 /** minimal allowed frequency */
16 /** maximal allowed frequency */
19 /** radio driver (v4l,v4l2) */
21 /** channels list (see man page) */
23 /** initial volume for radio device */
25 /** name of audio device file to grab data from */
27 /** audio framerate (please also set -rawaudio rate
28 parameter to the same value) */
30 /** number of audio channels */
32 /** if channels parameter exist, here will be channel
33 number otherwise - frequency */
38 extern radio_param_t stream_radio_defaults
;
40 int radio_set_freq(struct stream
*stream
, float freq
);
41 int radio_get_freq(struct stream
*stream
, float* freq
);
42 char* radio_get_channel_name(struct stream
*stream
);
43 int radio_set_channel(struct stream
*stream
, char *channel
);
44 int radio_step_channel(struct stream
*stream
, int direction
);
45 int radio_step_freq(struct stream
*stream
, float step_interval
);
47 #endif /* MPLAYER_STREAM_RADIO_H */