annotate win64-msvc/include/pa_win_wdmks.h @ 77:4edcd14160a5 pa_catalina

Duplicate for patch testing
author Chris Cannam
date Wed, 30 Oct 2019 11:25:10 +0000
parents 95867ba8caa8
children
rev   line source
Chris@45 1 #ifndef PA_WIN_WDMKS_H
Chris@45 2 #define PA_WIN_WDMKS_H
Chris@45 3 /*
Chris@60 4 * $Id$
Chris@45 5 * PortAudio Portable Real-Time Audio Library
Chris@45 6 * WDM/KS specific extensions
Chris@45 7 *
Chris@45 8 * Copyright (c) 1999-2007 Ross Bencina and Phil Burk
Chris@45 9 *
Chris@45 10 * Permission is hereby granted, free of charge, to any person obtaining
Chris@45 11 * a copy of this software and associated documentation files
Chris@45 12 * (the "Software"), to deal in the Software without restriction,
Chris@45 13 * including without limitation the rights to use, copy, modify, merge,
Chris@45 14 * publish, distribute, sublicense, and/or sell copies of the Software,
Chris@45 15 * and to permit persons to whom the Software is furnished to do so,
Chris@45 16 * subject to the following conditions:
Chris@45 17 *
Chris@45 18 * The above copyright notice and this permission notice shall be
Chris@45 19 * included in all copies or substantial portions of the Software.
Chris@45 20 *
Chris@45 21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
Chris@45 22 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Chris@45 23 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
Chris@45 24 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
Chris@45 25 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
Chris@45 26 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
Chris@45 27 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Chris@45 28 */
Chris@45 29
Chris@45 30 /*
Chris@45 31 * The text above constitutes the entire PortAudio license; however,
Chris@45 32 * the PortAudio community also makes the following non-binding requests:
Chris@45 33 *
Chris@45 34 * Any person wishing to distribute modifications to the Software is
Chris@45 35 * requested to send the modifications to the original developer so that
Chris@45 36 * they can be incorporated into the canonical version. It is also
Chris@45 37 * requested that these non-binding requests be included along with the
Chris@45 38 * license above.
Chris@45 39 */
Chris@45 40
Chris@45 41 /** @file
Chris@45 42 @ingroup public_header
Chris@45 43 @brief WDM Kernel Streaming-specific PortAudio API extension header file.
Chris@45 44 */
Chris@45 45
Chris@45 46
Chris@45 47 #include "portaudio.h"
Chris@45 48
Chris@45 49 #include <windows.h>
Chris@45 50
Chris@45 51 #ifdef __cplusplus
Chris@45 52 extern "C"
Chris@45 53 {
Chris@45 54 #endif /* __cplusplus */
Chris@60 55
Chris@60 56 /** Flags to indicate valid fields in PaWinWDMKSInfo.
Chris@60 57 @see PaWinWDMKSInfo
Chris@60 58 @version Available as of 19.5.0.
Chris@60 59 */
Chris@60 60 typedef enum PaWinWDMKSFlags
Chris@60 61 {
Chris@60 62 /** Makes WDMKS use the supplied latency figures instead of relying on the frame size reported
Chris@60 63 by the WaveCyclic device. Use at own risk!
Chris@60 64 */
Chris@60 65 paWinWDMKSOverrideFramesize = (1 << 0),
Chris@60 66
Chris@60 67 /** Makes WDMKS (output stream) use the given channelMask instead of the default.
Chris@60 68 @version Available as of 19.5.0.
Chris@60 69 */
Chris@60 70 paWinWDMKSUseGivenChannelMask = (1 << 1),
Chris@60 71
Chris@60 72 } PaWinWDMKSFlags;
Chris@60 73
Chris@45 74 typedef struct PaWinWDMKSInfo{
Chris@45 75 unsigned long size; /**< sizeof(PaWinWDMKSInfo) */
Chris@45 76 PaHostApiTypeId hostApiType; /**< paWDMKS */
Chris@45 77 unsigned long version; /**< 1 */
Chris@45 78
Chris@60 79 /** Flags indicate which fields are valid.
Chris@60 80 @see PaWinWDMKSFlags
Chris@60 81 @version Available as of 19.5.0.
Chris@60 82 */
Chris@60 83 unsigned long flags;
Chris@60 84
Chris@60 85 /** The number of packets to use for WaveCyclic devices, range is [2, 8]. Set to zero for default value of 2. */
Chris@45 86 unsigned noOfPackets;
Chris@60 87
Chris@60 88 /** If paWinWDMKSUseGivenChannelMask bit is set in flags, use this as channelMask instead of default.
Chris@60 89 @see PaWinWDMKSFlags
Chris@60 90 @version Available as of 19.5.0.
Chris@60 91 */
Chris@60 92 unsigned channelMask;
Chris@45 93 } PaWinWDMKSInfo;
Chris@45 94
Chris@45 95 typedef enum PaWDMKSType
Chris@45 96 {
Chris@45 97 Type_kNotUsed,
Chris@45 98 Type_kWaveCyclic,
Chris@45 99 Type_kWaveRT,
Chris@45 100 Type_kCnt,
Chris@45 101 } PaWDMKSType;
Chris@45 102
Chris@45 103 typedef enum PaWDMKSSubType
Chris@45 104 {
Chris@45 105 SubType_kUnknown,
Chris@45 106 SubType_kNotification,
Chris@45 107 SubType_kPolled,
Chris@45 108 SubType_kCnt,
Chris@45 109 } PaWDMKSSubType;
Chris@45 110
Chris@45 111 typedef struct PaWinWDMKSDeviceInfo {
Chris@45 112 wchar_t filterPath[MAX_PATH]; /**< KS filter path in Unicode! */
Chris@45 113 wchar_t topologyPath[MAX_PATH]; /**< Topology filter path in Unicode! */
Chris@45 114 PaWDMKSType streamingType;
Chris@45 115 GUID deviceProductGuid; /**< The product GUID of the device (if supported) */
Chris@45 116 } PaWinWDMKSDeviceInfo;
Chris@45 117
Chris@45 118 typedef struct PaWDMKSDirectionSpecificStreamInfo
Chris@45 119 {
Chris@45 120 PaDeviceIndex device;
Chris@45 121 unsigned channels; /**< No of channels the device is opened with */
Chris@45 122 unsigned framesPerHostBuffer; /**< No of frames of the device buffer */
Chris@45 123 int endpointPinId; /**< Endpoint pin ID (on topology filter if topologyName is not empty) */
Chris@45 124 int muxNodeId; /**< Only valid for input */
Chris@45 125 PaWDMKSSubType streamingSubType; /**< Not known until device is opened for streaming */
Chris@45 126 } PaWDMKSDirectionSpecificStreamInfo;
Chris@45 127
Chris@45 128 typedef struct PaWDMKSSpecificStreamInfo {
Chris@45 129 PaWDMKSDirectionSpecificStreamInfo input;
Chris@45 130 PaWDMKSDirectionSpecificStreamInfo output;
Chris@45 131 } PaWDMKSSpecificStreamInfo;
Chris@45 132
Chris@45 133 #ifdef __cplusplus
Chris@45 134 }
Chris@45 135 #endif /* __cplusplus */
Chris@45 136
Chris@45 137 #endif /* PA_WIN_DS_H */