Mercurial > mplayer.hg
annotate libao2/audio_out.h @ 1234:dfccdda074e5
OPTFLAGS vs. INCLUDES cleanup
author | arpi |
---|---|
date | Tue, 26 Jun 2001 23:15:58 +0000 |
parents | e21c96e28062 |
children | b24661a9924e |
rev | line source |
---|---|
954 | 1 typedef struct ao_info_s |
2 { | |
3 /* driver name ("Matrox Millennium G200/G400" */ | |
4 const char *name; | |
5 /* short name (for config strings) ("mga") */ | |
6 const char *short_name; | |
7 /* author ("Aaron Holtzman <aholtzma@ess.engr.uvic.ca>") */ | |
8 const char *author; | |
9 /* any additional comments */ | |
10 const char *comment; | |
11 } ao_info_t; | |
12 | |
1127
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
13 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
|
14 { |
954 | 15 ao_info_t *info; |
16 int (*control)(int cmd,int arg); | |
17 int (*init)(int rate,int channels,int format,int flags); | |
18 void (*uninit)(); | |
19 void (*reset)(); | |
1127
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
20 int (*get_space)(); |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
21 int (*play)(void* data,int len,int flags); |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
22 int (*get_delay)(); |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
23 void (*pause)(); |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
24 void (*resume)(); |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
25 } ao_functions_t; |
954 | 26 |
1127
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
27 // prototypes |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
28 extern char *audio_out_format_name(int format); |
954 | 29 |
30 // NULL terminated array of all drivers | |
31 extern ao_functions_t* audio_out_drivers[]; | |
32 | |
33 extern int ao_samplerate; | |
34 extern int ao_channels; | |
35 extern int ao_format; | |
36 extern int ao_bps; | |
37 extern int ao_outburst; | |
38 extern int ao_buffersize; | |
1185 | 39 extern char *ao_subdevice; |
954 | 40 |
41 #define CONTROL_OK 1 | |
42 #define CONTROL_TRUE 1 | |
43 #define CONTROL_FALSE 0 | |
44 #define CONTROL_UNKNOWN -1 | |
45 #define CONTROL_ERROR -2 | |
46 #define CONTROL_NA -3 | |
47 | |
48 #define AOCONTROL_SET_DEVICE 1 | |
1048 | 49 #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
|
50 #define AOCONTROL_QUERY_FORMAT 3 /* test for availabilty of a format */ |
1048 | 51 #define AOCONTROL_GET_VOLUME 4 |
52 #define AOCONTROL_SET_VOLUME 5 | |
1127
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
53 |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
54 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
|
55 float left; |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
56 float right; |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
57 } ao_control_vol_t; |