Just to note, I do what Victor mentioned in blue, allowing the user to choose an rtaudio driver then when the press the button to query devices for that item, I use -o dac999 I think. However, I don't know if it works with ALSA and JACK so I use different code for that (it didn't use to at least, so I had to iterate manually from the OS). The Java code I wrote is here: http://bluemusic.cvs.sf.net/viewvc/bluemusic/blue/src/main/java/blue/settings/DriverUtils.java?revision=1.6&view=markup It has code to find Audio Out, Audio In, MIDI out, and MIDI in. Hope that helps! steven On Mon, Oct 27, 2008 at 2:12 AM, victor wrote: > For -+rtaudio you can just check the platform OS and the > modules for each are well-defined (ie portaudio and alsa for linux, etc). > > The only way I think is to run csound with -odac99, then parse > the message output. > > Perhaps an API function to do this might be possible, but it > will need to be implemented by the IO modules. > > Regards > > Victor > > ----- Original Message ----- From: "Chuckk Hubbard" > > To: "Csound List" > Sent: Monday, October 27, 2008 7:54 AM > Subject: [Csnd] Querying available audio devices > > >> Is there a way to do this with the API? To build a list of available >> devices to show in my app? >> I think it would have to know possible values for both -+rtaudio and >> -odac, no? >> >> -Chuckk >> -- >> http://www.badmuthahubbard.com >> >> >> Send bugs reports to this list. >> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe >> csound" > > > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe > csound" >