annotate libao2/audio_out.h @ 988:c6f88600d409

Enable to avoid checking version of gcc. New tests of as
author nickols_k
date Mon, 04 Jun 2001 09:38:18 +0000
parents db20b90dd34d
children b36fb1ae4b53
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
954
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
1
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
2 typedef struct ao_info_s
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
3 {
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
4 /* driver name ("Matrox Millennium G200/G400" */
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
5 const char *name;
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
6 /* short name (for config strings) ("mga") */
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
7 const char *short_name;
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
8 /* author ("Aaron Holtzman <aholtzma@ess.engr.uvic.ca>") */
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
9 const char *author;
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
10 /* any additional comments */
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
11 const char *comment;
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
12 } ao_info_t;
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
13
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
14 typedef struct ao_functions_s {
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
15
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
16 ao_info_t *info;
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
17
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
18 /*
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
19 */
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
20 int (*control)(int cmd,int arg);
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
21
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
22 /*
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
23 */
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
24 int (*init)(int rate,int channels,int format,int flags);
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
25
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
26 /*
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
27 */
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
28 void (*uninit)();
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
29
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
30 /*
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
31 */
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
32 void (*reset)();
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
33
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
34 /*
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
35 */
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
36 int (*get_space)();
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
37
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
38 /*
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
39 */
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
40 int (*play)(void* data,int len,int flags);
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
41
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
42 /*
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
43 */
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
44 int (*get_delay)();
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
45
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
46 } ao_functions_t;
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
47
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
48 // NULL terminated array of all drivers
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
49 extern ao_functions_t* audio_out_drivers[];
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
50
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
51 extern int ao_samplerate;
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
52 extern int ao_channels;
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
53 extern int ao_format;
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
54 extern int ao_bps;
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
55 extern int ao_outburst;
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
56 extern int ao_buffersize;
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
57
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
58 #define CONTROL_OK 1
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
59 #define CONTROL_TRUE 1
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
60 #define CONTROL_FALSE 0
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
61 #define CONTROL_UNKNOWN -1
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
62 #define CONTROL_ERROR -2
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
63 #define CONTROL_NA -3
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
64
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
65 #define AOCONTROL_SET_DEVICE 1
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
66 #define AOCONTROL_QUERY_FORMAT 2
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
67
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
68