PortAudio 2.0
Functions

pa_win_wdmks_utils.h File Reference

Utilities for working with the Windows WDM KS API. More...

Go to the source code of this file.

Functions

int PaWin_WDMKS_QueryFilterMaximumChannelCount (void *wcharDevicePath, int isInput)

Detailed Description

Utilities for working with the Windows WDM KS API.


Function Documentation

int PaWin_WDMKS_QueryFilterMaximumChannelCount ( void *  wcharDevicePath,
int  isInput 
)

Query for the maximum number of channels supported by any pin of the specified device. Returns 0 if the query fails for any reason.

Parameters:
wcharDevicePathA system level PnP interface path, supplied as a WCHAR unicode string. Declard as void* to avoid introducing a dependency on wchar_t here.
isInputA flag specifying whether to query for input (non-zero) or output (zero) channels.

References KSMULTIPLE_ITEM::Count, KSDATAFORMAT::FormatSize, HANDLE(), KSDATAFORMAT_SUBTYPE_WILDCARD, KSINTERFACE_STANDARD_LOOPED_STREAMING, KSINTERFACE_STANDARD_STREAMING, KSMEDIUM_STANDARD_DEVIO, KSPIN_COMMUNICATION_BOTH, KSPIN_COMMUNICATION_SINK, KSPIN_DATAFLOW_IN, KSPIN_DATAFLOW_OUT, KSPROPERTY_PIN_DATARANGES, KSPROPERTY_PIN_INTERFACES, KSPROPERTY_PIN_MEDIUMS, KSDATAFORMAT::MajorFormat, KSDATARANGE_AUDIO::MaximumChannels, pa_IS_VALID_WAVEFORMATEX_GUID, pa_KSDATAFORMAT_SUBTYPE_IEEE_FLOAT, pa_KSDATAFORMAT_SUBTYPE_PCM, pa_KSDATAFORMAT_TYPE_AUDIO, pa_KSINTERFACESETID_Standard, pa_KSMEDIUMSETID_Standard, paNoError, PaUtil_FreeMemory(), and KSDATAFORMAT::SubFormat.