Mercurial > mplayer.hg
annotate libao2/audio_out.h @ 6713:cc917a581b6e
add simple playlist support
author | pontscho |
---|---|
date | Fri, 12 Jul 2002 00:53:26 +0000 |
parents | 16e33d66b813 |
children | 776b686069af |
rev | line source |
---|---|
954 | 1 typedef struct ao_info_s |
2 { | |
3 /* driver name ("Matrox Millennium G200/G400" */ | |
4 const char *name; | |
5 /* short name (for config strings) ("mga") */ | |
6 const char *short_name; | |
7 /* author ("Aaron Holtzman <aholtzma@ess.engr.uvic.ca>") */ | |
8 const char *author; | |
9 /* any additional comments */ | |
10 const char *comment; | |
11 } ao_info_t; | |
12 | |
3095 | 13 /* interface towards mplayer and */ |
1127
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
14 typedef struct ao_functions_s |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
15 { |
954 | 16 ao_info_t *info; |
17 int (*control)(int cmd,int arg); | |
18 int (*init)(int rate,int channels,int format,int flags); | |
19 void (*uninit)(); | |
20 void (*reset)(); | |
1127
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
21 int (*get_space)(); |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
22 int (*play)(void* data,int len,int flags); |
3095 | 23 float (*get_delay)(); |
1127
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
24 void (*pause)(); |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
25 void (*resume)(); |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
26 } ao_functions_t; |
954 | 27 |
3095 | 28 /* global data used by mplayer and plugins */ |
29 typedef struct ao_data_s | |
30 { | |
31 int samplerate; | |
32 int channels; | |
33 int format; | |
34 int bps; | |
35 int outburst; | |
36 int buffersize; | |
37 int pts; | |
38 } ao_data_t; | |
39 | |
40 extern char *ao_subdevice; | |
41 extern ao_data_t ao_data; | |
42 | |
1127
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
43 // prototypes |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
44 extern char *audio_out_format_name(int format); |
6026 | 45 extern int audio_out_format_bits(int format); |
954 | 46 |
47 // NULL terminated array of all drivers | |
48 extern ao_functions_t* audio_out_drivers[]; | |
49 | |
50 | |
51 #define CONTROL_OK 1 | |
52 #define CONTROL_TRUE 1 | |
53 #define CONTROL_FALSE 0 | |
54 #define CONTROL_UNKNOWN -1 | |
55 #define CONTROL_ERROR -2 | |
56 #define CONTROL_NA -3 | |
57 | |
58 #define AOCONTROL_SET_DEVICE 1 | |
1048 | 59 #define AOCONTROL_GET_DEVICE 2 |
1127
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
60 #define AOCONTROL_QUERY_FORMAT 3 /* test for availabilty of a format */ |
1048 | 61 #define AOCONTROL_GET_VOLUME 4 |
62 #define AOCONTROL_SET_VOLUME 5 | |
3107 | 63 #define AOCONTROL_SET_PLUGIN_DRIVER 6 |
64 #define AOCONTROL_SET_PLUGIN_LIST 7 | |
1127
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
65 |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
66 typedef struct ao_control_vol_s { |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
67 float left; |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
68 float right; |
ca1bc9edf735
audio_out_format_name prototype added, ao_control_vol_t for aocontrol_get/set_volume added
al3x
parents:
1048
diff
changeset
|
69 } ao_control_vol_t; |
3107 | 70 |
71 |