Mercurial > mplayer.hg
annotate libao2/audio_out.h @ 1109:a013b2124f05
-Wall like fixes
author | al3x |
---|---|
date | Tue, 12 Jun 2001 14:03:18 +0000 |
parents | 48cf588e2c90 |
children | ca1bc9edf735 |
rev | line source |
---|---|
954 | 1 |
2 typedef struct ao_info_s | |
3 { | |
4 /* driver name ("Matrox Millennium G200/G400" */ | |
5 const char *name; | |
6 /* short name (for config strings) ("mga") */ | |
7 const char *short_name; | |
8 /* author ("Aaron Holtzman <aholtzma@ess.engr.uvic.ca>") */ | |
9 const char *author; | |
10 /* any additional comments */ | |
11 const char *comment; | |
12 } ao_info_t; | |
13 | |
14 typedef struct ao_functions_s { | |
15 | |
16 ao_info_t *info; | |
17 | |
18 /* | |
19 */ | |
20 int (*control)(int cmd,int arg); | |
21 | |
22 /* | |
23 */ | |
24 int (*init)(int rate,int channels,int format,int flags); | |
25 | |
26 /* | |
27 */ | |
28 void (*uninit)(); | |
29 | |
30 /* | |
31 */ | |
32 void (*reset)(); | |
33 | |
34 /* | |
35 */ | |
36 int (*get_space)(); | |
37 | |
38 /* | |
39 */ | |
40 int (*play)(void* data,int len,int flags); | |
41 | |
42 /* | |
43 */ | |
44 int (*get_delay)(); | |
45 | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
954
diff
changeset
|
46 /* |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
954
diff
changeset
|
47 */ |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
954
diff
changeset
|
48 void (*pause)(); |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
954
diff
changeset
|
49 |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
954
diff
changeset
|
50 /* |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
954
diff
changeset
|
51 */ |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
954
diff
changeset
|
52 void (*resume)(); |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
954
diff
changeset
|
53 |
954 | 54 } ao_functions_t; |
55 | |
56 // NULL terminated array of all drivers | |
57 extern ao_functions_t* audio_out_drivers[]; | |
58 | |
59 extern int ao_samplerate; | |
60 extern int ao_channels; | |
61 extern int ao_format; | |
62 extern int ao_bps; | |
63 extern int ao_outburst; | |
64 extern int ao_buffersize; | |
65 | |
66 #define CONTROL_OK 1 | |
67 #define CONTROL_TRUE 1 | |
68 #define CONTROL_FALSE 0 | |
69 #define CONTROL_UNKNOWN -1 | |
70 #define CONTROL_ERROR -2 | |
71 #define CONTROL_NA -3 | |
72 | |
73 #define AOCONTROL_SET_DEVICE 1 | |
1048 | 74 #define AOCONTROL_GET_DEVICE 2 |
75 #define AOCONTROL_QUERY_FORMAT 3 | |
76 #define AOCONTROL_GET_VOLUME 4 | |
77 #define AOCONTROL_SET_VOLUME 5 |