[PD-dev] accessing audio hardware information

Tim Blechmann TimBlechmann at gmx.net
Sun Jan 16 11:54:59 CET 2005


hi all ...

currently i'm looking for a way to make it possible to access the
information about the audio hardware, like:

- name
- max. channels
- available hardware buffers / latency
- available samplerates

at the moment, only the name of the device can be accessed from
audio_getdevs, the other information are information on the current
audio hardware configuration of pd...

i'd prefer to add new data structures for every audio device like:
struct _audio_hardware_info
{
   char* name;
   unsigned int inchannels; /* maximum of incoming channels */
   unsigned int outchannels; /* maximum of outgoing channels */
   t_intlist samplerates; /* available samplerates */
   t_intlist buffsizes;   /* available hardware buffer sizes */
}

typedef _intlist
{
   int data;
   _intlist * next;
} t_intlist;

i'd be willing to implement these fields and api functions accessing
these data...

still, i'd like to know, if someone has another / better idea, how to
solve something like this ...

cheers ... tim

-- 
mailto:TimBlechmann at gmx.de    ICQ: 96771783
http://www.mokabar.tk

After one look at this planet any visitor from outer space 
would say "I want to see the manager."
				      William S. Burroughs




More information about the Pd-dev mailing list