ALSA project - the C library reference
 
Loading...
Searching...
No Matches
seq_event.h
Go to the documentation of this file.
1
11/*
12 * This library is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License as
14 * published by the Free Software Foundation; either version 2.1 of
15 * the License, or (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU Lesser General Public License for more details.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 *
26 */
27
28#ifndef __ALSA_SEQ_EVENT_H
29#define __ALSA_SEQ_EVENT_H
30
31#include "ump_msg.h"
32
39
43typedef unsigned char snd_seq_event_type_t;
44
51
60
75
86
107
114
119
132
137
158
173
176};
177
178
180typedef struct snd_seq_addr {
181 unsigned char client;
182 unsigned char port;
184
186typedef struct snd_seq_connect {
190
191
193typedef struct snd_seq_real_time {
194 unsigned int tv_sec;
195 unsigned int tv_nsec;
197
199typedef unsigned int snd_seq_tick_time_t;
200
202typedef union snd_seq_timestamp {
204 struct snd_seq_real_time time;
206
207
213#define SND_SEQ_TIME_STAMP_TICK (0<<0)
214#define SND_SEQ_TIME_STAMP_REAL (1<<0)
215#define SND_SEQ_TIME_STAMP_MASK (1<<0)
216
217#define SND_SEQ_TIME_MODE_ABS (0<<1)
218#define SND_SEQ_TIME_MODE_REL (1<<1)
219#define SND_SEQ_TIME_MODE_MASK (1<<1)
220
221#define SND_SEQ_EVENT_LENGTH_FIXED (0<<2)
222#define SND_SEQ_EVENT_LENGTH_VARIABLE (1<<2)
223#define SND_SEQ_EVENT_LENGTH_VARUSR (2<<2)
224#define SND_SEQ_EVENT_LENGTH_MASK (3<<2)
225
226#define SND_SEQ_PRIORITY_NORMAL (0<<4)
227#define SND_SEQ_PRIORITY_HIGH (1<<4)
228#define SND_SEQ_PRIORITY_MASK (1<<4)
229
230#define SND_SEQ_EVENT_UMP (1<<5)
231
233typedef struct snd_seq_ev_note {
234 unsigned char channel;
235 unsigned char note;
236 unsigned char velocity;
237 unsigned char off_velocity;
238 unsigned int duration;
240
242typedef struct snd_seq_ev_ctrl {
243 unsigned char channel;
244 unsigned char unused[3];
245 unsigned int param;
246 signed int value;
248
250typedef struct snd_seq_ev_raw8 {
251 unsigned char d[12];
253
255typedef struct snd_seq_ev_raw32 {
256 unsigned int d[3];
258
261 unsigned int len;
262 void *ptr;
263} __attribute__((packed));
264
265typedef struct snd_seq_ev_ext snd_seq_ev_ext_t;
266#ifdef DOC_HIDDEN
267/* redefine typedef for stupid doxygen */
269#endif
270
272typedef struct snd_seq_result {
273 int event;
274 int result;
276
278typedef struct snd_seq_queue_skew {
279 unsigned int value;
280 unsigned int base;
282
284typedef struct snd_seq_ev_queue_control {
285 unsigned char queue;
286 unsigned char unused[3];
287 union {
288 signed int value;
290 unsigned int position;
292 unsigned int d32[2];
293 unsigned char d8[8];
294 } param;
296
310
325
327typedef struct snd_seq_ump_event {
329 unsigned char flags;
330 unsigned char tag;
331 unsigned char queue;
335
336 union {
338 unsigned int ump[4];
339 };
341
343
344#endif /* __ALSA_SEQ_EVENT_H */
345
snd_seq_ev_ext snd_seq_ev_ext_t
Definition seq_event.h:268
unsigned char snd_seq_event_type_t
Definition seq_event.h:43
unsigned int snd_seq_tick_time_t
Definition seq_event.h:199
snd_seq_event_type
Definition seq_event.h:46
@ SND_SEQ_EVENT_USR_VAR2
Definition seq_event.h:168
@ SND_SEQ_EVENT_SONGPOS
Definition seq_event.h:77
@ SND_SEQ_EVENT_SYSEX
Definition seq_event.h:160
@ SND_SEQ_EVENT_CLIENT_EXIT
Definition seq_event.h:123
@ SND_SEQ_EVENT_SETPOS_TIME
Definition seq_event.h:96
@ SND_SEQ_EVENT_USR2
Definition seq_event.h:143
@ SND_SEQ_EVENT_PORT_SUBSCRIBED
Definition seq_event.h:134
@ SND_SEQ_EVENT_RESULT
Definition seq_event.h:50
@ SND_SEQ_EVENT_USR9
Definition seq_event.h:157
@ SND_SEQ_EVENT_BOUNCE
Definition seq_event.h:162
@ SND_SEQ_EVENT_TIMESIGN
Definition seq_event.h:83
@ SND_SEQ_EVENT_TICK
Definition seq_event.h:102
@ SND_SEQ_EVENT_KEYSIGN
Definition seq_event.h:85
@ SND_SEQ_EVENT_USR_VAR0
Definition seq_event.h:164
@ SND_SEQ_EVENT_USR5
Definition seq_event.h:149
@ SND_SEQ_EVENT_CLIENT_CHANGE
Definition seq_event.h:125
@ SND_SEQ_EVENT_CLOCK
Definition seq_event.h:100
@ SND_SEQ_EVENT_TUNE_REQUEST
Definition seq_event.h:109
@ SND_SEQ_EVENT_SYNC_POS
Definition seq_event.h:106
@ SND_SEQ_EVENT_KEYPRESS
Definition seq_event.h:59
@ SND_SEQ_EVENT_USR7
Definition seq_event.h:153
@ SND_SEQ_EVENT_ECHO
Definition seq_event.h:116
@ SND_SEQ_EVENT_NOTE
Definition seq_event.h:53
@ SND_SEQ_EVENT_NONE
Definition seq_event.h:175
@ SND_SEQ_EVENT_CLIENT_START
Definition seq_event.h:121
@ SND_SEQ_EVENT_CHANPRESS
Definition seq_event.h:66
@ SND_SEQ_EVENT_NONREGPARAM
Definition seq_event.h:72
@ SND_SEQ_EVENT_CONTINUE
Definition seq_event.h:90
@ SND_SEQ_EVENT_SYSTEM
Definition seq_event.h:48
@ SND_SEQ_EVENT_STOP
Definition seq_event.h:92
@ SND_SEQ_EVENT_PORT_EXIT
Definition seq_event.h:129
@ SND_SEQ_EVENT_USR_VAR3
Definition seq_event.h:170
@ SND_SEQ_EVENT_CONTROLLER
Definition seq_event.h:62
@ SND_SEQ_EVENT_CONTROL14
Definition seq_event.h:70
@ SND_SEQ_EVENT_NOTEOFF
Definition seq_event.h:57
@ SND_SEQ_EVENT_USR_VAR1
Definition seq_event.h:166
@ SND_SEQ_EVENT_USR3
Definition seq_event.h:145
@ SND_SEQ_EVENT_TEMPO
Definition seq_event.h:98
@ SND_SEQ_EVENT_PITCHBEND
Definition seq_event.h:68
@ SND_SEQ_EVENT_PORT_START
Definition seq_event.h:127
@ SND_SEQ_EVENT_USR4
Definition seq_event.h:147
@ SND_SEQ_EVENT_USR1
Definition seq_event.h:141
@ SND_SEQ_EVENT_PORT_UNSUBSCRIBED
Definition seq_event.h:136
@ SND_SEQ_EVENT_QUEUE_SKEW
Definition seq_event.h:104
@ SND_SEQ_EVENT_QFRAME
Definition seq_event.h:81
@ SND_SEQ_EVENT_USR6
Definition seq_event.h:151
@ SND_SEQ_EVENT_OSS
Definition seq_event.h:118
@ SND_SEQ_EVENT_USR0
Definition seq_event.h:139
@ SND_SEQ_EVENT_PORT_CHANGE
Definition seq_event.h:131
@ SND_SEQ_EVENT_PGMCHANGE
Definition seq_event.h:64
@ SND_SEQ_EVENT_REGPARAM
Definition seq_event.h:74
@ SND_SEQ_EVENT_SETPOS_TICK
Definition seq_event.h:94
@ SND_SEQ_EVENT_USR_VAR4
Definition seq_event.h:172
@ SND_SEQ_EVENT_START
Definition seq_event.h:88
@ SND_SEQ_EVENT_RESET
Definition seq_event.h:111
@ SND_SEQ_EVENT_SENSING
Definition seq_event.h:113
@ SND_SEQ_EVENT_NOTEON
Definition seq_event.h:55
@ SND_SEQ_EVENT_USR8
Definition seq_event.h:155
@ SND_SEQ_EVENT_SONGSEL
Definition seq_event.h:79
Definition seq_event.h:180
unsigned char port
Definition seq_event.h:182
unsigned char client
Definition seq_event.h:181
Definition seq_event.h:186
snd_seq_addr_t dest
Definition seq_event.h:188
snd_seq_addr_t sender
Definition seq_event.h:187
Definition seq_event.h:242
unsigned char unused[3]
Definition seq_event.h:244
unsigned char channel
Definition seq_event.h:243
signed int value
Definition seq_event.h:246
unsigned int param
Definition seq_event.h:245
Definition seq_event.h:260
unsigned int len
Definition seq_event.h:261
void * ptr
Definition seq_event.h:262
Definition seq_event.h:233
unsigned char velocity
Definition seq_event.h:236
unsigned char off_velocity
Definition seq_event.h:237
unsigned char note
Definition seq_event.h:235
unsigned int duration
Definition seq_event.h:238
unsigned char channel
Definition seq_event.h:234
Definition seq_event.h:284
snd_seq_timestamp_t time
Definition seq_event.h:289
unsigned char queue
Definition seq_event.h:285
unsigned char unused[3]
Definition seq_event.h:286
signed int value
Definition seq_event.h:288
unsigned char d8[8]
Definition seq_event.h:293
unsigned int position
Definition seq_event.h:290
snd_seq_queue_skew_t skew
Definition seq_event.h:291
unsigned int d32[2]
Definition seq_event.h:292
Definition seq_event.h:255
unsigned int d[3]
Definition seq_event.h:256
Definition seq_event.h:250
unsigned char d[12]
Definition seq_event.h:251
Definition seq_event.h:312
unsigned char queue
Definition seq_event.h:317
unsigned char flags
Definition seq_event.h:314
snd_seq_timestamp_t time
Definition seq_event.h:318
unsigned char tag
Definition seq_event.h:315
snd_seq_event_data_t data
Definition seq_event.h:323
snd_seq_addr_t source
Definition seq_event.h:320
snd_seq_event_type_t type
Definition seq_event.h:313
snd_seq_addr_t dest
Definition seq_event.h:321
Definition seq_event.h:278
unsigned int base
Definition seq_event.h:280
unsigned int value
Definition seq_event.h:279
Definition seq_event.h:193
unsigned int tv_nsec
Definition seq_event.h:195
unsigned int tv_sec
Definition seq_event.h:194
Definition seq_event.h:272
int result
Definition seq_event.h:274
int event
Definition seq_event.h:273
Definition seq_event.h:327
unsigned char tag
Definition seq_event.h:330
unsigned char flags
Definition seq_event.h:329
unsigned int ump[4]
Definition seq_event.h:338
snd_seq_addr_t source
Definition seq_event.h:333
unsigned char queue
Definition seq_event.h:331
snd_seq_event_data_t data
Definition seq_event.h:337
snd_seq_event_type_t type
Definition seq_event.h:328
snd_seq_addr_t dest
Definition seq_event.h:334
snd_seq_timestamp_t time
Definition seq_event.h:332
API library for ALSA rawmidi/UMP interface.
Definition seq_event.h:298
snd_seq_ev_queue_control_t queue
Definition seq_event.h:304
snd_seq_timestamp_t time
Definition seq_event.h:305
snd_seq_ev_raw8_t raw8
Definition seq_event.h:301
snd_seq_ev_note_t note
Definition seq_event.h:299
snd_seq_ev_raw32_t raw32
Definition seq_event.h:302
snd_seq_addr_t addr
Definition seq_event.h:306
snd_seq_result_t result
Definition seq_event.h:308
snd_seq_connect_t connect
Definition seq_event.h:307
snd_seq_ev_ctrl_t control
Definition seq_event.h:300
snd_seq_ev_ext_t ext
Definition seq_event.h:303
Definition seq_event.h:202
struct snd_seq_real_time time
Definition seq_event.h:204
snd_seq_tick_time_t tick
Definition seq_event.h:203