Chris@63: #ifndef PA_WIN_WDMKS_H Chris@63: #define PA_WIN_WDMKS_H Chris@63: /* Chris@63: * $Id: pa_win_wdmks.h 1812 2012-02-14 09:32:57Z robiwan $ Chris@63: * PortAudio Portable Real-Time Audio Library Chris@63: * WDM/KS specific extensions Chris@63: * Chris@63: * Copyright (c) 1999-2007 Ross Bencina and Phil Burk Chris@63: * Chris@63: * Permission is hereby granted, free of charge, to any person obtaining Chris@63: * a copy of this software and associated documentation files Chris@63: * (the "Software"), to deal in the Software without restriction, Chris@63: * including without limitation the rights to use, copy, modify, merge, Chris@63: * publish, distribute, sublicense, and/or sell copies of the Software, Chris@63: * and to permit persons to whom the Software is furnished to do so, Chris@63: * subject to the following conditions: Chris@63: * Chris@63: * The above copyright notice and this permission notice shall be Chris@63: * included in all copies or substantial portions of the Software. Chris@63: * Chris@63: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, Chris@63: * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF Chris@63: * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. Chris@63: * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR Chris@63: * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF Chris@63: * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION Chris@63: * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Chris@63: */ Chris@63: Chris@63: /* Chris@63: * The text above constitutes the entire PortAudio license; however, Chris@63: * the PortAudio community also makes the following non-binding requests: Chris@63: * Chris@63: * Any person wishing to distribute modifications to the Software is Chris@63: * requested to send the modifications to the original developer so that Chris@63: * they can be incorporated into the canonical version. It is also Chris@63: * requested that these non-binding requests be included along with the Chris@63: * license above. Chris@63: */ Chris@63: Chris@63: /** @file Chris@63: @ingroup public_header Chris@63: @brief WDM Kernel Streaming-specific PortAudio API extension header file. Chris@63: */ Chris@63: Chris@63: Chris@63: #include "portaudio.h" Chris@63: Chris@63: #include Chris@63: Chris@63: #ifdef __cplusplus Chris@63: extern "C" Chris@63: { Chris@63: #endif /* __cplusplus */ Chris@63: typedef struct PaWinWDMKSInfo{ Chris@63: unsigned long size; /**< sizeof(PaWinWDMKSInfo) */ Chris@63: PaHostApiTypeId hostApiType; /**< paWDMKS */ Chris@63: unsigned long version; /**< 1 */ Chris@63: Chris@63: /* The number of packets to use for WaveCyclic devices, range is [2, 8]. Set to zero for default value of 2. */ Chris@63: unsigned noOfPackets; Chris@63: } PaWinWDMKSInfo; Chris@63: Chris@63: typedef enum PaWDMKSType Chris@63: { Chris@63: Type_kNotUsed, Chris@63: Type_kWaveCyclic, Chris@63: Type_kWaveRT, Chris@63: Type_kCnt, Chris@63: } PaWDMKSType; Chris@63: Chris@63: typedef enum PaWDMKSSubType Chris@63: { Chris@63: SubType_kUnknown, Chris@63: SubType_kNotification, Chris@63: SubType_kPolled, Chris@63: SubType_kCnt, Chris@63: } PaWDMKSSubType; Chris@63: Chris@63: typedef struct PaWinWDMKSDeviceInfo { Chris@63: wchar_t filterPath[MAX_PATH]; /**< KS filter path in Unicode! */ Chris@63: wchar_t topologyPath[MAX_PATH]; /**< Topology filter path in Unicode! */ Chris@63: PaWDMKSType streamingType; Chris@63: GUID deviceProductGuid; /**< The product GUID of the device (if supported) */ Chris@63: } PaWinWDMKSDeviceInfo; Chris@63: Chris@63: typedef struct PaWDMKSDirectionSpecificStreamInfo Chris@63: { Chris@63: PaDeviceIndex device; Chris@63: unsigned channels; /**< No of channels the device is opened with */ Chris@63: unsigned framesPerHostBuffer; /**< No of frames of the device buffer */ Chris@63: int endpointPinId; /**< Endpoint pin ID (on topology filter if topologyName is not empty) */ Chris@63: int muxNodeId; /**< Only valid for input */ Chris@63: PaWDMKSSubType streamingSubType; /**< Not known until device is opened for streaming */ Chris@63: } PaWDMKSDirectionSpecificStreamInfo; Chris@63: Chris@63: typedef struct PaWDMKSSpecificStreamInfo { Chris@63: PaWDMKSDirectionSpecificStreamInfo input; Chris@63: PaWDMKSDirectionSpecificStreamInfo output; Chris@63: } PaWDMKSSpecificStreamInfo; Chris@63: Chris@63: #ifdef __cplusplus Chris@63: } Chris@63: #endif /* __cplusplus */ Chris@63: Chris@63: #endif /* PA_WIN_DS_H */