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;
>     ev.data.note.duration = 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.  :-)


HTH
Clemens





-------------------------------------------------------
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.
http://ads.osdn.com/?ad_id149&alloc_id66&op=click
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to