1 #ifndef MPLAYER_STREAM_RADIO_H
2 #define MPLAYER_STREAM_RADIO_H
6 #define RADIO_CHANNEL_LOWER 1
7 #define RADIO_CHANNEL_HIGHER 2
9 typedef struct radio_param_s
{
10 /** name of radio device file */
12 #ifdef CONFIG_RADIO_BSDBT848
13 /** minimal allowed frequency */
15 /** maximal allowed frequency */
18 /** radio driver (v4l,v4l2) */
20 /** channels list (see man page) */
22 /** initial volume for radio device */
24 /** name of audio device file to grab data from */
26 /** audio framerate (please also set -rawaudio rate
27 parameter to the same value) */
29 /** number of audio channels */
31 /** if channels parameter exist, here will be channel
32 number otherwise - frequency */
37 extern radio_param_t stream_radio_defaults
;
39 int radio_set_freq(struct stream_st
*stream
, float freq
);
40 int radio_get_freq(struct stream_st
*stream
, float* freq
);
41 char* radio_get_channel_name(struct stream_st
*stream
);
42 int radio_set_channel(struct stream_st
*stream
, char *channel
);
43 int radio_step_channel(struct stream_st
*stream
, int direction
);
44 int radio_step_freq(struct stream_st
*stream
, float step_interval
);
46 #endif /* MPLAYER_STREAM_RADIO_H */