Hi all, (I'm cross posting this to the main csound list as Istvan is there (this applies to the ALSA driver and possibly csoudn5gui) as well as others who may be doing hosts that use csound) I've written code to discover cards for drivers for doing dropdowns in blue to easily pick what card to use. The code is in Java and is available at: http://www.kunstmusik.com/DriverUtils.java The code was done quickly over a few days so is a bit ugly, but it is working. For most of the drivers, I am simply running Csound with an invalid device num and then parsing the output, which one should be able to do from an API program. For ALSA, and this might of interest to add as way to enumerate devices for both audio and midi, I am parsing /proc/asound/pcm and /proc/asound/seq/clients. I did this without having had a chance to find documentation and mostly looking at what other programs showed for ALSA devices (aconnect, xmms). The assumption I used for MIDI is that ports for clients with capital "W" are writable and available for writing, and those with capital "R" are readable and available. If anyone knows if that is incorrect, please let me know. Still working on figuring out a solution for Jack (which I think may be possible to do if I just try running csound a number of times with different sample rates to match up with jackd and see if I get output, though I'm trying to find a simpler solution). Otherwise, hope this code can be useful for others. For API users, if API methods are added to iterate devices for a driver, then you can ignore this email. :P steven ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-devel