Mercurial > hg > sv-dependency-builds
comparison win64-msvc/include/pa_win_wdmks.h @ 130:1c067f014d80
64-bit MSVC builds
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 18 Oct 2016 15:59:23 +0100 |
parents | |
children | 95867ba8caa8 |
comparison
equal
deleted
inserted
replaced
129:90a976269628 | 130:1c067f014d80 |
---|---|
1 #ifndef PA_WIN_WDMKS_H | |
2 #define PA_WIN_WDMKS_H | |
3 /* | |
4 * $Id: pa_win_wdmks.h 1812 2012-02-14 09:32:57Z robiwan $ | |
5 * PortAudio Portable Real-Time Audio Library | |
6 * WDM/KS specific extensions | |
7 * | |
8 * Copyright (c) 1999-2007 Ross Bencina and Phil Burk | |
9 * | |
10 * Permission is hereby granted, free of charge, to any person obtaining | |
11 * a copy of this software and associated documentation files | |
12 * (the "Software"), to deal in the Software without restriction, | |
13 * including without limitation the rights to use, copy, modify, merge, | |
14 * publish, distribute, sublicense, and/or sell copies of the Software, | |
15 * and to permit persons to whom the Software is furnished to do so, | |
16 * subject to the following conditions: | |
17 * | |
18 * The above copyright notice and this permission notice shall be | |
19 * included in all copies or substantial portions of the Software. | |
20 * | |
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
22 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
23 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
24 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR | |
25 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF | |
26 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | |
27 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
28 */ | |
29 | |
30 /* | |
31 * The text above constitutes the entire PortAudio license; however, | |
32 * the PortAudio community also makes the following non-binding requests: | |
33 * | |
34 * Any person wishing to distribute modifications to the Software is | |
35 * requested to send the modifications to the original developer so that | |
36 * they can be incorporated into the canonical version. It is also | |
37 * requested that these non-binding requests be included along with the | |
38 * license above. | |
39 */ | |
40 | |
41 /** @file | |
42 @ingroup public_header | |
43 @brief WDM Kernel Streaming-specific PortAudio API extension header file. | |
44 */ | |
45 | |
46 | |
47 #include "portaudio.h" | |
48 | |
49 #include <windows.h> | |
50 | |
51 #ifdef __cplusplus | |
52 extern "C" | |
53 { | |
54 #endif /* __cplusplus */ | |
55 typedef struct PaWinWDMKSInfo{ | |
56 unsigned long size; /**< sizeof(PaWinWDMKSInfo) */ | |
57 PaHostApiTypeId hostApiType; /**< paWDMKS */ | |
58 unsigned long version; /**< 1 */ | |
59 | |
60 /* The number of packets to use for WaveCyclic devices, range is [2, 8]. Set to zero for default value of 2. */ | |
61 unsigned noOfPackets; | |
62 } PaWinWDMKSInfo; | |
63 | |
64 typedef enum PaWDMKSType | |
65 { | |
66 Type_kNotUsed, | |
67 Type_kWaveCyclic, | |
68 Type_kWaveRT, | |
69 Type_kCnt, | |
70 } PaWDMKSType; | |
71 | |
72 typedef enum PaWDMKSSubType | |
73 { | |
74 SubType_kUnknown, | |
75 SubType_kNotification, | |
76 SubType_kPolled, | |
77 SubType_kCnt, | |
78 } PaWDMKSSubType; | |
79 | |
80 typedef struct PaWinWDMKSDeviceInfo { | |
81 wchar_t filterPath[MAX_PATH]; /**< KS filter path in Unicode! */ | |
82 wchar_t topologyPath[MAX_PATH]; /**< Topology filter path in Unicode! */ | |
83 PaWDMKSType streamingType; | |
84 GUID deviceProductGuid; /**< The product GUID of the device (if supported) */ | |
85 } PaWinWDMKSDeviceInfo; | |
86 | |
87 typedef struct PaWDMKSDirectionSpecificStreamInfo | |
88 { | |
89 PaDeviceIndex device; | |
90 unsigned channels; /**< No of channels the device is opened with */ | |
91 unsigned framesPerHostBuffer; /**< No of frames of the device buffer */ | |
92 int endpointPinId; /**< Endpoint pin ID (on topology filter if topologyName is not empty) */ | |
93 int muxNodeId; /**< Only valid for input */ | |
94 PaWDMKSSubType streamingSubType; /**< Not known until device is opened for streaming */ | |
95 } PaWDMKSDirectionSpecificStreamInfo; | |
96 | |
97 typedef struct PaWDMKSSpecificStreamInfo { | |
98 PaWDMKSDirectionSpecificStreamInfo input; | |
99 PaWDMKSDirectionSpecificStreamInfo output; | |
100 } PaWDMKSSpecificStreamInfo; | |
101 | |
102 #ifdef __cplusplus | |
103 } | |
104 #endif /* __cplusplus */ | |
105 | |
106 #endif /* PA_WIN_DS_H */ |