On Oct 18 Ricardo Colon wrote: >I'm trying to implement a library to run on top of ALSA which is only >designed to support one-way devices... a duplex device would be treated >as separate input and output devices, like in Windows, and it seems like >there aren't any elegant ways to do it.
you keep track of the opened devices in your lib already, don't you? so if a device gets opened a second time for a different kind of access (r vs w) i do not see what keeps you from reusing the file descriptor? another way would be to use the ALSA MIDI routing services that afaik allow you to connect to the same device multiple times. this way your library could connect to a lot more than just MIDI i/o ports. hth, tim _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel