2 * This file is part of MPlayer.
4 * MPlayer is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * MPlayer is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef MPLAYER_STREAM_RADIO_H
20 #define MPLAYER_STREAM_RADIO_H
25 #define RADIO_CHANNEL_LOWER 1
26 #define RADIO_CHANNEL_HIGHER 2
28 typedef struct radio_param_s
{
29 /** name of radio device file */
31 #ifdef CONFIG_RADIO_BSDBT848
32 /** minimal allowed frequency */
34 /** maximal allowed frequency */
37 /** radio driver (v4l,v4l2) */
39 /** channels list (see man page) */
41 /** initial volume for radio device */
43 /** name of audio device file to grab data from */
45 /** audio framerate (please also set -rawaudio rate
46 parameter to the same value) */
48 /** number of audio channels */
50 /** if channels parameter exist, here will be channel
51 number otherwise - frequency */
56 extern radio_param_t stream_radio_defaults
;
58 int radio_set_freq(struct stream
*stream
, float freq
);
59 int radio_get_freq(struct stream
*stream
, float* freq
);
60 char* radio_get_channel_name(struct stream
*stream
);
61 int radio_set_channel(struct stream
*stream
, char *channel
);
62 int radio_step_channel(struct stream
*stream
, int direction
);
63 int radio_step_freq(struct stream
*stream
, float step_interval
);
65 #endif /* MPLAYER_STREAM_RADIO_H */