Gilles Dégottex wrote:
> > > but when I flush the output, I got an error: "Invalid argument"
>     snd_seq_ev_set_direct(&ev);
>     ev.type = SND_SEQ_EVENT_NOTE;
> = 1000;

NOTE events must be sent through a queue because they need a timer so
that the NOTE_OFF event can be scheduled at the appropriate time.

When not using a queue, you have to send the NOTE_ON and NOTE_OFF
events seperately.

>     snd_seq_ev_set_subs(&ev);

I hope some other port is subscribed to this one.  :-)


This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.66&op=click
Alsa-devel mailing list

Reply via email to