Give better name to Inverse_Table_6_9
[mplayer/glamo.git] / stream / stream_radio.h
blobe77f4aa05eab73691026f474d9ab8b2b6e7d4964
1 #ifndef MPLAYER_STREAM_RADIO_H
2 #define MPLAYER_STREAM_RADIO_H
4 #include "stream.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 */
11 char* device;
12 #ifdef CONFIG_RADIO_BSDBT848
13 /** minimal allowed frequency */
14 float freq_min;
15 /** maximal allowed frequency */
16 float freq_max;
17 #endif
18 /** radio driver (v4l,v4l2) */
19 char* driver;
20 /** channels list (see man page) */
21 char** channels;
22 /** initial volume for radio device */
23 int volume;
24 /** name of audio device file to grab data from */
25 char* adevice;
26 /** audio framerate (please also set -rawaudio rate
27 parameter to the same value) */
28 int arate;
29 /** number of audio channels */
30 int achannels;
31 /** if channels parameter exist, here will be channel
32 number otherwise - frequency */
33 float freq_channel;
34 char* capture;
35 } radio_param_t;
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 */