PA should expose host API specific device info
A field should be added last to the PaDeviceInfo struct as follows:
Related to ticket #169
/** A structure providing information and capabilities of PortAudio devices.
Devices may support input, output or both input and output.
*/
typedef struct PaDeviceInfo
{
int structVersion; /* this is struct version 2 */
const char *name;
PaHostApiIndex hostApi; /**< note this is a host API index, not a type id*/
int maxInputChannels;
int maxOutputChannels;
/** Default latency values for interactive performance. */
PaTime defaultLowInputLatency;
PaTime defaultLowOutputLatency;
/** Default latency values for robust non-interactive applications (eg. playing sound files). */
PaTime defaultHighInputLatency;
PaTime defaultHighOutputLatency;
double defaultSampleRate;
/** A pointer to a host API specific data structure containing additional information of the
PA device for use by other applications, such as portmixer f.i. The pointer should be cast
to host API specific struct in supplied header files.
For host APIs not implementing this, hostApiSpecificDeviceInfo shall be set to NULL.
*/
const void* hostApiSpecificDeviceInfo;
} PaDeviceInfo;
Related to ticket #169
Leave a comment