mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
Fixed thinkos in documentation (filter example)
This commit is contained in:
parent
569130159d
commit
f2175f1384
1 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue