vo_corevideo.m: remote useless parentheses and casts
[mplayer/glamo.git] / stream / stream_radio.h
blob8e3df1edb96d1ae279907d04d8bd12b84ce798f4
1 /*
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
22 #include "config.h"
23 #include "stream.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 */
30 char* device;
31 #ifdef CONFIG_RADIO_BSDBT848
32 /** minimal allowed frequency */
33 float freq_min;
34 /** maximal allowed frequency */
35 float freq_max;
36 #endif
37 /** radio driver (v4l,v4l2) */
38 char* driver;
39 /** channels list (see man page) */
40 char** channels;
41 /** initial volume for radio device */
42 int volume;
43 /** name of audio device file to grab data from */
44 char* adevice;
45 /** audio framerate (please also set -rawaudio rate
46 parameter to the same value) */
47 int arate;
48 /** number of audio channels */
49 int achannels;
50 /** if channels parameter exist, here will be channel
51 number otherwise - frequency */
52 float freq_channel;
53 char* capture;
54 } radio_param_t;
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 */