PortAudio  2.0
Macros | Functions
pa_win_wdmks_utils.c File Reference
#include <windows.h>
#include <mmreg.h>
#include <winioctl.h>
#include <ks.h>
#include <ksmedia.h>
#include <stdio.h>
#include "portaudio.h"
#include "pa_util.h"
#include "pa_win_wdmks_utils.h"

Macros

#define WAVE_FORMAT_IEEE_FLOAT   0x0003
 
#define _WAVEFORMATEXTENSIBLE_
 
#define _INC_MMREG
 
#define pa_IS_VALID_WAVEFORMATEX_GUID(Guid)   (!memcmp(((PUSHORT)&pa_KSDATAFORMAT_SUBTYPE_WAVEFORMATEX) + 1, ((PUSHORT)(Guid)) + 1, sizeof(GUID) - sizeof(USHORT)))
 

Functions

int PaWin_WDMKS_QueryFilterMaximumChannelCount (void *wcharDevicePath, int isInput)
 

Macro Definition Documentation

#define _INC_MMREG
#define _WAVEFORMATEXTENSIBLE_
#define pa_IS_VALID_WAVEFORMATEX_GUID (   Guid)    (!memcmp(((PUSHORT)&pa_KSDATAFORMAT_SUBTYPE_WAVEFORMATEX) + 1, ((PUSHORT)(Guid)) + 1, sizeof(GUID) - sizeof(USHORT)))
#define WAVE_FORMAT_IEEE_FLOAT   0x0003

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. Declared 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 HANDLE(), pa_IS_VALID_WAVEFORMATEX_GUID, paNoError, and PaUtil_FreeMemory().