On Wednesday 10 Dec 2003 12:35 pm, David Garcia Garzon wrote: > [...] > Each port has also the type bitmasks defined as follows: > SND_SEQ_PORT_TYPE_SPECIFIC Hardware specific port > SND_SEQ_PORT_TYPE_MIDI_GENERIC Generic MIDI device > SND_SEQ_PORT_TYPE_MIDI_GM General MIDI compatible device > [etc]
I am absolutely not an expert on this, but it's very similar to a question I've asked before on this list so I'll summarise my understanding of it and hope for corrections. These flags indicate what sorts of sequencer events the port expects to be able to handle. The fact that they refer to types of event rather than what the port does with those events seems to be quite an important distinction: for example, a port setting TYPE_SYNTH is saying nothing about whether it handles MIDI events or implements a MIDI synth, it's only saying that it can handle the direct synthesis class of event. Equally it appears that an application should not necessarily set TYPE_APPLICATION unless it expects application-specific events, and so on. For my purposes, the upshot was that I could not rely on these flags to find out what sort of application was implementing the port; I had hoped to test for soft synths with TYPE_SYNTH and TYPE_APPLICATION, for example, and that proved not to be possible. > - Are they merely informative? I think so. I'm just not sure who the information is for. > - Will Alsa coerce or enhance the port usage depending on that > type? I don't think so. > - Can the user see that information in any way? I don't know. I don't think it would be terribly useful though. Chris ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel