Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/sound
File: asequencer.h
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* Main header file for the ALSA sequencer
[2] Fix | Delete
* Copyright (c) 1998-1999 by Frank van de Pol <fvdpol@coil.demon.nl>
[3] Fix | Delete
* (c) 1998-1999 by Jaroslav Kysela <perex@perex.cz>
[4] Fix | Delete
*/
[5] Fix | Delete
#ifndef __SOUND_ASEQUENCER_H
[6] Fix | Delete
#define __SOUND_ASEQUENCER_H
[7] Fix | Delete
[8] Fix | Delete
#include <sound/asound.h>
[9] Fix | Delete
[10] Fix | Delete
/** version of the sequencer */
[11] Fix | Delete
#define SNDRV_SEQ_VERSION SNDRV_PROTOCOL_VERSION(1, 0, 2)
[12] Fix | Delete
[13] Fix | Delete
/**
[14] Fix | Delete
* definition of sequencer event types
[15] Fix | Delete
*/
[16] Fix | Delete
[17] Fix | Delete
/** system messages
[18] Fix | Delete
* event data type = #snd_seq_result
[19] Fix | Delete
*/
[20] Fix | Delete
#define SNDRV_SEQ_EVENT_SYSTEM 0
[21] Fix | Delete
#define SNDRV_SEQ_EVENT_RESULT 1
[22] Fix | Delete
[23] Fix | Delete
/** note messages (channel specific)
[24] Fix | Delete
* event data type = #snd_seq_ev_note
[25] Fix | Delete
*/
[26] Fix | Delete
#define SNDRV_SEQ_EVENT_NOTE 5
[27] Fix | Delete
#define SNDRV_SEQ_EVENT_NOTEON 6
[28] Fix | Delete
#define SNDRV_SEQ_EVENT_NOTEOFF 7
[29] Fix | Delete
#define SNDRV_SEQ_EVENT_KEYPRESS 8
[30] Fix | Delete
[31] Fix | Delete
/** control messages (channel specific)
[32] Fix | Delete
* event data type = #snd_seq_ev_ctrl
[33] Fix | Delete
*/
[34] Fix | Delete
#define SNDRV_SEQ_EVENT_CONTROLLER 10
[35] Fix | Delete
#define SNDRV_SEQ_EVENT_PGMCHANGE 11
[36] Fix | Delete
#define SNDRV_SEQ_EVENT_CHANPRESS 12
[37] Fix | Delete
#define SNDRV_SEQ_EVENT_PITCHBEND 13 /**< from -8192 to 8191 */
[38] Fix | Delete
#define SNDRV_SEQ_EVENT_CONTROL14 14 /**< 14 bit controller value */
[39] Fix | Delete
#define SNDRV_SEQ_EVENT_NONREGPARAM 15 /**< 14 bit NRPN address + 14 bit unsigned value */
[40] Fix | Delete
#define SNDRV_SEQ_EVENT_REGPARAM 16 /**< 14 bit RPN address + 14 bit unsigned value */
[41] Fix | Delete
[42] Fix | Delete
/** synchronisation messages
[43] Fix | Delete
* event data type = #snd_seq_ev_ctrl
[44] Fix | Delete
*/
[45] Fix | Delete
#define SNDRV_SEQ_EVENT_SONGPOS 20 /* Song Position Pointer with LSB and MSB values */
[46] Fix | Delete
#define SNDRV_SEQ_EVENT_SONGSEL 21 /* Song Select with song ID number */
[47] Fix | Delete
#define SNDRV_SEQ_EVENT_QFRAME 22 /* midi time code quarter frame */
[48] Fix | Delete
#define SNDRV_SEQ_EVENT_TIMESIGN 23 /* SMF Time Signature event */
[49] Fix | Delete
#define SNDRV_SEQ_EVENT_KEYSIGN 24 /* SMF Key Signature event */
[50] Fix | Delete
[51] Fix | Delete
/** timer messages
[52] Fix | Delete
* event data type = snd_seq_ev_queue_control
[53] Fix | Delete
*/
[54] Fix | Delete
#define SNDRV_SEQ_EVENT_START 30 /* midi Real Time Start message */
[55] Fix | Delete
#define SNDRV_SEQ_EVENT_CONTINUE 31 /* midi Real Time Continue message */
[56] Fix | Delete
#define SNDRV_SEQ_EVENT_STOP 32 /* midi Real Time Stop message */
[57] Fix | Delete
#define SNDRV_SEQ_EVENT_SETPOS_TICK 33 /* set tick queue position */
[58] Fix | Delete
#define SNDRV_SEQ_EVENT_SETPOS_TIME 34 /* set realtime queue position */
[59] Fix | Delete
#define SNDRV_SEQ_EVENT_TEMPO 35 /* (SMF) Tempo event */
[60] Fix | Delete
#define SNDRV_SEQ_EVENT_CLOCK 36 /* midi Real Time Clock message */
[61] Fix | Delete
#define SNDRV_SEQ_EVENT_TICK 37 /* midi Real Time Tick message */
[62] Fix | Delete
#define SNDRV_SEQ_EVENT_QUEUE_SKEW 38 /* skew queue tempo */
[63] Fix | Delete
[64] Fix | Delete
/** others
[65] Fix | Delete
* event data type = none
[66] Fix | Delete
*/
[67] Fix | Delete
#define SNDRV_SEQ_EVENT_TUNE_REQUEST 40 /* tune request */
[68] Fix | Delete
#define SNDRV_SEQ_EVENT_RESET 41 /* reset to power-on state */
[69] Fix | Delete
#define SNDRV_SEQ_EVENT_SENSING 42 /* "active sensing" event */
[70] Fix | Delete
[71] Fix | Delete
/** echo back, kernel private messages
[72] Fix | Delete
* event data type = any type
[73] Fix | Delete
*/
[74] Fix | Delete
#define SNDRV_SEQ_EVENT_ECHO 50 /* echo event */
[75] Fix | Delete
#define SNDRV_SEQ_EVENT_OSS 51 /* OSS raw event */
[76] Fix | Delete
[77] Fix | Delete
/** system status messages (broadcast for subscribers)
[78] Fix | Delete
* event data type = snd_seq_addr
[79] Fix | Delete
*/
[80] Fix | Delete
#define SNDRV_SEQ_EVENT_CLIENT_START 60 /* new client has connected */
[81] Fix | Delete
#define SNDRV_SEQ_EVENT_CLIENT_EXIT 61 /* client has left the system */
[82] Fix | Delete
#define SNDRV_SEQ_EVENT_CLIENT_CHANGE 62 /* client status/info has changed */
[83] Fix | Delete
#define SNDRV_SEQ_EVENT_PORT_START 63 /* new port was created */
[84] Fix | Delete
#define SNDRV_SEQ_EVENT_PORT_EXIT 64 /* port was deleted from system */
[85] Fix | Delete
#define SNDRV_SEQ_EVENT_PORT_CHANGE 65 /* port status/info has changed */
[86] Fix | Delete
[87] Fix | Delete
/** port connection changes
[88] Fix | Delete
* event data type = snd_seq_connect
[89] Fix | Delete
*/
[90] Fix | Delete
#define SNDRV_SEQ_EVENT_PORT_SUBSCRIBED 66 /* ports connected */
[91] Fix | Delete
#define SNDRV_SEQ_EVENT_PORT_UNSUBSCRIBED 67 /* ports disconnected */
[92] Fix | Delete
[93] Fix | Delete
/* 70-89: synthesizer events - obsoleted */
[94] Fix | Delete
[95] Fix | Delete
/** user-defined events with fixed length
[96] Fix | Delete
* event data type = any
[97] Fix | Delete
*/
[98] Fix | Delete
#define SNDRV_SEQ_EVENT_USR0 90
[99] Fix | Delete
#define SNDRV_SEQ_EVENT_USR1 91
[100] Fix | Delete
#define SNDRV_SEQ_EVENT_USR2 92
[101] Fix | Delete
#define SNDRV_SEQ_EVENT_USR3 93
[102] Fix | Delete
#define SNDRV_SEQ_EVENT_USR4 94
[103] Fix | Delete
#define SNDRV_SEQ_EVENT_USR5 95
[104] Fix | Delete
#define SNDRV_SEQ_EVENT_USR6 96
[105] Fix | Delete
#define SNDRV_SEQ_EVENT_USR7 97
[106] Fix | Delete
#define SNDRV_SEQ_EVENT_USR8 98
[107] Fix | Delete
#define SNDRV_SEQ_EVENT_USR9 99
[108] Fix | Delete
[109] Fix | Delete
/* 100-118: instrument layer - obsoleted */
[110] Fix | Delete
/* 119-129: reserved */
[111] Fix | Delete
[112] Fix | Delete
/* 130-139: variable length events
[113] Fix | Delete
* event data type = snd_seq_ev_ext
[114] Fix | Delete
* (SNDRV_SEQ_EVENT_LENGTH_VARIABLE must be set)
[115] Fix | Delete
*/
[116] Fix | Delete
#define SNDRV_SEQ_EVENT_SYSEX 130 /* system exclusive data (variable length) */
[117] Fix | Delete
#define SNDRV_SEQ_EVENT_BOUNCE 131 /* error event */
[118] Fix | Delete
/* 132-134: reserved */
[119] Fix | Delete
#define SNDRV_SEQ_EVENT_USR_VAR0 135
[120] Fix | Delete
#define SNDRV_SEQ_EVENT_USR_VAR1 136
[121] Fix | Delete
#define SNDRV_SEQ_EVENT_USR_VAR2 137
[122] Fix | Delete
#define SNDRV_SEQ_EVENT_USR_VAR3 138
[123] Fix | Delete
#define SNDRV_SEQ_EVENT_USR_VAR4 139
[124] Fix | Delete
[125] Fix | Delete
/* 150-151: kernel events with quote - DO NOT use in user clients */
[126] Fix | Delete
#define SNDRV_SEQ_EVENT_KERNEL_ERROR 150
[127] Fix | Delete
#define SNDRV_SEQ_EVENT_KERNEL_QUOTE 151 /* obsolete */
[128] Fix | Delete
[129] Fix | Delete
/* 152-191: reserved */
[130] Fix | Delete
[131] Fix | Delete
/* 192-254: hardware specific events */
[132] Fix | Delete
[133] Fix | Delete
/* 255: special event */
[134] Fix | Delete
#define SNDRV_SEQ_EVENT_NONE 255
[135] Fix | Delete
[136] Fix | Delete
[137] Fix | Delete
typedef unsigned char snd_seq_event_type_t;
[138] Fix | Delete
[139] Fix | Delete
/** event address */
[140] Fix | Delete
struct snd_seq_addr {
[141] Fix | Delete
unsigned char client; /**< Client number: 0..255, 255 = broadcast to all clients */
[142] Fix | Delete
unsigned char port; /**< Port within client: 0..255, 255 = broadcast to all ports */
[143] Fix | Delete
};
[144] Fix | Delete
[145] Fix | Delete
/** port connection */
[146] Fix | Delete
struct snd_seq_connect {
[147] Fix | Delete
struct snd_seq_addr sender;
[148] Fix | Delete
struct snd_seq_addr dest;
[149] Fix | Delete
};
[150] Fix | Delete
[151] Fix | Delete
[152] Fix | Delete
#define SNDRV_SEQ_ADDRESS_UNKNOWN 253 /* unknown source */
[153] Fix | Delete
#define SNDRV_SEQ_ADDRESS_SUBSCRIBERS 254 /* send event to all subscribed ports */
[154] Fix | Delete
#define SNDRV_SEQ_ADDRESS_BROADCAST 255 /* send event to all queues/clients/ports/channels */
[155] Fix | Delete
#define SNDRV_SEQ_QUEUE_DIRECT 253 /* direct dispatch */
[156] Fix | Delete
[157] Fix | Delete
/* event mode flag - NOTE: only 8 bits available! */
[158] Fix | Delete
#define SNDRV_SEQ_TIME_STAMP_TICK (0<<0) /* timestamp in clock ticks */
[159] Fix | Delete
#define SNDRV_SEQ_TIME_STAMP_REAL (1<<0) /* timestamp in real time */
[160] Fix | Delete
#define SNDRV_SEQ_TIME_STAMP_MASK (1<<0)
[161] Fix | Delete
[162] Fix | Delete
#define SNDRV_SEQ_TIME_MODE_ABS (0<<1) /* absolute timestamp */
[163] Fix | Delete
#define SNDRV_SEQ_TIME_MODE_REL (1<<1) /* relative to current time */
[164] Fix | Delete
#define SNDRV_SEQ_TIME_MODE_MASK (1<<1)
[165] Fix | Delete
[166] Fix | Delete
#define SNDRV_SEQ_EVENT_LENGTH_FIXED (0<<2) /* fixed event size */
[167] Fix | Delete
#define SNDRV_SEQ_EVENT_LENGTH_VARIABLE (1<<2) /* variable event size */
[168] Fix | Delete
#define SNDRV_SEQ_EVENT_LENGTH_VARUSR (2<<2) /* variable event size - user memory space */
[169] Fix | Delete
#define SNDRV_SEQ_EVENT_LENGTH_MASK (3<<2)
[170] Fix | Delete
[171] Fix | Delete
#define SNDRV_SEQ_PRIORITY_NORMAL (0<<4) /* normal priority */
[172] Fix | Delete
#define SNDRV_SEQ_PRIORITY_HIGH (1<<4) /* event should be processed before others */
[173] Fix | Delete
#define SNDRV_SEQ_PRIORITY_MASK (1<<4)
[174] Fix | Delete
[175] Fix | Delete
[176] Fix | Delete
/* note event */
[177] Fix | Delete
struct snd_seq_ev_note {
[178] Fix | Delete
unsigned char channel;
[179] Fix | Delete
unsigned char note;
[180] Fix | Delete
unsigned char velocity;
[181] Fix | Delete
unsigned char off_velocity; /* only for SNDRV_SEQ_EVENT_NOTE */
[182] Fix | Delete
unsigned int duration; /* only for SNDRV_SEQ_EVENT_NOTE */
[183] Fix | Delete
};
[184] Fix | Delete
[185] Fix | Delete
/* controller event */
[186] Fix | Delete
struct snd_seq_ev_ctrl {
[187] Fix | Delete
unsigned char channel;
[188] Fix | Delete
unsigned char unused1, unused2, unused3; /* pad */
[189] Fix | Delete
unsigned int param;
[190] Fix | Delete
signed int value;
[191] Fix | Delete
};
[192] Fix | Delete
[193] Fix | Delete
/* generic set of bytes (12x8 bit) */
[194] Fix | Delete
struct snd_seq_ev_raw8 {
[195] Fix | Delete
unsigned char d[12]; /* 8 bit value */
[196] Fix | Delete
};
[197] Fix | Delete
[198] Fix | Delete
/* generic set of integers (3x32 bit) */
[199] Fix | Delete
struct snd_seq_ev_raw32 {
[200] Fix | Delete
unsigned int d[3]; /* 32 bit value */
[201] Fix | Delete
};
[202] Fix | Delete
[203] Fix | Delete
/* external stored data */
[204] Fix | Delete
struct snd_seq_ev_ext {
[205] Fix | Delete
unsigned int len; /* length of data */
[206] Fix | Delete
void *ptr; /* pointer to data (note: maybe 64-bit) */
[207] Fix | Delete
} __attribute__((packed));
[208] Fix | Delete
[209] Fix | Delete
struct snd_seq_result {
[210] Fix | Delete
int event; /* processed event type */
[211] Fix | Delete
int result;
[212] Fix | Delete
};
[213] Fix | Delete
[214] Fix | Delete
[215] Fix | Delete
struct snd_seq_real_time {
[216] Fix | Delete
unsigned int tv_sec; /* seconds */
[217] Fix | Delete
unsigned int tv_nsec; /* nanoseconds */
[218] Fix | Delete
};
[219] Fix | Delete
[220] Fix | Delete
typedef unsigned int snd_seq_tick_time_t; /* midi ticks */
[221] Fix | Delete
[222] Fix | Delete
union snd_seq_timestamp {
[223] Fix | Delete
snd_seq_tick_time_t tick;
[224] Fix | Delete
struct snd_seq_real_time time;
[225] Fix | Delete
};
[226] Fix | Delete
[227] Fix | Delete
struct snd_seq_queue_skew {
[228] Fix | Delete
unsigned int value;
[229] Fix | Delete
unsigned int base;
[230] Fix | Delete
};
[231] Fix | Delete
[232] Fix | Delete
/* queue timer control */
[233] Fix | Delete
struct snd_seq_ev_queue_control {
[234] Fix | Delete
unsigned char queue; /* affected queue */
[235] Fix | Delete
unsigned char pad[3]; /* reserved */
[236] Fix | Delete
union {
[237] Fix | Delete
signed int value; /* affected value (e.g. tempo) */
[238] Fix | Delete
union snd_seq_timestamp time; /* time */
[239] Fix | Delete
unsigned int position; /* sync position */
[240] Fix | Delete
struct snd_seq_queue_skew skew;
[241] Fix | Delete
unsigned int d32[2];
[242] Fix | Delete
unsigned char d8[8];
[243] Fix | Delete
} param;
[244] Fix | Delete
};
[245] Fix | Delete
[246] Fix | Delete
/* quoted event - inside the kernel only */
[247] Fix | Delete
struct snd_seq_ev_quote {
[248] Fix | Delete
struct snd_seq_addr origin; /* original sender */
[249] Fix | Delete
unsigned short value; /* optional data */
[250] Fix | Delete
struct snd_seq_event *event; /* quoted event */
[251] Fix | Delete
} __attribute__((packed));
[252] Fix | Delete
[253] Fix | Delete
[254] Fix | Delete
/* sequencer event */
[255] Fix | Delete
struct snd_seq_event {
[256] Fix | Delete
snd_seq_event_type_t type; /* event type */
[257] Fix | Delete
unsigned char flags; /* event flags */
[258] Fix | Delete
char tag;
[259] Fix | Delete
[260] Fix | Delete
unsigned char queue; /* schedule queue */
[261] Fix | Delete
union snd_seq_timestamp time; /* schedule time */
[262] Fix | Delete
[263] Fix | Delete
[264] Fix | Delete
struct snd_seq_addr source; /* source address */
[265] Fix | Delete
struct snd_seq_addr dest; /* destination address */
[266] Fix | Delete
[267] Fix | Delete
union { /* event data... */
[268] Fix | Delete
struct snd_seq_ev_note note;
[269] Fix | Delete
struct snd_seq_ev_ctrl control;
[270] Fix | Delete
struct snd_seq_ev_raw8 raw8;
[271] Fix | Delete
struct snd_seq_ev_raw32 raw32;
[272] Fix | Delete
struct snd_seq_ev_ext ext;
[273] Fix | Delete
struct snd_seq_ev_queue_control queue;
[274] Fix | Delete
union snd_seq_timestamp time;
[275] Fix | Delete
struct snd_seq_addr addr;
[276] Fix | Delete
struct snd_seq_connect connect;
[277] Fix | Delete
struct snd_seq_result result;
[278] Fix | Delete
struct snd_seq_ev_quote quote;
[279] Fix | Delete
} data;
[280] Fix | Delete
};
[281] Fix | Delete
[282] Fix | Delete
[283] Fix | Delete
/*
[284] Fix | Delete
* bounce event - stored as variable size data
[285] Fix | Delete
*/
[286] Fix | Delete
struct snd_seq_event_bounce {
[287] Fix | Delete
int err;
[288] Fix | Delete
struct snd_seq_event event;
[289] Fix | Delete
/* external data follows here. */
[290] Fix | Delete
};
[291] Fix | Delete
[292] Fix | Delete
[293] Fix | Delete
/* system information */
[294] Fix | Delete
struct snd_seq_system_info {
[295] Fix | Delete
int queues; /* maximum queues count */
[296] Fix | Delete
int clients; /* maximum clients count */
[297] Fix | Delete
int ports; /* maximum ports per client */
[298] Fix | Delete
int channels; /* maximum channels per port */
[299] Fix | Delete
int cur_clients; /* current clients */
[300] Fix | Delete
int cur_queues; /* current queues */
[301] Fix | Delete
char reserved[24];
[302] Fix | Delete
};
[303] Fix | Delete
[304] Fix | Delete
[305] Fix | Delete
/* system running information */
[306] Fix | Delete
struct snd_seq_running_info {
[307] Fix | Delete
unsigned char client; /* client id */
[308] Fix | Delete
unsigned char big_endian; /* 1 = big-endian */
[309] Fix | Delete
unsigned char cpu_mode; /* 4 = 32bit, 8 = 64bit */
[310] Fix | Delete
unsigned char pad; /* reserved */
[311] Fix | Delete
unsigned char reserved[12];
[312] Fix | Delete
};
[313] Fix | Delete
[314] Fix | Delete
[315] Fix | Delete
/* known client numbers */
[316] Fix | Delete
#define SNDRV_SEQ_CLIENT_SYSTEM 0
[317] Fix | Delete
/* internal client numbers */
[318] Fix | Delete
#define SNDRV_SEQ_CLIENT_DUMMY 14 /* midi through */
[319] Fix | Delete
#define SNDRV_SEQ_CLIENT_OSS 15 /* oss sequencer emulator */
[320] Fix | Delete
[321] Fix | Delete
[322] Fix | Delete
/* client types */
[323] Fix | Delete
typedef int __bitwise snd_seq_client_type_t;
[324] Fix | Delete
#define NO_CLIENT ((snd_seq_client_type_t) 0)
[325] Fix | Delete
#define USER_CLIENT ((snd_seq_client_type_t) 1)
[326] Fix | Delete
#define KERNEL_CLIENT ((snd_seq_client_type_t) 2)
[327] Fix | Delete
[328] Fix | Delete
/* event filter flags */
[329] Fix | Delete
#define SNDRV_SEQ_FILTER_BROADCAST (1<<0) /* accept broadcast messages */
[330] Fix | Delete
#define SNDRV_SEQ_FILTER_MULTICAST (1<<1) /* accept multicast messages */
[331] Fix | Delete
#define SNDRV_SEQ_FILTER_BOUNCE (1<<2) /* accept bounce event in error */
[332] Fix | Delete
#define SNDRV_SEQ_FILTER_USE_EVENT (1<<31) /* use event filter */
[333] Fix | Delete
[334] Fix | Delete
struct snd_seq_client_info {
[335] Fix | Delete
int client; /* client number to inquire */
[336] Fix | Delete
snd_seq_client_type_t type; /* client type */
[337] Fix | Delete
char name[64]; /* client name */
[338] Fix | Delete
unsigned int filter; /* filter flags */
[339] Fix | Delete
unsigned char multicast_filter[8]; /* multicast filter bitmap */
[340] Fix | Delete
unsigned char event_filter[32]; /* event filter bitmap */
[341] Fix | Delete
int num_ports; /* RO: number of ports */
[342] Fix | Delete
int event_lost; /* number of lost events */
[343] Fix | Delete
int card; /* RO: card number[kernel] */
[344] Fix | Delete
int pid; /* RO: pid[user] */
[345] Fix | Delete
char reserved[56]; /* for future use */
[346] Fix | Delete
};
[347] Fix | Delete
[348] Fix | Delete
[349] Fix | Delete
/* client pool size */
[350] Fix | Delete
struct snd_seq_client_pool {
[351] Fix | Delete
int client; /* client number to inquire */
[352] Fix | Delete
int output_pool; /* outgoing (write) pool size */
[353] Fix | Delete
int input_pool; /* incoming (read) pool size */
[354] Fix | Delete
int output_room; /* minimum free pool size for select/blocking mode */
[355] Fix | Delete
int output_free; /* unused size */
[356] Fix | Delete
int input_free; /* unused size */
[357] Fix | Delete
char reserved[64];
[358] Fix | Delete
};
[359] Fix | Delete
[360] Fix | Delete
[361] Fix | Delete
/* Remove events by specified criteria */
[362] Fix | Delete
[363] Fix | Delete
#define SNDRV_SEQ_REMOVE_INPUT (1<<0) /* Flush input queues */
[364] Fix | Delete
#define SNDRV_SEQ_REMOVE_OUTPUT (1<<1) /* Flush output queues */
[365] Fix | Delete
#define SNDRV_SEQ_REMOVE_DEST (1<<2) /* Restrict by destination q:client:port */
[366] Fix | Delete
#define SNDRV_SEQ_REMOVE_DEST_CHANNEL (1<<3) /* Restrict by channel */
[367] Fix | Delete
#define SNDRV_SEQ_REMOVE_TIME_BEFORE (1<<4) /* Restrict to before time */
[368] Fix | Delete
#define SNDRV_SEQ_REMOVE_TIME_AFTER (1<<5) /* Restrict to time or after */
[369] Fix | Delete
#define SNDRV_SEQ_REMOVE_TIME_TICK (1<<6) /* Time is in ticks */
[370] Fix | Delete
#define SNDRV_SEQ_REMOVE_EVENT_TYPE (1<<7) /* Restrict to event type */
[371] Fix | Delete
#define SNDRV_SEQ_REMOVE_IGNORE_OFF (1<<8) /* Do not flush off events */
[372] Fix | Delete
#define SNDRV_SEQ_REMOVE_TAG_MATCH (1<<9) /* Restrict to events with given tag */
[373] Fix | Delete
[374] Fix | Delete
struct snd_seq_remove_events {
[375] Fix | Delete
unsigned int remove_mode; /* Flags that determine what gets removed */
[376] Fix | Delete
[377] Fix | Delete
union snd_seq_timestamp time;
[378] Fix | Delete
[379] Fix | Delete
unsigned char queue; /* Queue for REMOVE_DEST */
[380] Fix | Delete
struct snd_seq_addr dest; /* Address for REMOVE_DEST */
[381] Fix | Delete
unsigned char channel; /* Channel for REMOVE_DEST */
[382] Fix | Delete
[383] Fix | Delete
int type; /* For REMOVE_EVENT_TYPE */
[384] Fix | Delete
char tag; /* Tag for REMOVE_TAG */
[385] Fix | Delete
[386] Fix | Delete
int reserved[10]; /* To allow for future binary compatibility */
[387] Fix | Delete
[388] Fix | Delete
};
[389] Fix | Delete
[390] Fix | Delete
[391] Fix | Delete
/* known port numbers */
[392] Fix | Delete
#define SNDRV_SEQ_PORT_SYSTEM_TIMER 0
[393] Fix | Delete
#define SNDRV_SEQ_PORT_SYSTEM_ANNOUNCE 1
[394] Fix | Delete
[395] Fix | Delete
/* port capabilities (32 bits) */
[396] Fix | Delete
#define SNDRV_SEQ_PORT_CAP_READ (1<<0) /* readable from this port */
[397] Fix | Delete
#define SNDRV_SEQ_PORT_CAP_WRITE (1<<1) /* writable to this port */
[398] Fix | Delete
[399] Fix | Delete
#define SNDRV_SEQ_PORT_CAP_SYNC_READ (1<<2)
[400] Fix | Delete
#define SNDRV_SEQ_PORT_CAP_SYNC_WRITE (1<<3)
[401] Fix | Delete
[402] Fix | Delete
#define SNDRV_SEQ_PORT_CAP_DUPLEX (1<<4)
[403] Fix | Delete
[404] Fix | Delete
#define SNDRV_SEQ_PORT_CAP_SUBS_READ (1<<5) /* allow read subscription */
[405] Fix | Delete
#define SNDRV_SEQ_PORT_CAP_SUBS_WRITE (1<<6) /* allow write subscription */
[406] Fix | Delete
#define SNDRV_SEQ_PORT_CAP_NO_EXPORT (1<<7) /* routing not allowed */
[407] Fix | Delete
[408] Fix | Delete
/* port type */
[409] Fix | Delete
#define SNDRV_SEQ_PORT_TYPE_SPECIFIC (1<<0) /* hardware specific */
[410] Fix | Delete
#define SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC (1<<1) /* generic MIDI device */
[411] Fix | Delete
#define SNDRV_SEQ_PORT_TYPE_MIDI_GM (1<<2) /* General MIDI compatible device */
[412] Fix | Delete
#define SNDRV_SEQ_PORT_TYPE_MIDI_GS (1<<3) /* GS compatible device */
[413] Fix | Delete
#define SNDRV_SEQ_PORT_TYPE_MIDI_XG (1<<4) /* XG compatible device */
[414] Fix | Delete
#define SNDRV_SEQ_PORT_TYPE_MIDI_MT32 (1<<5) /* MT-32 compatible device */
[415] Fix | Delete
#define SNDRV_SEQ_PORT_TYPE_MIDI_GM2 (1<<6) /* General MIDI 2 compatible device */
[416] Fix | Delete
[417] Fix | Delete
/* other standards...*/
[418] Fix | Delete
#define SNDRV_SEQ_PORT_TYPE_SYNTH (1<<10) /* Synth device (no MIDI compatible - direct wavetable) */
[419] Fix | Delete
#define SNDRV_SEQ_PORT_TYPE_DIRECT_SAMPLE (1<<11) /* Sampling device (support sample download) */
[420] Fix | Delete
#define SNDRV_SEQ_PORT_TYPE_SAMPLE (1<<12) /* Sampling device (sample can be downloaded at any time) */
[421] Fix | Delete
/*...*/
[422] Fix | Delete
#define SNDRV_SEQ_PORT_TYPE_HARDWARE (1<<16) /* driver for a hardware device */
[423] Fix | Delete
#define SNDRV_SEQ_PORT_TYPE_SOFTWARE (1<<17) /* implemented in software */
[424] Fix | Delete
#define SNDRV_SEQ_PORT_TYPE_SYNTHESIZER (1<<18) /* generates sound */
[425] Fix | Delete
#define SNDRV_SEQ_PORT_TYPE_PORT (1<<19) /* connects to other device(s) */
[426] Fix | Delete
#define SNDRV_SEQ_PORT_TYPE_APPLICATION (1<<20) /* application (sequencer/editor) */
[427] Fix | Delete
[428] Fix | Delete
/* misc. conditioning flags */
[429] Fix | Delete
#define SNDRV_SEQ_PORT_FLG_GIVEN_PORT (1<<0)
[430] Fix | Delete
#define SNDRV_SEQ_PORT_FLG_TIMESTAMP (1<<1)
[431] Fix | Delete
#define SNDRV_SEQ_PORT_FLG_TIME_REAL (1<<2)
[432] Fix | Delete
[433] Fix | Delete
struct snd_seq_port_info {
[434] Fix | Delete
struct snd_seq_addr addr; /* client/port numbers */
[435] Fix | Delete
char name[64]; /* port name */
[436] Fix | Delete
[437] Fix | Delete
unsigned int capability; /* port capability bits */
[438] Fix | Delete
unsigned int type; /* port type bits */
[439] Fix | Delete
int midi_channels; /* channels per MIDI port */
[440] Fix | Delete
int midi_voices; /* voices per MIDI port */
[441] Fix | Delete
int synth_voices; /* voices per SYNTH port */
[442] Fix | Delete
[443] Fix | Delete
int read_use; /* R/O: subscribers for output (from this port) */
[444] Fix | Delete
int write_use; /* R/O: subscribers for input (to this port) */
[445] Fix | Delete
[446] Fix | Delete
void *kernel; /* reserved for kernel use (must be NULL) */
[447] Fix | Delete
unsigned int flags; /* misc. conditioning */
[448] Fix | Delete
unsigned char time_queue; /* queue # for timestamping */
[449] Fix | Delete
char reserved[59]; /* for future use */
[450] Fix | Delete
};
[451] Fix | Delete
[452] Fix | Delete
[453] Fix | Delete
/* queue flags */
[454] Fix | Delete
#define SNDRV_SEQ_QUEUE_FLG_SYNC (1<<0) /* sync enabled */
[455] Fix | Delete
[456] Fix | Delete
/* queue information */
[457] Fix | Delete
struct snd_seq_queue_info {
[458] Fix | Delete
int queue; /* queue id */
[459] Fix | Delete
[460] Fix | Delete
/*
[461] Fix | Delete
* security settings, only owner of this queue can start/stop timer
[462] Fix | Delete
* etc. if the queue is locked for other clients
[463] Fix | Delete
*/
[464] Fix | Delete
int owner; /* client id for owner of the queue */
[465] Fix | Delete
unsigned locked:1; /* timing queue locked for other queues */
[466] Fix | Delete
char name[64]; /* name of this queue */
[467] Fix | Delete
unsigned int flags; /* flags */
[468] Fix | Delete
char reserved[60]; /* for future use */
[469] Fix | Delete
[470] Fix | Delete
};
[471] Fix | Delete
[472] Fix | Delete
/* queue info/status */
[473] Fix | Delete
struct snd_seq_queue_status {
[474] Fix | Delete
int queue; /* queue id */
[475] Fix | Delete
int events; /* read-only - queue size */
[476] Fix | Delete
snd_seq_tick_time_t tick; /* current tick */
[477] Fix | Delete
struct snd_seq_real_time time; /* current time */
[478] Fix | Delete
int running; /* running state of queue */
[479] Fix | Delete
int flags; /* various flags */
[480] Fix | Delete
char reserved[64]; /* for the future */
[481] Fix | Delete
};
[482] Fix | Delete
[483] Fix | Delete
[484] Fix | Delete
/* queue tempo */
[485] Fix | Delete
struct snd_seq_queue_tempo {
[486] Fix | Delete
int queue; /* sequencer queue */
[487] Fix | Delete
unsigned int tempo; /* current tempo, us/tick */
[488] Fix | Delete
int ppq; /* time resolution, ticks/quarter */
[489] Fix | Delete
unsigned int skew_value; /* queue skew */
[490] Fix | Delete
unsigned int skew_base; /* queue skew base */
[491] Fix | Delete
char reserved[24]; /* for the future */
[492] Fix | Delete
};
[493] Fix | Delete
[494] Fix | Delete
[495] Fix | Delete
/* sequencer timer sources */
[496] Fix | Delete
#define SNDRV_SEQ_TIMER_ALSA 0 /* ALSA timer */
[497] Fix | Delete
#define SNDRV_SEQ_TIMER_MIDI_CLOCK 1 /* Midi Clock (CLOCK event) */
[498] Fix | Delete
#define SNDRV_SEQ_TIMER_MIDI_TICK 2 /* Midi Timer Tick (TICK event) */
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function