pa_win_wdmks.h
Go to the documentation of this file.
#ifndef PA_WIN_WDMKS_H
#define PA_WIN_WDMKS_H
/*
* $Id$
* PortAudio Portable Real-Time Audio Library
* WDM/KS specific extensions
*
* Copyright (c) 1999-2007 Ross Bencina and Phil Burk
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/*
* The text above constitutes the entire PortAudio license; however,
* the PortAudio community also makes the following non-binding requests:
*
* Any person wishing to distribute modifications to the Software is
* requested to send the modifications to the original developer so that
* they can be incorporated into the canonical version. It is also
* requested that these non-binding requests be included along with the
* license above.
*/
#include "portaudio.h"
#include <windows.h>
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
typedef enum PaWinWDMKSFlags
{
paWinWDMKSOverrideFramesize = (1 << 0),
paWinWDMKSUseGivenChannelMask = (1 << 1),
} PaWinWDMKSFlags;
typedef struct PaWinWDMKSInfo{
unsigned long size;
PaHostApiTypeId hostApiType;
unsigned long version;
unsigned long flags;
unsigned noOfPackets;
unsigned channelMask;
} PaWinWDMKSInfo;
typedef enum PaWDMKSType
{
Type_kNotUsed,
Type_kWaveCyclic,
Type_kWaveRT,
Type_kCnt,
} PaWDMKSType;
typedef enum PaWDMKSSubType
{
SubType_kUnknown,
SubType_kNotification,
SubType_kPolled,
SubType_kCnt,
} PaWDMKSSubType;
typedef struct PaWinWDMKSDeviceInfo {
wchar_t filterPath[MAX_PATH];
wchar_t topologyPath[MAX_PATH];
PaWDMKSType streamingType;
GUID deviceProductGuid;
} PaWinWDMKSDeviceInfo;
typedef struct PaWDMKSDirectionSpecificStreamInfo
{
PaDeviceIndex device;
unsigned channels;
unsigned framesPerHostBuffer;
int endpointPinId;
int muxNodeId;
PaWDMKSSubType streamingSubType;
} PaWDMKSDirectionSpecificStreamInfo;
typedef struct PaWDMKSSpecificStreamInfo {
PaWDMKSDirectionSpecificStreamInfo input;
PaWDMKSDirectionSpecificStreamInfo output;
} PaWDMKSSpecificStreamInfo;
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* PA_WIN_DS_H */
PaWinWDMKSInfo::channelMask
unsigned channelMask
Definition: pa_win_wdmks.h:92
paWinWDMKSUseGivenChannelMask
@ paWinWDMKSUseGivenChannelMask
Definition: pa_win_wdmks.h:70
PaWinWDMKSInfo::hostApiType
PaHostApiTypeId hostApiType
Definition: pa_win_wdmks.h:76
PaHostApiTypeId
PaHostApiTypeId
Definition: portaudio.h:275
PaWDMKSDirectionSpecificStreamInfo::muxNodeId
int muxNodeId
Definition: pa_win_wdmks.h:124
PaWinWDMKSDeviceInfo::topologyPath
wchar_t topologyPath[MAX_PATH]
Definition: pa_win_wdmks.h:113
portaudio.h
The portable PortAudio API.
PaWDMKSSpecificStreamInfo
Definition: pa_win_wdmks.h:128
PaWinWDMKSInfo::size
unsigned long size
Definition: pa_win_wdmks.h:75
PaWinWDMKSInfo
Definition: pa_win_wdmks.h:74
PaWinWDMKSFlags
PaWinWDMKSFlags
Definition: pa_win_wdmks.h:60
PaWinWDMKSDeviceInfo::deviceProductGuid
GUID deviceProductGuid
Definition: pa_win_wdmks.h:115
PaWDMKSDirectionSpecificStreamInfo::streamingSubType
PaWDMKSSubType streamingSubType
Definition: pa_win_wdmks.h:125
PaWinWDMKSInfo::version
unsigned long version
Definition: pa_win_wdmks.h:77
PaWDMKSDirectionSpecificStreamInfo::framesPerHostBuffer
unsigned framesPerHostBuffer
Definition: pa_win_wdmks.h:122
PaDeviceIndex
int PaDeviceIndex
Definition: portaudio.h:212
PaWDMKSDirectionSpecificStreamInfo::endpointPinId
int endpointPinId
Definition: pa_win_wdmks.h:123
PaWinWDMKSDeviceInfo
Definition: pa_win_wdmks.h:111
paWinWDMKSOverrideFramesize
@ paWinWDMKSOverrideFramesize
Definition: pa_win_wdmks.h:65
PaWDMKSDirectionSpecificStreamInfo
Definition: pa_win_wdmks.h:118
PaWDMKSDirectionSpecificStreamInfo::channels
unsigned channels
Definition: pa_win_wdmks.h:121
PaWinWDMKSDeviceInfo::filterPath
wchar_t filterPath[MAX_PATH]
Definition: pa_win_wdmks.h:112
PaWinWDMKSInfo::flags
unsigned long flags
Definition: pa_win_wdmks.h:83
PaWinWDMKSInfo::noOfPackets
unsigned noOfPackets
Definition: pa_win_wdmks.h:86