5 typedef struct ao_info_s
7 /* driver name ("Matrox Millennium G200/G400" */
9 /* short name (for config strings) ("mga") */
10 const char *short_name
;
11 /* author ("Aaron Holtzman <aholtzma@ess.engr.uvic.ca>") */
13 /* any additional comments */
17 /* interface towards mplayer and */
18 typedef struct ao_functions_s
21 int (*control
)(int cmd
,void *arg
);
22 int (*init
)(int rate
,int channels
,int format
,int flags
);
23 void (*uninit
)(int immed
);
25 int (*get_space
)(void);
26 int (*play
)(void* data
,int len
,int flags
);
27 float (*get_delay
)(void);
32 /* global data used by mplayer and plugins */
33 typedef struct ao_data_s
44 extern char *ao_subdevice
;
45 extern ao_data_t ao_data
;
47 void list_audio_out(void);
48 ao_functions_t
* init_best_audio_out(char** ao_list
,int use_plugin
,int rate
,int channels
,int format
,int flags
);
50 // NULL terminated array of all drivers
51 extern ao_functions_t
* audio_out_drivers
[];
54 #define CONTROL_TRUE 1
55 #define CONTROL_FALSE 0
56 #define CONTROL_UNKNOWN -1
57 #define CONTROL_ERROR -2
60 #define AOCONTROL_SET_DEVICE 1
61 #define AOCONTROL_GET_DEVICE 2
62 #define AOCONTROL_QUERY_FORMAT 3 /* test for availabilty of a format */
63 #define AOCONTROL_GET_VOLUME 4
64 #define AOCONTROL_SET_VOLUME 5
65 #define AOCONTROL_SET_PLUGIN_DRIVER 6
66 #define AOCONTROL_SET_PLUGIN_LIST 7
68 #define AOPLAY_FINAL_CHUNK 1
70 typedef struct ao_control_vol_s
{
75 #endif /* AUDIO_OUT_H */