annotate libao2/audio_plugin.h @ 3110:742615956148

typo noted by JAF
author gabucino
date Sun, 25 Nov 2001 15:48:36 +0000
parents ef2287ccc42b
children 1648d11fc36c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3096
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
1 /* functions supplied by plugins */
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
2 typedef struct ao_plugin_functions_s
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
3 {
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
4 ao_info_t *info;
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
5 int (*control)(int cmd,int arg);
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
6 int (*init)();
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
7 void (*uninit)();
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
8 void (*reset)();
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
9 int (*play)();
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
10 } ao_plugin_functions_t;
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
11
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
12 /* Global data for all audio plugins */
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
13 typedef struct ao_plugin_data_s
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
14 {
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
15 void* data; /* current data block read only ok to change */
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
16 int len; /* setup and current buffer length */
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
17 int rate; /* setup data rate */
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
18 int channels; /* setup number of channels */
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
19 int format; /* setup format */
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
20 double sz_mult; /* Buffer size multiplier */
3107
ef2287ccc42b Changes to audio out plugin, first plugin added
anders
parents: 3096
diff changeset
21 double sz_fix; /* Fix (as in static) extra buffer size */
3096
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
22 float delay_mult; /* Delay multiplier */
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
23 float delay_fix; /* Fix delay */
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
24 }ao_plugin_data_t;
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
25
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
26 extern ao_plugin_data_t ao_plugin_data;
15abd9121737 ao_plugin.c and plugin headers added
anders
parents:
diff changeset
27
3107
ef2287ccc42b Changes to audio out plugin, first plugin added
anders
parents: 3096
diff changeset
28 //List of plugins
ef2287ccc42b Changes to audio out plugin, first plugin added
anders
parents: 3096
diff changeset
29
ef2287ccc42b Changes to audio out plugin, first plugin added
anders
parents: 3096
diff changeset
30
ef2287ccc42b Changes to audio out plugin, first plugin added
anders
parents: 3096
diff changeset
31 #define AOCONTROL_PLUGIN_SET_LEN 1