Paul Davis wrote:

>>I'm in the process of porting a 0.5.x app to 0.9.x.  The application is 
>>Soundtracker.  In this GTK app, I was able to retrieve the file 
>>descriptor using the 'snd_seq_file_descriptor' function.  The file 
>>descriptor was then used to establish a callback to process MIDI events. 
>>
>
>btw, i wanted to note that this is a poor design. using a GUI event
>loop to process real-time MIDI input subjects the MIDI data to
>theoretically unbounded delays before it is processed. you should be
>handling MIDI input in its own thread, ideally. using the sequencer
>with timestamps makes things a bit better, but its still not ideal.
>
I don't think it's poor design... It's no design at all :-)  Anyway 
thanks for the hint.  I'll see what I can do but can you explain more on 
why using the seq. with timestamps would make things better.  ALSA 
documentation for sequencer is so thin (or I need more hours in a day) 
that it is difficult to get the idea on where it is going (client, 
subscription, port, event, etc.).  I don't have the time to read source 
code of other programs to understand how ALSA could be use in my own 
project and knowing the names of every function and parameters available 
in the library won't do no good.  

Luc


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to