Mercurial > mplayer.hg
annotate stream/stream_radio.h @ 29677:cc36b326fd9d
Disable libavcodec zlib decoder when zlib is not available, fixes compilation
in that case.
author | reimar |
---|---|
date | Sat, 26 Sep 2009 21:09:29 +0000 |
parents | 14c5017f40d2 |
children | b4cbeff5153e |
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 |
26184
7ee4ae1648e6
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
4 #include "stream.h" |
7ee4ae1648e6
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
5 |
19568
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
6 #define RADIO_CHANNEL_LOWER 1 |
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
7 #define RADIO_CHANNEL_HIGHER 2 |
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
8 |
23890 | 9 typedef struct radio_param_s{ |
10 /** name of radio device file */ | |
11 char* device; | |
27370
14c5017f40d2
Change a bunch of video/audio-output-specific preprocessor directives from
diego
parents:
26184
diff
changeset
|
12 #ifdef CONFIG_RADIO_BSDBT848 |
23890 | 13 /** minimal allowed frequency */ |
14 float freq_min; | |
15 /** maximal allowed frequency */ | |
16 float freq_max; | |
20985 | 17 #endif |
23890 | 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; | |
36 | |
37 extern radio_param_t stream_radio_defaults; | |
19568
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
38 |
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
39 int radio_set_freq(struct stream_st *stream, float freq); |
20968 | 40 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
|
41 char* radio_get_channel_name(struct stream_st *stream); |
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
42 int radio_set_channel(struct stream_st *stream, char *channel); |
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
43 int radio_step_channel(struct stream_st *stream, int direction); |
21042 | 44 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
|
45 |
26029 | 46 #endif /* MPLAYER_STREAM_RADIO_H */ |