OSDN Git Service

Added comments for doxygen.
[android-x86/external-alsa-lib.git] / include / seq.h
1 /****************************************************************************
2  *                                                                          *
3  *                                seq.h                                     *
4  *                              Sequencer                                   *
5  *                                                                          *
6  ****************************************************************************/
7
8 /**
9  *  \defgroup Sequencer Sequencer Interface
10  *  Sequencer Interface
11  *  \{
12  */
13
14 typedef sndrv_seq_tick_time_t snd_seq_tick_time_t;
15 typedef sndrv_seq_position_t snd_seq_position_t;
16 typedef sndrv_seq_frequency_t snd_seq_frequency_t;
17 typedef sndrv_seq_instr_cluster_t snd_seq_instr_cluster_t;
18 typedef struct sndrv_seq_port_info snd_seq_port_info_t;
19 typedef struct sndrv_seq_port_subscribe snd_seq_port_subscribe_t;
20 typedef struct sndrv_seq_event snd_seq_event_t;
21 typedef struct sndrv_seq_addr snd_seq_addr_t;
22 typedef struct sndrv_seq_ev_volume snd_seq_ev_volume_t;
23 typedef struct sndrv_seq_ev_loop snd_seq_ev_loop_t;
24 typedef struct sndrv_seq_remove_events snd_seq_remove_events_t;
25 typedef struct sndrv_seq_query_subs snd_seq_query_subs_t;
26 typedef struct sndrv_seq_real_time snd_seq_real_time_t;
27 typedef struct sndrv_seq_system_info snd_seq_system_info_t;
28 typedef struct sndrv_seq_client_info snd_seq_client_info_t;
29 typedef struct sndrv_seq_queue_info snd_seq_queue_info_t;
30 typedef struct sndrv_seq_queue_status snd_seq_queue_status_t;
31 typedef struct sndrv_seq_queue_tempo snd_seq_queue_tempo_t;
32 typedef struct sndrv_seq_queue_owner snd_seq_queue_owner_t;
33 typedef struct sndrv_seq_queue_timer snd_seq_queue_timer_t;
34 typedef struct sndrv_seq_queue_client snd_seq_queue_client_t;
35 typedef struct sndrv_seq_client_pool snd_seq_client_pool_t;
36 typedef struct sndrv_seq_instr snd_seq_instr_t;
37 typedef struct sndrv_seq_instr_data snd_seq_instr_data_t;
38 typedef struct sndrv_seq_instr_free snd_seq_instr_free_t;
39 typedef struct sndrv_seq_instr_put snd_seq_instr_put_t;
40 typedef struct sndrv_seq_instr_get snd_seq_instr_get_t;
41 typedef union sndrv_seq_timestamp snd_seq_timestamp_t;
42
43 typedef enum sndrv_seq_client_type snd_seq_client_type_t;
44 typedef enum sndrv_seq_stop_mode snd_seq_stop_mode_t;
45
46 #define snd_seq_event_bounce_ext_data   sndrv_seq_event_bounce_ext_data 
47 #define snd_seq_ev_is_result_type       sndrv_seq_ev_is_result_type     
48 #define snd_seq_ev_is_channel_type      sndrv_seq_ev_is_channel_type    
49 #define snd_seq_ev_is_note_type         sndrv_seq_ev_is_note_type       
50 #define snd_seq_ev_is_control_type      sndrv_seq_ev_is_control_type    
51 #define snd_seq_ev_is_queue_type        sndrv_seq_ev_is_queue_type      
52 #define snd_seq_ev_is_message_type      sndrv_seq_ev_is_message_type    
53 #define snd_seq_ev_is_sample_type       sndrv_seq_ev_is_sample_type     
54 #define snd_seq_ev_is_user_type         sndrv_seq_ev_is_user_type       
55 #define snd_seq_ev_is_fixed_type        sndrv_seq_ev_is_fixed_type      
56 #define snd_seq_ev_is_instr_type        sndrv_seq_ev_is_instr_type      
57 #define snd_seq_ev_is_variable_type     sndrv_seq_ev_is_variable_type   
58 #define snd_seq_ev_is_varipc_type       sndrv_seq_ev_is_varipc_type     
59 #define snd_seq_ev_is_reserved          sndrv_seq_ev_is_reserved        
60 #define snd_seq_ev_is_direct            sndrv_seq_ev_is_direct          
61 #define snd_seq_ev_is_prior             sndrv_seq_ev_is_prior           
62 #define snd_seq_ev_length_type          sndrv_seq_ev_length_type        
63 #define snd_seq_ev_is_fixed             sndrv_seq_ev_is_fixed           
64 #define snd_seq_ev_is_variable          sndrv_seq_ev_is_variable        
65 #define snd_seq_ev_is_varusr            sndrv_seq_ev_is_varusr          
66 #define snd_seq_ev_is_varipc            sndrv_seq_ev_is_varipc          
67 #define snd_seq_ev_timestamp_type       sndrv_seq_ev_timestamp_type     
68 #define snd_seq_ev_is_tick              sndrv_seq_ev_is_tick            
69 #define snd_seq_ev_is_real              sndrv_seq_ev_is_real            
70 #define snd_seq_ev_timemode_type        sndrv_seq_ev_timemode_type      
71 #define snd_seq_ev_is_abstime           sndrv_seq_ev_is_abstime         
72 #define snd_seq_ev_is_reltime           sndrv_seq_ev_is_reltime         
73 #define snd_seq_queue_sync_port         sndrv_seq_queue_sync_port       
74 #define snd_seq_queue_owner             sndrv_seq_queue_owner           
75
76 #ifdef SNDRV_SEQ_SYNC_SUPPORT
77 #define SND_SEQ_SYNC_SUPPORT SNDRV_SEQ_SYNC_SUPPORT
78 #endif
79
80 #define SND_SEQ_EVENT_SYSTEM SNDRV_SEQ_EVENT_SYSTEM
81 #define SND_SEQ_EVENT_RESULT SNDRV_SEQ_EVENT_RESULT
82 #define SND_SEQ_EVENT_NOTE SNDRV_SEQ_EVENT_NOTE
83 #define SND_SEQ_EVENT_NOTEON SNDRV_SEQ_EVENT_NOTEON
84 #define SND_SEQ_EVENT_NOTEOFF SNDRV_SEQ_EVENT_NOTEOFF
85 #define SND_SEQ_EVENT_KEYPRESS SNDRV_SEQ_EVENT_KEYPRESS
86 #define SND_SEQ_EVENT_CONTROLLER SNDRV_SEQ_EVENT_CONTROLLER
87 #define SND_SEQ_EVENT_PGMCHANGE SNDRV_SEQ_EVENT_PGMCHANGE
88 #define SND_SEQ_EVENT_CHANPRESS SNDRV_SEQ_EVENT_CHANPRESS
89 #define SND_SEQ_EVENT_PITCHBEND SNDRV_SEQ_EVENT_PITCHBEND
90 #define SND_SEQ_EVENT_CONTROL14 SNDRV_SEQ_EVENT_CONTROL14
91 #define SND_SEQ_EVENT_NONREGPARAM SNDRV_SEQ_EVENT_NONREGPARAM
92 #define SND_SEQ_EVENT_REGPARAM SNDRV_SEQ_EVENT_REGPARAM
93 #define SND_SEQ_EVENT_SONGPOS SNDRV_SEQ_EVENT_SONGPOS
94 #define SND_SEQ_EVENT_SONGSEL SNDRV_SEQ_EVENT_SONGSEL
95 #define SND_SEQ_EVENT_QFRAME SNDRV_SEQ_EVENT_QFRAME
96 #define SND_SEQ_EVENT_TIMESIGN SNDRV_SEQ_EVENT_TIMESIGN
97 #define SND_SEQ_EVENT_KEYSIGN SNDRV_SEQ_EVENT_KEYSIGN
98 #define SND_SEQ_EVENT_START SNDRV_SEQ_EVENT_START
99 #define SND_SEQ_EVENT_CONTINUE SNDRV_SEQ_EVENT_CONTINUE
100 #define SND_SEQ_EVENT_STOP SNDRV_SEQ_EVENT_STOP
101 #define SND_SEQ_EVENT_SETPOS_TICK SNDRV_SEQ_EVENT_SETPOS_TICK
102 #define SND_SEQ_EVENT_SETPOS_TIME SNDRV_SEQ_EVENT_SETPOS_TIME
103 #define SND_SEQ_EVENT_TEMPO SNDRV_SEQ_EVENT_TEMPO
104 #define SND_SEQ_EVENT_CLOCK SNDRV_SEQ_EVENT_CLOCK
105 #define SND_SEQ_EVENT_TICK SNDRV_SEQ_EVENT_TICK
106 #define SND_SEQ_EVENT_SYNC SNDRV_SEQ_EVENT_SYNC
107 #define SND_SEQ_EVENT_SYNC_POS SNDRV_SEQ_EVENT_SYNC_POS
108 #define SND_SEQ_EVENT_TUNE_REQUEST SNDRV_SEQ_EVENT_TUNE_REQUEST
109 #define SND_SEQ_EVENT_RESET SNDRV_SEQ_EVENT_RESET
110 #define SND_SEQ_EVENT_SENSING SNDRV_SEQ_EVENT_SENSING
111 #define SND_SEQ_EVENT_ECHO SNDRV_SEQ_EVENT_ECHO
112 #define SND_SEQ_EVENT_OSS SNDRV_SEQ_EVENT_OSS
113 #define SND_SEQ_EVENT_CLIENT_START SNDRV_SEQ_EVENT_CLIENT_START
114 #define SND_SEQ_EVENT_CLIENT_EXIT SNDRV_SEQ_EVENT_CLIENT_EXIT
115 #define SND_SEQ_EVENT_CLIENT_CHANGE SNDRV_SEQ_EVENT_CLIENT_CHANGE
116 #define SND_SEQ_EVENT_PORT_START SNDRV_SEQ_EVENT_PORT_START
117 #define SND_SEQ_EVENT_PORT_EXIT SNDRV_SEQ_EVENT_PORT_EXIT
118 #define SND_SEQ_EVENT_PORT_CHANGE SNDRV_SEQ_EVENT_PORT_CHANGE
119 #define SND_SEQ_EVENT_PORT_SUBSCRIBED SNDRV_SEQ_EVENT_PORT_SUBSCRIBED
120 #define SND_SEQ_EVENT_PORT_USED SNDRV_SEQ_EVENT_PORT_USED
121 #define SND_SEQ_EVENT_PORT_UNSUBSCRIBED SNDRV_SEQ_EVENT_PORT_UNSUBSCRIBED
122 #define SND_SEQ_EVENT_PORT_UNUSED SNDRV_SEQ_EVENT_PORT_UNUSED
123 #define SND_SEQ_EVENT_SAMPLE SNDRV_SEQ_EVENT_SAMPLE
124 #define SND_SEQ_EVENT_SAMPLE_CLUSTER SNDRV_SEQ_EVENT_SAMPLE_CLUSTER
125 #define SND_SEQ_EVENT_SAMPLE_START SNDRV_SEQ_EVENT_SAMPLE_START
126 #define SND_SEQ_EVENT_SAMPLE_STOP SNDRV_SEQ_EVENT_SAMPLE_STOP
127 #define SND_SEQ_EVENT_SAMPLE_FREQ SNDRV_SEQ_EVENT_SAMPLE_FREQ
128 #define SND_SEQ_EVENT_SAMPLE_VOLUME SNDRV_SEQ_EVENT_SAMPLE_VOLUME
129 #define SND_SEQ_EVENT_SAMPLE_LOOP SNDRV_SEQ_EVENT_SAMPLE_LOOP
130 #define SND_SEQ_EVENT_SAMPLE_POSITION SNDRV_SEQ_EVENT_SAMPLE_POSITION
131 #define SND_SEQ_EVENT_SAMPLE_PRIVATE1 SNDRV_SEQ_EVENT_SAMPLE_PRIVATE1
132 #define SND_SEQ_EVENT_USR0 SNDRV_SEQ_EVENT_USR0
133 #define SND_SEQ_EVENT_USR1 SNDRV_SEQ_EVENT_USR1
134 #define SND_SEQ_EVENT_USR2 SNDRV_SEQ_EVENT_USR2
135 #define SND_SEQ_EVENT_USR3 SNDRV_SEQ_EVENT_USR3
136 #define SND_SEQ_EVENT_USR4 SNDRV_SEQ_EVENT_USR4
137 #define SND_SEQ_EVENT_USR5 SNDRV_SEQ_EVENT_USR5
138 #define SND_SEQ_EVENT_USR6 SNDRV_SEQ_EVENT_USR6
139 #define SND_SEQ_EVENT_USR7 SNDRV_SEQ_EVENT_USR7
140 #define SND_SEQ_EVENT_USR8 SNDRV_SEQ_EVENT_USR8
141 #define SND_SEQ_EVENT_USR9 SNDRV_SEQ_EVENT_USR9
142 #define SND_SEQ_EVENT_INSTR_BEGIN SNDRV_SEQ_EVENT_INSTR_BEGIN
143 #define SND_SEQ_EVENT_INSTR_END SNDRV_SEQ_EVENT_INSTR_END
144 #define SND_SEQ_EVENT_INSTR_INFO SNDRV_SEQ_EVENT_INSTR_INFO
145 #define SND_SEQ_EVENT_INSTR_INFO_RESULT SNDRV_SEQ_EVENT_INSTR_INFO_RESULT
146 #define SND_SEQ_EVENT_INSTR_FINFO SNDRV_SEQ_EVENT_INSTR_FINFO
147 #define SND_SEQ_EVENT_INSTR_FINFO_RESULT SNDRV_SEQ_EVENT_INSTR_FINFO_RESULT
148 #define SND_SEQ_EVENT_INSTR_RESET SNDRV_SEQ_EVENT_INSTR_RESET
149 #define SND_SEQ_EVENT_INSTR_STATUS SNDRV_SEQ_EVENT_INSTR_STATUS
150 #define SND_SEQ_EVENT_INSTR_STATUS_RESULT SNDRV_SEQ_EVENT_INSTR_STATUS_RESULT
151 #define SND_SEQ_EVENT_INSTR_PUT SNDRV_SEQ_EVENT_INSTR_PUT
152 #define SND_SEQ_EVENT_INSTR_GET SNDRV_SEQ_EVENT_INSTR_GET
153 #define SND_SEQ_EVENT_INSTR_GET_RESULT SNDRV_SEQ_EVENT_INSTR_GET_RESULT
154 #define SND_SEQ_EVENT_INSTR_FREE SNDRV_SEQ_EVENT_INSTR_FREE
155 #define SND_SEQ_EVENT_INSTR_LIST SNDRV_SEQ_EVENT_INSTR_LIST
156 #define SND_SEQ_EVENT_INSTR_LIST_RESULT SNDRV_SEQ_EVENT_INSTR_LIST_RESULT
157 #define SND_SEQ_EVENT_INSTR_CLUSTER SNDRV_SEQ_EVENT_INSTR_CLUSTER
158 #define SND_SEQ_EVENT_INSTR_CLUSTER_GET SNDRV_SEQ_EVENT_INSTR_CLUSTER_GET
159 #define SND_SEQ_EVENT_INSTR_CLUSTER_RESULT SNDRV_SEQ_EVENT_INSTR_CLUSTER_RESULT
160 #define SND_SEQ_EVENT_INSTR_CHANGE SNDRV_SEQ_EVENT_INSTR_CHANGE
161 #define SND_SEQ_EVENT_LENGTH_VARIABLE SNDRV_SEQ_EVENT_LENGTH_VARIABLE
162 #define SND_SEQ_EVENT_SYSEX SNDRV_SEQ_EVENT_SYSEX
163 #define SND_SEQ_EVENT_BOUNCE SNDRV_SEQ_EVENT_BOUNCE
164 #define SND_SEQ_EVENT_USR_VAR0 SNDRV_SEQ_EVENT_USR_VAR0
165 #define SND_SEQ_EVENT_USR_VAR1 SNDRV_SEQ_EVENT_USR_VAR1
166 #define SND_SEQ_EVENT_USR_VAR2 SNDRV_SEQ_EVENT_USR_VAR2
167 #define SND_SEQ_EVENT_USR_VAR3 SNDRV_SEQ_EVENT_USR_VAR3
168 #define SND_SEQ_EVENT_USR_VAR4 SNDRV_SEQ_EVENT_USR_VAR4
169 #define SND_SEQ_EVENT_LENGTH_VARIPC SNDRV_SEQ_EVENT_LENGTH_VARIPC
170 #define SND_SEQ_EVENT_IPCSHM SNDRV_SEQ_EVENT_IPCSHM
171 #define SND_SEQ_EVENT_USR_VARIPC0 SNDRV_SEQ_EVENT_USR_VARIPC0
172 #define SND_SEQ_EVENT_USR_VARIPC1 SNDRV_SEQ_EVENT_USR_VARIPC1
173 #define SND_SEQ_EVENT_USR_VARIPC2 SNDRV_SEQ_EVENT_USR_VARIPC2
174 #define SND_SEQ_EVENT_USR_VARIPC3 SNDRV_SEQ_EVENT_USR_VARIPC3
175 #define SND_SEQ_EVENT_USR_VARIPC4 SNDRV_SEQ_EVENT_USR_VARIPC4
176 #define SND_SEQ_EVENT_KERNEL_ERROR SNDRV_SEQ_EVENT_KERNEL_ERROR
177 #define SND_SEQ_EVENT_KERNEL_QUOTE SNDRV_SEQ_EVENT_KERNEL_QUOTE
178 #define SND_SEQ_EVENT_NONE SNDRV_SEQ_EVENT_NONE
179 #define SND_SEQ_ADDRESS_UNKNOWN SNDRV_SEQ_ADDRESS_UNKNOWN
180 #define SND_SEQ_ADDRESS_SUBSCRIBERS SNDRV_SEQ_ADDRESS_SUBSCRIBERS
181 #define SND_SEQ_ADDRESS_BROADCAST SNDRV_SEQ_ADDRESS_BROADCAST
182 #define SND_SEQ_QUEUE_DIRECT SNDRV_SEQ_QUEUE_DIRECT
183 #define SND_SEQ_TIME_STAMP_TICK SNDRV_SEQ_TIME_STAMP_TICK
184 #define SND_SEQ_TIME_STAMP_REAL SNDRV_SEQ_TIME_STAMP_REAL
185 #define SND_SEQ_TIME_STAMP_MASK SNDRV_SEQ_TIME_STAMP_MASK
186 #define SND_SEQ_TIME_MODE_ABS SNDRV_SEQ_TIME_MODE_ABS
187 #define SND_SEQ_TIME_MODE_REL SNDRV_SEQ_TIME_MODE_REL
188 #define SND_SEQ_TIME_MODE_MASK SNDRV_SEQ_TIME_MODE_MASK
189 #define SND_SEQ_EVENT_LENGTH_FIXED SNDRV_SEQ_EVENT_LENGTH_FIXED
190 #define SND_SEQ_EVENT_LENGTH_VARIABLE SNDRV_SEQ_EVENT_LENGTH_VARIABLE
191 #define SND_SEQ_EVENT_LENGTH_VARUSR SNDRV_SEQ_EVENT_LENGTH_VARUSR
192 #define SND_SEQ_EVENT_LENGTH_VARIPC SNDRV_SEQ_EVENT_LENGTH_VARIPC
193 #define SND_SEQ_EVENT_LENGTH_MASK SNDRV_SEQ_EVENT_LENGTH_MASK
194 #define SND_SEQ_PRIORITY_NORMAL SNDRV_SEQ_PRIORITY_NORMAL
195 #define SND_SEQ_PRIORITY_HIGH SNDRV_SEQ_PRIORITY_HIGH
196 #define SND_SEQ_PRIORITY_MASK SNDRV_SEQ_PRIORITY_MASK
197 #define SND_SEQ_EVENT_NOTE SNDRV_SEQ_EVENT_NOTE
198 #define SND_SEQ_EVENT_NOTE SNDRV_SEQ_EVENT_NOTE
199 #define SND_SEQ_QUEUE_DIRECT SNDRV_SEQ_QUEUE_DIRECT
200 #define SND_SEQ_PRIORITY_MASK SNDRV_SEQ_PRIORITY_MASK
201 #define SND_SEQ_EVENT_LENGTH_MASK SNDRV_SEQ_EVENT_LENGTH_MASK
202 #define SND_SEQ_EVENT_LENGTH_FIXED SNDRV_SEQ_EVENT_LENGTH_FIXED
203 #define SND_SEQ_EVENT_LENGTH_VARIABLE SNDRV_SEQ_EVENT_LENGTH_VARIABLE
204 #define SND_SEQ_EVENT_LENGTH_VARUSR SNDRV_SEQ_EVENT_LENGTH_VARUSR
205 #define SND_SEQ_EVENT_LENGTH_VARIPC SNDRV_SEQ_EVENT_LENGTH_VARIPC
206 #define SND_SEQ_TIME_STAMP_MASK SNDRV_SEQ_TIME_STAMP_MASK
207 #define SND_SEQ_TIME_STAMP_TICK SNDRV_SEQ_TIME_STAMP_TICK
208 #define SND_SEQ_TIME_STAMP_REAL SNDRV_SEQ_TIME_STAMP_REAL
209 #define SND_SEQ_TIME_MODE_MASK SNDRV_SEQ_TIME_MODE_MASK
210 #define SND_SEQ_TIME_MODE_ABS SNDRV_SEQ_TIME_MODE_ABS
211 #define SND_SEQ_TIME_MODE_REL SNDRV_SEQ_TIME_MODE_REL
212 #define SND_SEQ_CLIENT_SYSTEM SNDRV_SEQ_CLIENT_SYSTEM
213 #define SND_SEQ_CLIENT_DUMMY SNDRV_SEQ_CLIENT_DUMMY
214 #define SND_SEQ_CLIENT_OSS SNDRV_SEQ_CLIENT_OSS
215 #define SND_SEQ_FILTER_BROADCAST SNDRV_SEQ_FILTER_BROADCAST
216 #define SND_SEQ_FILTER_MULTICAST SNDRV_SEQ_FILTER_MULTICAST
217 #define SND_SEQ_FILTER_BOUNCE SNDRV_SEQ_FILTER_BOUNCE
218 #define SND_SEQ_FILTER_USE_EVENT SNDRV_SEQ_FILTER_USE_EVENT
219 #define SND_SEQ_REMOVE_DEST SNDRV_SEQ_REMOVE_DEST
220 #define SND_SEQ_REMOVE_DEST_CHANNEL SNDRV_SEQ_REMOVE_DEST_CHANNEL
221 #define SND_SEQ_REMOVE_TIME_BEFORE SNDRV_SEQ_REMOVE_TIME_BEFORE
222 #define SND_SEQ_REMOVE_TIME_AFTER SNDRV_SEQ_REMOVE_TIME_AFTER
223 #define SND_SEQ_REMOVE_EVENT_TYPE SNDRV_SEQ_REMOVE_EVENT_TYPE
224 #define SND_SEQ_REMOVE_IGNORE_OFF SNDRV_SEQ_REMOVE_IGNORE_OFF
225 #define SND_SEQ_REMOVE_TAG_MATCH SNDRV_SEQ_REMOVE_TAG_MATCH
226 #define SND_SEQ_PORT_SYSTEM_TIMER SNDRV_SEQ_PORT_SYSTEM_TIMER
227 #define SND_SEQ_PORT_SYSTEM_ANNOUNCE SNDRV_SEQ_PORT_SYSTEM_ANNOUNCE
228 #define SND_SEQ_PORT_CAP_READ SNDRV_SEQ_PORT_CAP_READ
229 #define SND_SEQ_PORT_CAP_WRITE SNDRV_SEQ_PORT_CAP_WRITE
230 #define SND_SEQ_PORT_CAP_SYNC_READ SNDRV_SEQ_PORT_CAP_SYNC_READ
231 #define SND_SEQ_PORT_CAP_SYNC_WRITE SNDRV_SEQ_PORT_CAP_SYNC_WRITE
232 #define SND_SEQ_PORT_CAP_DUPLEX SNDRV_SEQ_PORT_CAP_DUPLEX
233 #define SND_SEQ_PORT_CAP_SUBS_READ SNDRV_SEQ_PORT_CAP_SUBS_READ
234 #define SND_SEQ_PORT_CAP_SUBS_WRITE SNDRV_SEQ_PORT_CAP_SUBS_WRITE
235 #define SND_SEQ_PORT_CAP_NO_EXPORT SNDRV_SEQ_PORT_CAP_NO_EXPORT
236 #define SND_SEQ_PORT_TYPE_SPECIFIC SNDRV_SEQ_PORT_TYPE_SPECIFIC
237 #define SND_SEQ_PORT_TYPE_MIDI_GENERIC SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC
238 #define SND_SEQ_PORT_TYPE_MIDI_GM SNDRV_SEQ_PORT_TYPE_MIDI_GM
239 #define SND_SEQ_PORT_TYPE_MIDI_GS SNDRV_SEQ_PORT_TYPE_MIDI_GS
240 #define SND_SEQ_PORT_TYPE_MIDI_XG SNDRV_SEQ_PORT_TYPE_MIDI_XG
241 #define SND_SEQ_PORT_TYPE_MIDI_MT32 SNDRV_SEQ_PORT_TYPE_MIDI_MT32
242 #define SND_SEQ_PORT_TYPE_SYNTH SNDRV_SEQ_PORT_TYPE_SYNTH
243 #define SND_SEQ_PORT_TYPE_DIRECT_SAMPLE SNDRV_SEQ_PORT_TYPE_DIRECT_SAMPLE
244 #define SND_SEQ_PORT_TYPE_SAMPLE SNDRV_SEQ_PORT_TYPE_SAMPLE
245 #define SND_SEQ_PORT_TYPE_APPLICATION SNDRV_SEQ_PORT_TYPE_APPLICATION
246 #define SND_SEQ_GROUP_SYSTEM SNDRV_SEQ_GROUP_SYSTEM
247 #define SND_SEQ_GROUP_DEVICE SNDRV_SEQ_GROUP_DEVICE
248 #define SND_SEQ_GROUP_APPLICATION SNDRV_SEQ_GROUP_APPLICATION
249 #define SND_SEQ_PORT_FLG_GIVEN_PORT SNDRV_SEQ_PORT_FLG_GIVEN_PORT
250 #define SND_SEQ_QUEUE_FLG_SYNC SNDRV_SEQ_QUEUE_FLG_SYNC
251 #define SND_SEQ_QUEUE_FLG_SYNC_LOST SNDRV_SEQ_QUEUE_FLG_SYNC_LOST
252 #define SND_SEQ_SYNC_TICK SNDRV_SEQ_SYNC_TICK
253 #define SND_SEQ_SYNC_TIME SNDRV_SEQ_SYNC_TIME
254 #define SND_SEQ_SYNC_MODE SNDRV_SEQ_SYNC_MODE
255 #define SND_SEQ_SYNC_FMT_PRIVATE_CLOCK SNDRV_SEQ_SYNC_FMT_PRIVATE_CLOCK
256 #define SND_SEQ_SYNC_FMT_PRIVATE_TIME SNDRV_SEQ_SYNC_FMT_PRIVATE_TIME
257 #define SND_SEQ_SYNC_FMT_MIDI_CLOCK SNDRV_SEQ_SYNC_FMT_MIDI_CLOCK
258 #define SND_SEQ_SYNC_FMT_MTC SNDRV_SEQ_SYNC_FMT_MTC
259 #define SND_SEQ_SYNC_FMT_DTL SNDRV_SEQ_SYNC_FMT_DTL
260 #define SND_SEQ_SYNC_FMT_SMPTE SNDRV_SEQ_SYNC_FMT_SMPTE
261 #define SND_SEQ_SYNC_FMT_MIDI_TICK SNDRV_SEQ_SYNC_FMT_MIDI_TICK
262 #define SND_SEQ_SYNC_FPS_24 SNDRV_SEQ_SYNC_FPS_24
263 #define SND_SEQ_SYNC_FPS_25 SNDRV_SEQ_SYNC_FPS_25
264 #define SND_SEQ_SYNC_FPS_30_DP SNDRV_SEQ_SYNC_FPS_30_DP
265 #define SND_SEQ_SYNC_FPS_30_NDP SNDRV_SEQ_SYNC_FPS_30_NDP
266 #define SND_SEQ_TIMER_ALSA SNDRV_SEQ_TIMER_ALSA
267 #define SND_SEQ_TIMER_MIDI_CLOCK SNDRV_SEQ_TIMER_MIDI_CLOCK
268 #define SND_SEQ_TIMER_MIDI_TICK SNDRV_SEQ_TIMER_MIDI_TICK
269 #define SND_SEQ_QUERY_SUBS_READ SNDRV_SEQ_QUERY_SUBS_READ
270 #define SND_SEQ_QUERY_SUBS_WRITE SNDRV_SEQ_QUERY_SUBS_WRITE
271 #define SND_SEQ_INSTR_ATYPE_DATA SNDRV_SEQ_INSTR_ATYPE_DATA
272 #define SND_SEQ_INSTR_ATYPE_ALIAS SNDRV_SEQ_INSTR_ATYPE_ALIAS
273 #define SND_SEQ_INSTR_ID_DLS1 SNDRV_SEQ_INSTR_ID_DLS1
274 #define SND_SEQ_INSTR_ID_DLS2 SNDRV_SEQ_INSTR_ID_DLS2
275 #define SND_SEQ_INSTR_ID_SIMPLE SNDRV_SEQ_INSTR_ID_SIMPLE
276 #define SND_SEQ_INSTR_ID_SOUNDFONT SNDRV_SEQ_INSTR_ID_SOUNDFONT
277 #define SND_SEQ_INSTR_ID_GUS_PATCH SNDRV_SEQ_INSTR_ID_GUS_PATCH
278 #define SND_SEQ_INSTR_ID_INTERWAVE SNDRV_SEQ_INSTR_ID_INTERWAVE
279 #define SND_SEQ_INSTR_ID_OPL2_3 SNDRV_SEQ_INSTR_ID_OPL2_3
280 #define SND_SEQ_INSTR_ID_OPL4 SNDRV_SEQ_INSTR_ID_OPL4
281 #define SND_SEQ_INSTR_TYPE0_DLS1 SNDRV_SEQ_INSTR_TYPE0_DLS1
282 #define SND_SEQ_INSTR_TYPE0_DLS2 SNDRV_SEQ_INSTR_TYPE0_DLS2
283 #define SND_SEQ_INSTR_TYPE1_SIMPLE SNDRV_SEQ_INSTR_TYPE1_SIMPLE
284 #define SND_SEQ_INSTR_TYPE1_SOUNDFONT SNDRV_SEQ_INSTR_TYPE1_SOUNDFONT
285 #define SND_SEQ_INSTR_TYPE1_GUS_PATCH SNDRV_SEQ_INSTR_TYPE1_GUS_PATCH
286 #define SND_SEQ_INSTR_TYPE1_INTERWAVE SNDRV_SEQ_INSTR_TYPE1_INTERWAVE
287 #define SND_SEQ_INSTR_TYPE2_OPL2_3 SNDRV_SEQ_INSTR_TYPE2_OPL2_3
288 #define SND_SEQ_INSTR_TYPE2_OPL4 SNDRV_SEQ_INSTR_TYPE2_OPL4
289 #define SND_SEQ_INSTR_PUT_CMD_CREATE SNDRV_SEQ_INSTR_PUT_CMD_CREATE
290 #define SND_SEQ_INSTR_PUT_CMD_REPLACE SNDRV_SEQ_INSTR_PUT_CMD_REPLACE
291 #define SND_SEQ_INSTR_PUT_CMD_MODIFY SNDRV_SEQ_INSTR_PUT_CMD_MODIFY
292 #define SND_SEQ_INSTR_PUT_CMD_ADD SNDRV_SEQ_INSTR_PUT_CMD_ADD
293 #define SND_SEQ_INSTR_PUT_CMD_REMOVE SNDRV_SEQ_INSTR_PUT_CMD_REMOVE
294 #define SND_SEQ_INSTR_GET_CMD_FULL SNDRV_SEQ_INSTR_GET_CMD_FULL
295 #define SND_SEQ_INSTR_GET_CMD_PARTIAL SNDRV_SEQ_INSTR_GET_CMD_PARTIAL
296 #define SND_SEQ_INSTR_QUERY_FOLLOW_ALIAS SNDRV_SEQ_INSTR_QUERY_FOLLOW_ALIAS
297 #define SND_SEQ_INSTR_FREE_CMD_ALL SNDRV_SEQ_INSTR_FREE_CMD_ALL
298 #define SND_SEQ_INSTR_FREE_CMD_PRIVATE SNDRV_SEQ_INSTR_FREE_CMD_PRIVATE
299 #define SND_SEQ_INSTR_FREE_CMD_CLUSTER SNDRV_SEQ_INSTR_FREE_CMD_CLUSTER
300 #define SND_SEQ_INSTR_FREE_CMD_SINGLE SNDRV_SEQ_INSTR_FREE_CMD_SINGLE
301
302
303 #define SND_SEQ_OPEN_OUTPUT     1
304 #define SND_SEQ_OPEN_INPUT      2
305 #define SND_SEQ_OPEN_DUPLEX     (SND_SEQ_OPEN_OUTPUT|SND_SEQ_OPEN_INPUT)
306
307 #define SND_SEQ_NONBLOCK        1
308
309 typedef enum _snd_seq_type {
310         SND_SEQ_TYPE_HW,
311         SND_SEQ_TYPE_SHM,
312         SND_SEQ_TYPE_INET,
313 } snd_seq_type_t;
314
315 /* Sequencer handle */
316 typedef struct _snd_seq snd_seq_t;
317
318 #ifdef __cplusplus
319 extern "C" {
320 #endif
321
322 int snd_seq_open(snd_seq_t **handle, const char *name, int streams, int mode);
323 int snd_seq_close(snd_seq_t *handle);
324 int snd_seq_poll_descriptors_count(snd_seq_t *handle, short events);
325 int snd_seq_poll_descriptors(snd_seq_t *handle, struct pollfd *pfds, unsigned int space, short events);
326 int snd_seq_nonblock(snd_seq_t *handle, int nonblock);
327 int snd_seq_client_id(snd_seq_t *handle);
328 int snd_seq_output_buffer_size(snd_seq_t *handle);
329 int snd_seq_input_buffer_size(snd_seq_t *handle);
330 int snd_seq_resize_output_buffer(snd_seq_t *handle, size_t size);
331 int snd_seq_resize_input_buffer(snd_seq_t *handle, size_t size);
332 int snd_seq_system_info(snd_seq_t *handle, snd_seq_system_info_t *info);
333 int snd_seq_get_client_info(snd_seq_t *handle, snd_seq_client_info_t *info);
334 int snd_seq_get_any_client_info(snd_seq_t *handle, int client, snd_seq_client_info_t *info);
335 int snd_seq_set_client_info(snd_seq_t *handle, snd_seq_client_info_t *info);
336 int snd_seq_create_port(snd_seq_t *handle, snd_seq_port_info_t *info);
337 int snd_seq_delete_port(snd_seq_t *handle, snd_seq_port_info_t *info);
338 int snd_seq_get_port_info(snd_seq_t *handle, int port, snd_seq_port_info_t *info);
339 int snd_seq_get_any_port_info(snd_seq_t *handle, int client, int port, snd_seq_port_info_t *info);
340 int snd_seq_set_port_info(snd_seq_t *handle, int port, snd_seq_port_info_t *info);
341 int snd_seq_get_port_subscription(snd_seq_t *handle, snd_seq_port_subscribe_t *sub);
342 int snd_seq_subscribe_port(snd_seq_t *handle, snd_seq_port_subscribe_t *sub);
343 int snd_seq_unsubscribe_port(snd_seq_t *handle, snd_seq_port_subscribe_t *sub);
344 int snd_seq_query_port_subscribers(snd_seq_t *seq, snd_seq_query_subs_t * subs);
345 int snd_seq_get_queue_status(snd_seq_t *handle, int q, snd_seq_queue_status_t *status);
346 int snd_seq_get_queue_tempo(snd_seq_t *handle, int q, snd_seq_queue_tempo_t *tempo);
347 int snd_seq_set_queue_tempo(snd_seq_t *handle, int q, snd_seq_queue_tempo_t *tempo);
348 int snd_seq_get_queue_owner(snd_seq_t *handle, int q, snd_seq_queue_owner_t *owner);
349 int snd_seq_set_queue_owner(snd_seq_t *handle, int q, snd_seq_queue_owner_t *owner);
350 int snd_seq_get_queue_timer(snd_seq_t *handle, int q, snd_seq_queue_timer_t *timer);
351 int snd_seq_set_queue_timer(snd_seq_t *handle, int q, snd_seq_queue_timer_t *timer);
352 int snd_seq_get_queue_client(snd_seq_t *handle, int q, snd_seq_queue_client_t *queue);
353 int snd_seq_set_queue_client(snd_seq_t *handle, int q, snd_seq_queue_client_t *queue);
354 int snd_seq_create_queue(snd_seq_t *seq, snd_seq_queue_info_t *info);
355 int snd_seq_alloc_named_queue(snd_seq_t *seq, const char *name);
356 int snd_seq_alloc_queue(snd_seq_t *handle);
357 #ifdef SND_SEQ_SYNC_SUPPORT
358 int snd_seq_alloc_sync_queue(snd_seq_t *seq, const char *name);
359 #endif
360 int snd_seq_free_queue(snd_seq_t *handle, int q);
361 int snd_seq_get_queue_info(snd_seq_t *seq, int q, snd_seq_queue_info_t *info);
362 int snd_seq_set_queue_info(snd_seq_t *seq, int q, snd_seq_queue_info_t *info);
363 int snd_seq_get_named_queue(snd_seq_t *seq, const char *name);
364 int snd_seq_get_client_pool(snd_seq_t *handle, snd_seq_client_pool_t * info);
365 int snd_seq_set_client_pool(snd_seq_t *handle, snd_seq_client_pool_t * info);
366 int snd_seq_query_next_client(snd_seq_t *handle, snd_seq_client_info_t * info);
367 int snd_seq_query_next_port(snd_seq_t *handle, snd_seq_port_info_t * info);
368 #ifdef SND_SEQ_SYNC_SUPPORT
369 typedef struct sndrv_seq_queue_sync snd_seq_queue_sync_t;    
370 int snd_seq_add_sync_master(snd_seq_t *seq, int queue, snd_seq_addr_t *dest, snd_seq_queue_sync_t *info);
371 int snd_seq_remove_sync_master(snd_seq_t *seq, int queue, snd_seq_addr_t *dest);
372 int snd_seq_add_sync_std_master(snd_seq_t *seq, int queue, snd_seq_addr_t *dest, int format, int time_format, unsigned char *opt_info);
373 #define snd_seq_add_sync_master_clock(seq,q,dest) snd_seq_add_sync_std_master(seq, q, dest, SND_SEQ_SYNC_FMT_MIDI_CLOCK, 0, 0)
374 #define snd_seq_add_sync_master_mtc(seq,q,dest,tfmt) snd_seq_add_sync_std_master(seq, q, dest, SND_SEQ_SYNC_FMT_MTC, tfmt, 0)
375
376 int snd_seq_set_sync_slave(snd_seq_t *seq, int queue, snd_seq_addr_t *src, snd_seq_queue_sync_t *info);
377 int snd_seq_reset_sync_slave(snd_seq_t *seq, int queue, snd_seq_addr_t *src);
378 #endif
379
380 const char *snd_seq_name(snd_seq_t *seq);
381 snd_seq_type_t snd_seq_type(snd_seq_t *seq);
382
383 /* event routines */
384 snd_seq_event_t *snd_seq_create_event(void);
385 int snd_seq_free_event(snd_seq_event_t *ev);
386 ssize_t snd_seq_event_length(snd_seq_event_t *ev);
387 int snd_seq_event_output(snd_seq_t *handle, snd_seq_event_t *ev);
388 int snd_seq_event_output_buffer(snd_seq_t *handle, snd_seq_event_t *ev);
389 int snd_seq_event_output_direct(snd_seq_t *handle, snd_seq_event_t *ev);
390 int snd_seq_event_input(snd_seq_t *handle, snd_seq_event_t **ev);
391 int snd_seq_event_input_pending(snd_seq_t *seq, int fetch_sequencer);
392 int snd_seq_drain_output(snd_seq_t *handle);
393 int snd_seq_event_output_pending(snd_seq_t *seq);
394 int snd_seq_extract_output(snd_seq_t *handle, snd_seq_event_t **ev);
395 int snd_seq_drop_output(snd_seq_t *handle);
396 int snd_seq_drop_output_buffer(snd_seq_t *handle);
397 int snd_seq_drop_input(snd_seq_t *handle);
398 int snd_seq_drop_input_buffer(snd_seq_t *handle);
399 int snd_seq_remove_events(snd_seq_t *handle, snd_seq_remove_events_t *info);
400 /* misc */
401 void snd_seq_set_bit(int nr, void *array);
402 int snd_seq_change_bit(int nr, void *array);
403 int snd_seq_get_bit(int nr, void *array);
404
405 #ifdef __cplusplus
406 }
407 #endif
408
409 /** \} */
410