annotate win64-msvc/include/pa_win_wdmks.h @ 48:9530b331f8c1

Add Cap'n Proto source
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 25 Oct 2016 11:17:01 +0100
parents d530e058a1c1
children 95867ba8caa8
rev   line source
Chris@45 1 #ifndef PA_WIN_WDMKS_H
Chris@45 2 #define PA_WIN_WDMKS_H
Chris@45 3 /*
Chris@45 4 * $Id: pa_win_wdmks.h 1812 2012-02-14 09:32:57Z robiwan $
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@45 55 typedef struct PaWinWDMKSInfo{
Chris@45 56 unsigned long size; /**< sizeof(PaWinWDMKSInfo) */
Chris@45 57 PaHostApiTypeId hostApiType; /**< paWDMKS */
Chris@45 58 unsigned long version; /**< 1 */
Chris@45 59
Chris@45 60 /* The number of packets to use for WaveCyclic devices, range is [2, 8]. Set to zero for default value of 2. */
Chris@45 61 unsigned noOfPackets;
Chris@45 62 } PaWinWDMKSInfo;
Chris@45 63
Chris@45 64 typedef enum PaWDMKSType
Chris@45 65 {
Chris@45 66 Type_kNotUsed,
Chris@45 67 Type_kWaveCyclic,
Chris@45 68 Type_kWaveRT,
Chris@45 69 Type_kCnt,
Chris@45 70 } PaWDMKSType;
Chris@45 71
Chris@45 72 typedef enum PaWDMKSSubType
Chris@45 73 {
Chris@45 74 SubType_kUnknown,
Chris@45 75 SubType_kNotification,
Chris@45 76 SubType_kPolled,
Chris@45 77 SubType_kCnt,
Chris@45 78 } PaWDMKSSubType;
Chris@45 79
Chris@45 80 typedef struct PaWinWDMKSDeviceInfo {
Chris@45 81 wchar_t filterPath[MAX_PATH]; /**< KS filter path in Unicode! */
Chris@45 82 wchar_t topologyPath[MAX_PATH]; /**< Topology filter path in Unicode! */
Chris@45 83 PaWDMKSType streamingType;
Chris@45 84 GUID deviceProductGuid; /**< The product GUID of the device (if supported) */
Chris@45 85 } PaWinWDMKSDeviceInfo;
Chris@45 86
Chris@45 87 typedef struct PaWDMKSDirectionSpecificStreamInfo
Chris@45 88 {
Chris@45 89 PaDeviceIndex device;
Chris@45 90 unsigned channels; /**< No of channels the device is opened with */
Chris@45 91 unsigned framesPerHostBuffer; /**< No of frames of the device buffer */
Chris@45 92 int endpointPinId; /**< Endpoint pin ID (on topology filter if topologyName is not empty) */
Chris@45 93 int muxNodeId; /**< Only valid for input */
Chris@45 94 PaWDMKSSubType streamingSubType; /**< Not known until device is opened for streaming */
Chris@45 95 } PaWDMKSDirectionSpecificStreamInfo;
Chris@45 96
Chris@45 97 typedef struct PaWDMKSSpecificStreamInfo {
Chris@45 98 PaWDMKSDirectionSpecificStreamInfo input;
Chris@45 99 PaWDMKSDirectionSpecificStreamInfo output;
Chris@45 100 } PaWDMKSSpecificStreamInfo;
Chris@45 101
Chris@45 102 #ifdef __cplusplus
Chris@45 103 }
Chris@45 104 #endif /* __cplusplus */
Chris@45 105
Chris@45 106 #endif /* PA_WIN_DS_H */