Mercurial > mplayer.hg
annotate stream/stream_radio.h @ 26146:20a126aaa756
ve_vfw.c: #include aviheader.h instead of wine avifmt.h
Compilation was broken after libmpdemux/muxer.h started including
libmpdemux/aviheader.h. ve_vfw.c included both muxer.h and
loader/wine/avifmt.h, and the latter has definitions that conflict with
aviheader.h ones. Fix by removing the avifmt.h include.
I did not carefully check that changing the includes doesn't break
any ve_vfw.c code. However it at least fixes compilation, and if the
avifmt.h versions differ in some significant way then the code is
fundamentally broken anyway: ve_vfw cannot use different versions of
the avi struct definitions when it also uses shared muxer.h types
(those must use the standard definitions to keep the type compatible
with what's used in other files).
author | uau |
---|---|
date | Thu, 06 Mar 2008 01:57:26 +0000 |
parents | 4129c8cfa742 |
children | 7ee4ae1648e6 |
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 |
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
4 #define RADIO_CHANNEL_LOWER 1 |
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
5 #define RADIO_CHANNEL_HIGHER 2 |
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
6 |
23890 | 7 typedef struct radio_param_s{ |
8 /** name of radio device file */ | |
9 char* device; | |
10 #ifdef HAVE_RADIO_BSDBT848 | |
11 /** minimal allowed frequency */ | |
12 float freq_min; | |
13 /** maximal allowed frequency */ | |
14 float freq_max; | |
20985 | 15 #endif |
23890 | 16 /** radio driver (v4l,v4l2) */ |
17 char* driver; | |
18 /** channels list (see man page) */ | |
19 char** channels; | |
20 /** initial volume for radio device */ | |
21 int volume; | |
22 /** name of audio device file to grab data from */ | |
23 char* adevice; | |
24 /** audio framerate (please also set -rawaudio rate | |
25 parameter to the same value) */ | |
26 int arate; | |
27 /** number of audio channels */ | |
28 int achannels; | |
29 /** if channels parameter exist, here will be channel | |
30 number otherwise - frequency */ | |
31 float freq_channel; | |
32 char* capture; | |
33 } radio_param_t; | |
34 | |
35 extern radio_param_t stream_radio_defaults; | |
19568
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
36 |
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
37 int radio_set_freq(struct stream_st *stream, float freq); |
20968 | 38 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
|
39 char* radio_get_channel_name(struct stream_st *stream); |
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
40 int radio_set_channel(struct stream_st *stream, char *channel); |
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
41 int radio_step_channel(struct stream_st *stream, int direction); |
21042 | 42 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
|
43 |
26029 | 44 #endif /* MPLAYER_STREAM_RADIO_H */ |