On Monday 24 May 2004 15:24, Clemens Ladisch wrote:
> 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.
Thanks ! that's works ! I dont know where you find this in the documentation,
if it's exist :P
Remark:
Why SND_SEQ_EVENT_NOTE event doesnt accept direct dispatching ?
technicaly, there is surely a reason, but conceptualy, I dont see. Why do a
difference ?
Best Regards,
Gilles
-------------------------------------------------------
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