[Portaudio] Re : Shouldn't this be 3 ?
sqweek at gmail.com
Tue Dec 15 20:56:34 EST 2015
On 16 December 2015 at 08:11, Alberto di Bene <dibene at usa.net> wrote:
> If that value is an index, it's an index into which table ?
If you check portaudio.h you'll notice:
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*/
Note the index even has a different type - PaHostApiIndex rather than
PaHostApiTypeId. If you search for the Index type it's easy to see
that this is an index into the table behind the Pa_GetHostApiCount and
If your goal is to look for devices via a specific host API, you may
be interested in the Pa_HostApiTypeIdToHostApiIndex function.
More information about the Portaudio