Fixed thinkos in documentation (filter example)

This commit is contained in:
Jaroslav Kysela 2004-03-23 15:15:21 +00:00
parent 569130159d
commit f2175f1384

View file

@ -763,15 +763,13 @@ after some modification, will appear as following:
\code \code
void event_filter(snd_seq_t *seq, snd_seq_event_t *ev) void event_filter(snd_seq_t *seq, snd_seq_event_t *ev)
{ {
snd_seq_event_t *ev;
while (snd_seq_event_input(seq, &ev) >= 0) { while (snd_seq_event_input(seq, &ev) >= 0) {
//.. modify input event .. //.. modify input event ..
snd_seq_ev_set_source(ev, my_port); snd_seq_ev_set_source(ev, my_port);
snd_seq_ev_set_subs(ev); snd_seq_ev_set_subs(ev);
snd_seq_ev_set_direct(ev); snd_seq_ev_set_direct(ev);
snd_seq_event_output(seq, &ev); snd_seq_event_output(seq, ev);
snd_seq_drain_output(seq); snd_seq_drain_output(seq);
} }
} }