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