Mercurial > mplayer.hg
annotate stream/stream_radio.h @ 30416:b573c7c7173b
Add standard license header to C tools missing them.
author | diego |
---|---|
date | Sat, 30 Jan 2010 13:35:03 +0000 |
parents | b4cbeff5153e |
children | ce0122361a39 |
rev | line source |
---|---|
26029 | 1 #ifndef MPLAYER_STREAM_RADIO_H |
2 #define MPLAYER_STREAM_RADIO_H | |
19568
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
3 |
30165 | 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 | 10 typedef struct radio_param_s{ |
11 /** name of radio device file */ | |
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 | 14 /** minimal allowed frequency */ |
15 float freq_min; | |
16 /** maximal allowed frequency */ | |
17 float freq_max; | |
20985 | 18 #endif |
23890 | 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; | |
37 | |
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 | 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 | 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 | 47 #endif /* MPLAYER_STREAM_RADIO_H */ |