1d5ac70f0Sopenharmony_ci/** 2d5ac70f0Sopenharmony_ci * \file seq/seq_event.c 3d5ac70f0Sopenharmony_ci * \brief Sequencer Event Types 4d5ac70f0Sopenharmony_ci * \author Takashi Iwai <tiwai@suse.de> 5d5ac70f0Sopenharmony_ci * \date 2001 6d5ac70f0Sopenharmony_ci */ 7d5ac70f0Sopenharmony_ci 8d5ac70f0Sopenharmony_ci#include "local.h" 9d5ac70f0Sopenharmony_ci 10d5ac70f0Sopenharmony_ci#ifndef DOC_HIDDEN 11d5ac70f0Sopenharmony_ci#define FIXED_EV(x) (_SND_SEQ_TYPE(SND_SEQ_EVFLG_FIXED) | _SND_SEQ_TYPE(x)) 12d5ac70f0Sopenharmony_ci#endif 13d5ac70f0Sopenharmony_ci 14d5ac70f0Sopenharmony_ci/** Event types conversion array */ 15d5ac70f0Sopenharmony_ciconst unsigned int snd_seq_event_types[256] = { 16d5ac70f0Sopenharmony_ci [SND_SEQ_EVENT_SYSTEM ... SND_SEQ_EVENT_RESULT] 17d5ac70f0Sopenharmony_ci = FIXED_EV(SND_SEQ_EVFLG_RESULT), 18d5ac70f0Sopenharmony_ci [SND_SEQ_EVENT_NOTE] 19d5ac70f0Sopenharmony_ci = FIXED_EV(SND_SEQ_EVFLG_NOTE) | _SND_SEQ_TYPE_OPT(SND_SEQ_EVFLG_NOTE_TWOARG), 20d5ac70f0Sopenharmony_ci [SND_SEQ_EVENT_NOTEON ... SND_SEQ_EVENT_KEYPRESS] 21d5ac70f0Sopenharmony_ci = FIXED_EV(SND_SEQ_EVFLG_NOTE), 22d5ac70f0Sopenharmony_ci [SND_SEQ_EVENT_CONTROLLER ... SND_SEQ_EVENT_REGPARAM] 23d5ac70f0Sopenharmony_ci = FIXED_EV(SND_SEQ_EVFLG_CONTROL), 24d5ac70f0Sopenharmony_ci [SND_SEQ_EVENT_START ... SND_SEQ_EVENT_STOP] 25d5ac70f0Sopenharmony_ci = FIXED_EV(SND_SEQ_EVFLG_QUEUE), 26d5ac70f0Sopenharmony_ci [SND_SEQ_EVENT_SETPOS_TICK] 27d5ac70f0Sopenharmony_ci = FIXED_EV(SND_SEQ_EVFLG_QUEUE) | _SND_SEQ_TYPE_OPT(SND_SEQ_EVFLG_QUEUE_TICK), 28d5ac70f0Sopenharmony_ci [SND_SEQ_EVENT_SETPOS_TIME] 29d5ac70f0Sopenharmony_ci = FIXED_EV(SND_SEQ_EVFLG_QUEUE) | _SND_SEQ_TYPE_OPT(SND_SEQ_EVFLG_QUEUE_TIME), 30d5ac70f0Sopenharmony_ci [SND_SEQ_EVENT_TEMPO ... SND_SEQ_EVENT_SYNC_POS] 31d5ac70f0Sopenharmony_ci = FIXED_EV(SND_SEQ_EVFLG_QUEUE) | _SND_SEQ_TYPE_OPT(SND_SEQ_EVFLG_QUEUE_VALUE), 32d5ac70f0Sopenharmony_ci [SND_SEQ_EVENT_TUNE_REQUEST ... SND_SEQ_EVENT_SENSING] 33d5ac70f0Sopenharmony_ci = FIXED_EV(SND_SEQ_EVFLG_NONE), 34d5ac70f0Sopenharmony_ci [SND_SEQ_EVENT_ECHO ... SND_SEQ_EVENT_OSS] 35d5ac70f0Sopenharmony_ci = FIXED_EV(SND_SEQ_EVFLG_RAW) | FIXED_EV(SND_SEQ_EVFLG_SYSTEM), 36d5ac70f0Sopenharmony_ci [SND_SEQ_EVENT_CLIENT_START ... SND_SEQ_EVENT_PORT_CHANGE] 37d5ac70f0Sopenharmony_ci = FIXED_EV(SND_SEQ_EVFLG_MESSAGE), 38d5ac70f0Sopenharmony_ci [SND_SEQ_EVENT_PORT_SUBSCRIBED ... SND_SEQ_EVENT_PORT_UNSUBSCRIBED] 39d5ac70f0Sopenharmony_ci = FIXED_EV(SND_SEQ_EVFLG_CONNECTION), 40d5ac70f0Sopenharmony_ci [SND_SEQ_EVENT_USR0 ... SND_SEQ_EVENT_USR9] 41d5ac70f0Sopenharmony_ci = FIXED_EV(SND_SEQ_EVFLG_RAW) | FIXED_EV(SND_SEQ_EVFLG_USERS), 42d5ac70f0Sopenharmony_ci [SND_SEQ_EVENT_SYSEX ... SND_SEQ_EVENT_BOUNCE] 43d5ac70f0Sopenharmony_ci = _SND_SEQ_TYPE(SND_SEQ_EVFLG_VARIABLE), 44d5ac70f0Sopenharmony_ci [SND_SEQ_EVENT_USR_VAR0 ... SND_SEQ_EVENT_USR_VAR4] 45d5ac70f0Sopenharmony_ci = _SND_SEQ_TYPE(SND_SEQ_EVFLG_VARIABLE) | _SND_SEQ_TYPE(SND_SEQ_EVFLG_USERS), 46d5ac70f0Sopenharmony_ci [SND_SEQ_EVENT_NONE] 47d5ac70f0Sopenharmony_ci = FIXED_EV(SND_SEQ_EVFLG_NONE), 48d5ac70f0Sopenharmony_ci}; 49d5ac70f0Sopenharmony_ci 50