Mercurial > mplayer.hg
annotate libao2/audio_out.h @ 26183:4d54efbb35ec
Remove useless #include.
author | diego |
---|---|
date | Mon, 10 Mar 2008 19:28:18 +0000 |
parents | 4129c8cfa742 |
children | e45b08f2f5d3 |
rev | line source |
---|---|
26029 | 1 #ifndef MPLAYER_AUDIO_OUT_H |
2 #define MPLAYER_AUDIO_OUT_H | |
6795 | 3 |
954 | 4 typedef struct ao_info_s |
5 { | |
6 /* driver name ("Matrox Millennium G200/G400" */ | |
7 const char *name; | |
8 /* short name (for config strings) ("mga") */ | |
9 const char *short_name; | |
10 /* author ("Aaron Holtzman <aholtzma@ess.engr.uvic.ca>") */ | |
11 const char *author; | |
12 /* any additional comments */ | |
13 const char *comment; | |
14 } ao_info_t; | |
15 | |
3095 | 16 /* interface towards mplayer and */ |
1127
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
17 typedef struct ao_functions_s |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
18 { |
954 | 19 ao_info_t *info; |
9633
12b1790038b0
64bit libao2 fix by Jens Axboe <mplayer-dev@kernel.dk>
alex
parents:
7563
diff
changeset
|
20 int (*control)(int cmd,void *arg); |
954 | 21 int (*init)(int rate,int channels,int format,int flags); |
12145 | 22 void (*uninit)(int immed); |
17566
f580a7755ac5
Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents:
14618
diff
changeset
|
23 void (*reset)(void); |
f580a7755ac5
Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents:
14618
diff
changeset
|
24 int (*get_space)(void); |
1127
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
25 int (*play)(void* data,int len,int flags); |
17566
f580a7755ac5
Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents:
14618
diff
changeset
|
26 float (*get_delay)(void); |
f580a7755ac5
Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents:
14618
diff
changeset
|
27 void (*pause)(void); |
f580a7755ac5
Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents:
14618
diff
changeset
|
28 void (*resume)(void); |
1127
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
29 } ao_functions_t; |
954 | 30 |
3095 | 31 /* global data used by mplayer and plugins */ |
32 typedef struct ao_data_s | |
33 { | |
34 int samplerate; | |
35 int channels; | |
36 int format; | |
37 int bps; | |
38 int outburst; | |
39 int buffersize; | |
40 int pts; | |
41 } ao_data_t; | |
42 | |
43 extern char *ao_subdevice; | |
44 extern ao_data_t ao_data; | |
45 | |
17566
f580a7755ac5
Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents:
14618
diff
changeset
|
46 void list_audio_out(void); |
25913 | 47 const ao_functions_t* init_best_audio_out(char** ao_list,int use_plugin,int rate,int channels,int format,int flags); |
7563
e9e4398029de
audio out driver list support (example: -ao alsa9,sdl:esd,oss,sdl:oss,)
arpi
parents:
6795
diff
changeset
|
48 |
954 | 49 // NULL terminated array of all drivers |
25913 | 50 extern const ao_functions_t* const audio_out_drivers[]; |
954 | 51 |
52 #define CONTROL_OK 1 | |
53 #define CONTROL_TRUE 1 | |
54 #define CONTROL_FALSE 0 | |
55 #define CONTROL_UNKNOWN -1 | |
56 #define CONTROL_ERROR -2 | |
57 #define CONTROL_NA -3 | |
58 | |
59 #define AOCONTROL_SET_DEVICE 1 | |
1048 | 60 #define AOCONTROL_GET_DEVICE 2 |
1127
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
61 #define AOCONTROL_QUERY_FORMAT 3 /* test for availabilty of a format */ |
1048 | 62 #define AOCONTROL_GET_VOLUME 4 |
63 #define AOCONTROL_SET_VOLUME 5 | |
3107 | 64 #define AOCONTROL_SET_PLUGIN_DRIVER 6 |
65 #define AOCONTROL_SET_PLUGIN_LIST 7 | |
1127
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
66 |
18735
93dd2847bcdc
Rewrite audio EOF handling logic fixing some problems that could cause
uau
parents:
17566
diff
changeset
|
67 #define AOPLAY_FINAL_CHUNK 1 |
93dd2847bcdc
Rewrite audio EOF handling logic fixing some problems that could cause
uau
parents:
17566
diff
changeset
|
68 |
1127
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
69 typedef struct ao_control_vol_s { |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
70 float left; |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
71 float right; |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
72 } ao_control_vol_t; |
3107 | 73 |
26029 | 74 #endif /* MPLAYER_AUDIO_OUT_H */ |