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