diff options
author | Jaroslav Kysela <perex@perex.cz> | 2004-03-23 15:15:21 +0000 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2004-03-23 15:15:21 +0000 |
commit | f2175f138424e4469e03cd08830f0ef7e84d1731 (patch) | |
tree | 33140022bc187af7e26404c4a5c9942ad6caaab8 /src/seq | |
parent | 569130159d28563c1c07bbc65499bdb1f9142397 (diff) |
Fixed thinkos in documentation (filter example)
Diffstat (limited to 'src/seq')
-rw-r--r-- | src/seq/seq.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/seq/seq.c b/src/seq/seq.c index c4754b5e..8dfaf482 100644 --- a/src/seq/seq.c +++ b/src/seq/seq.c @@ -763,15 +763,13 @@ after some modification, will appear as following: \code 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) { //.. modify input event .. snd_seq_ev_set_source(ev, my_port); snd_seq_ev_set_subs(ev); snd_seq_ev_set_direct(ev); - snd_seq_event_output(seq, &ev); + snd_seq_event_output(seq, ev); snd_seq_drain_output(seq); } } |