| No, but you can do it in Python using ctypes. This module allows Python to interrogate any shared library (.dll or .so) and call any exported function. Ctypes also allows Python to build representations of C structures commonly used in system calls. So, you should be able to use ctypes to call functions either in the PortAudio shared library, or in the operating system libraries (winmm, dsound, alsa, or whatever).
Look at the ctypes reference in the Python library reference.
Hope this helps,
Mike
-----Original Message-----
>From: Chuckk Hubbard
>Sent: Oct 27, 2008 3:54 AM
>To: Csound List
>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"
|