Lines Matching defs:ev
114 snd_seq_event_t ev;
116 bzero(&ev, sizeof(ev));
117 ev.queue = queue;
118 ev.source.client = ev.dest.client = client;
119 ev.source.port = ev.dest.port = port;
120 ev.flags = SND_SEQ_TIME_STAMP_REAL | SND_SEQ_TIME_MODE_ABS;
121 ev.time.time.tv_sec = *time; (*time)++;
122 ev.type = SND_SEQ_EVENT_ECHO;
123 if ((err = snd_seq_event_output(handle, &ev))<0)
125 ev.dest = *dest;
126 ev.type = SND_SEQ_EVENT_PGMCHANGE;
127 ev.data.control.channel = 0;
128 ev.data.control.value = 16;
129 if ((err = snd_seq_event_output(handle, &ev))<0)
131 ev.type = SND_SEQ_EVENT_NOTE;
132 ev.data.note.channel = 0;
133 ev.data.note.note = 64 + (queue*2);
134 ev.data.note.velocity = 127;
135 ev.data.note.off_velocity = 127;
136 ev.data.note.duration = 500; /* 0.5sec */
137 if ((err = snd_seq_event_output(handle, &ev))<0)
145 snd_seq_event_t *ev;
261 if ((err = snd_seq_event_input(handle, &ev))<0)
263 if (!ev)
265 if (ev->type == SND_SEQ_EVENT_ECHO)
267 decode_event(ev);
268 snd_seq_free_event(ev);