Brian Victor wrote: > Are there any documented guidelines on how to make use of ALSA > (especially MIDI) functions?
This is one of the parts still missing from the documentation. Well, there are example programs ... > For example, when using ALSA data type foo, the standard seems to be to > call snd_seq_alloc_foo, manipulate foo as desired, then call > snd_seq_free_foo. This is easy enough, but sometimes (as in the case of > queue), there is also a create function; how does this differ from > alloc, and is it necessary? The data type holds properties of the object, but it's only used to communicate between the application and the ALSA library. The create function creates the actual object in the kernel. > Also, what is the relationship between buffers and queues? Buffers are used to send or receive events to/from the kernel sequencer, which is responsible for routing them to/from other clients. It's an internal optimization; usually, you don't have to care about them. Queues are used to connect two ports and to schedule events to be sent at a specific time. This can be used to play MIDI files (see alsa-lib/test/playmidi1). HTH Clemens ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel