// WASAPI Device
PaHostApiIndex wasapiIndex = Pa_HostApiTypeIdToHostApiIndex(PaHostApiTypeId::paWASAPI);
PaDeviceIndex outputDeviceIndex;
for (PaDeviceIndex index = 0; index < Pa_GetDeviceCount(); index++)
{
const PaDeviceInfo* device = Pa_GetDeviceInfo(index);
if (device->hostApi == wasapiIndex)
{
outputDeviceIndex = index;
}
}
The resulting device info will have the output channels set as input channels.
The resulting device info will have the output channels set as input channels.