Skip to content

WASAPI Max Output Channels = 0, but Input Channels = 2 #1130

@glowysourworm

Description

@glowysourworm
// 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.

Metadata

Metadata

Assignees

Labels

src-wasapiMS WASAPI Host API /src/hostapi/wasapi

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions