VCR2 fails for mpeg12, decodes incorrectly (and cannot be fixed) for
[mplayer/glamo.git] / stream / stream_radio.h
blobc2de25a5aa18543a426f7d402baa385c7fb2efc6
1 #ifndef MPLAYER_STREAM_RADIO_H
2 #define MPLAYER_STREAM_RADIO_H
4 #include "config.h"
5 #include "stream.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 */
12 char* device;
13 #ifdef CONFIG_RADIO_BSDBT848
14 /** minimal allowed frequency */
15 float freq_min;
16 /** maximal allowed frequency */
17 float freq_max;
18 #endif
19 /** radio driver (v4l,v4l2) */
20 char* driver;
21 /** channels list (see man page) */
22 char** channels;
23 /** initial volume for radio device */
24 int volume;
25 /** name of audio device file to grab data from */
26 char* adevice;
27 /** audio framerate (please also set -rawaudio rate
28 parameter to the same value) */
29 int arate;
30 /** number of audio channels */
31 int achannels;
32 /** if channels parameter exist, here will be channel
33 number otherwise - frequency */
34 float freq_channel;
35 char* capture;
36 } radio_param_t;
38 extern radio_param_t stream_radio_defaults;
40 int radio_set_freq(struct stream_st *stream, float freq);
41 int radio_get_freq(struct stream_st *stream, float* freq);
42 char* radio_get_channel_name(struct stream_st *stream);
43 int radio_set_channel(struct stream_st *stream, char *channel);
44 int radio_step_channel(struct stream_st *stream, int direction);
45 int radio_step_freq(struct stream_st *stream, float step_interval);
47 #endif /* MPLAYER_STREAM_RADIO_H */