annotate stream/stream_radio.h @ 30165:b4cbeff5153e

Add a few missing header #includes and #defines.
author diego
date Mon, 04 Jan 2010 18:58:35 +0000
parents 14c5017f40d2
children ce0122361a39
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 23890
diff changeset
1 #ifndef MPLAYER_STREAM_RADIO_H
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 23890
diff changeset
2 #define MPLAYER_STREAM_RADIO_H
19568
bd821fd3e244 Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff changeset
3
30165
b4cbeff5153e Add a few missing header #includes and #defines.
diego
parents: 27370
diff changeset
4 #include "config.h"
26184
7ee4ae1648e6 Add missing header #includes to fix 'make checkheaders'.
diego
parents: 26029
diff changeset
5 #include "stream.h"
7ee4ae1648e6 Add missing header #includes to fix 'make checkheaders'.
diego
parents: 26029
diff changeset
6
19568
bd821fd3e244 Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff changeset
7 #define RADIO_CHANNEL_LOWER 1
bd821fd3e244 Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff changeset
8 #define RADIO_CHANNEL_HIGHER 2
bd821fd3e244 Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff changeset
9
23890
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
10 typedef struct radio_param_s{
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
11 /** name of radio device file */
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
12 char* device;
27370
14c5017f40d2 Change a bunch of video/audio-output-specific preprocessor directives from
diego
parents: 26184
diff changeset
13 #ifdef CONFIG_RADIO_BSDBT848
23890
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
14 /** minimal allowed frequency */
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
15 float freq_min;
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
16 /** maximal allowed frequency */
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
17 float freq_max;
20985
20110e4437c6 Add *BSD BT848 radio support
voroshil
parents: 20968
diff changeset
18 #endif
23890
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
19 /** radio driver (v4l,v4l2) */
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
20 char* driver;
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
21 /** channels list (see man page) */
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
22 char** channels;
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
23 /** initial volume for radio device */
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
24 int volume;
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
25 /** name of audio device file to grab data from */
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
26 char* adevice;
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
27 /** audio framerate (please also set -rawaudio rate
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
28 parameter to the same value) */
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
29 int arate;
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
30 /** number of audio channels */
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
31 int achannels;
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
32 /** if channels parameter exist, here will be channel
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
33 number otherwise - frequency */
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
34 float freq_channel;
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
35 char* capture;
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
36 } radio_param_t;
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
37
4587edae1790 Replacing global variables in radio:// with
voroshil
parents: 23735
diff changeset
38 extern radio_param_t stream_radio_defaults;
19568
bd821fd3e244 Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff changeset
39
bd821fd3e244 Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff changeset
40 int radio_set_freq(struct stream_st *stream, float freq);
20968
1e6ebb9e49eb add public wrapper for get_frequency
voroshil
parents: 19568
diff changeset
41 int radio_get_freq(struct stream_st *stream, float* freq);
19568
bd821fd3e244 Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff changeset
42 char* radio_get_channel_name(struct stream_st *stream);
bd821fd3e244 Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff changeset
43 int radio_set_channel(struct stream_st *stream, char *channel);
bd821fd3e244 Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff changeset
44 int radio_step_channel(struct stream_st *stream, int direction);
21042
c549c2de24ce new slave command: radio_step_freq
voroshil
parents: 20985
diff changeset
45 int radio_step_freq(struct stream_st *stream, float step_interval);
19568
bd821fd3e244 Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff changeset
46
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 23890
diff changeset
47 #endif /* MPLAYER_STREAM_RADIO_H */