3096
|
1 /* functions supplied by plugins */
|
|
2 typedef struct ao_plugin_functions_s
|
|
3 {
|
|
4 ao_info_t *info;
|
|
5 int (*control)(int cmd,int arg);
|
|
6 int (*init)();
|
|
7 void (*uninit)();
|
|
8 void (*reset)();
|
|
9 int (*play)();
|
|
10 } ao_plugin_functions_t;
|
|
11
|
|
12 /* Global data for all audio plugins */
|
|
13 typedef struct ao_plugin_data_s
|
|
14 {
|
|
15 void* data; /* current data block read only ok to change */
|
|
16 int len; /* setup and current buffer length */
|
|
17 int rate; /* setup data rate */
|
|
18 int channels; /* setup number of channels */
|
|
19 int format; /* setup format */
|
|
20 double sz_mult; /* Buffer size multiplier */
|
3107
|
21 double sz_fix; /* Fix (as in static) extra buffer size */
|
3096
|
22 float delay_mult; /* Delay multiplier */
|
|
23 float delay_fix; /* Fix delay */
|
|
24 }ao_plugin_data_t;
|
|
25
|
|
26 extern ao_plugin_data_t ao_plugin_data;
|
|
27
|
3107
|
28 //List of plugins
|
|
29
|
|
30
|
|
31 #define AOCONTROL_PLUGIN_SET_LEN 1
|