Mercurial > mplayer.hg
annotate stream/stream_radio.h @ 36580:0462f5c5aa00
demux_mkv: use a default mime-type if none was specified.
author | reimar |
---|---|
date | Mon, 20 Jan 2014 22:08:46 +0000 |
parents | de190efe4da3 |
children |
rev | line source |
---|---|
30426
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
30165
diff
changeset
|
1 /* |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
30165
diff
changeset
|
2 * This file is part of MPlayer. |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
30165
diff
changeset
|
3 * |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
30165
diff
changeset
|
4 * MPlayer is free software; you can redistribute it and/or modify |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
30165
diff
changeset
|
5 * it under the terms of the GNU General Public License as published by |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
30165
diff
changeset
|
6 * the Free Software Foundation; either version 2 of the License, or |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
30165
diff
changeset
|
7 * (at your option) any later version. |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
30165
diff
changeset
|
8 * |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
30165
diff
changeset
|
9 * MPlayer is distributed in the hope that it will be useful, |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
30165
diff
changeset
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
30165
diff
changeset
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
30165
diff
changeset
|
12 * GNU General Public License for more details. |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
30165
diff
changeset
|
13 * |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
30165
diff
changeset
|
14 * You should have received a copy of the GNU General Public License along |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
30165
diff
changeset
|
15 * with MPlayer; if not, write to the Free Software Foundation, Inc., |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
30165
diff
changeset
|
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
30165
diff
changeset
|
17 */ |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
30165
diff
changeset
|
18 |
26029 | 19 #ifndef MPLAYER_STREAM_RADIO_H |
20 #define MPLAYER_STREAM_RADIO_H | |
19568
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
21 |
30165 | 22 #include "config.h" |
26184
7ee4ae1648e6
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
23 #include "stream.h" |
7ee4ae1648e6
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
24 |
19568
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
25 #define RADIO_CHANNEL_LOWER 1 |
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
26 #define RADIO_CHANNEL_HIGHER 2 |
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
27 |
23890 | 28 typedef struct radio_param_s{ |
29 /** name of radio device file */ | |
30 char* device; | |
27370
14c5017f40d2
Change a bunch of video/audio-output-specific preprocessor directives from
diego
parents:
26184
diff
changeset
|
31 #ifdef CONFIG_RADIO_BSDBT848 |
23890 | 32 /** minimal allowed frequency */ |
33 float freq_min; | |
34 /** maximal allowed frequency */ | |
35 float freq_max; | |
20985 | 36 #endif |
23890 | 37 /** radio driver (v4l,v4l2) */ |
38 char* driver; | |
39 /** channels list (see man page) */ | |
40 char** channels; | |
41 /** initial volume for radio device */ | |
42 int volume; | |
43 /** name of audio device file to grab data from */ | |
44 char* adevice; | |
45 /** audio framerate (please also set -rawaudio rate | |
46 parameter to the same value) */ | |
47 int arate; | |
48 /** number of audio channels */ | |
49 int achannels; | |
50 /** if channels parameter exist, here will be channel | |
51 number otherwise - frequency */ | |
52 float freq_channel; | |
53 char* capture; | |
54 } radio_param_t; | |
55 | |
56 extern radio_param_t stream_radio_defaults; | |
19568
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
57 |
31179 | 58 int radio_set_freq(struct stream *stream, float freq); |
59 int radio_get_freq(struct stream *stream, float* freq); | |
60 char* radio_get_channel_name(struct stream *stream); | |
61 int radio_set_channel(struct stream *stream, char *channel); | |
62 int radio_step_channel(struct stream *stream, int direction); | |
63 int radio_step_freq(struct stream *stream, float step_interval); | |
19568
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
diff
changeset
|
64 |
26029 | 65 #endif /* MPLAYER_STREAM_RADIO_H */ |