annotate lib/legacy_dx/dvoice.h @ 900:4dc2252e0b03

CharacterUI_StatsTab_ShowHint fixed
author Ritor1
date Fri, 19 Apr 2013 17:01:55 +0600
parents 9c0607679772
children
rev   line source
0
Ritor1
parents:
diff changeset
1 /*==========================================================================;
Ritor1
parents:
diff changeset
2 *
Ritor1
parents:
diff changeset
3 * Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
Ritor1
parents:
diff changeset
4 *
Ritor1
parents:
diff changeset
5 * File: dpvoice.h
Ritor1
parents:
diff changeset
6 * Content: DirectPlayVoice include file
Ritor1
parents:
diff changeset
7 ***************************************************************************/
Ritor1
parents:
diff changeset
8
Ritor1
parents:
diff changeset
9 #ifndef __DVOICE__
Ritor1
parents:
diff changeset
10 #define __DVOICE__
Ritor1
parents:
diff changeset
11
Ritor1
parents:
diff changeset
12 #include <ole2.h> // for DECLARE_INTERFACE and HRESULT
Ritor1
parents:
diff changeset
13 #include <mmsystem.h>
Ritor1
parents:
diff changeset
14 #include <mmreg.h>
Ritor1
parents:
diff changeset
15 #include <msacm.h>
Ritor1
parents:
diff changeset
16 #include "dsound.h"
Ritor1
parents:
diff changeset
17
Ritor1
parents:
diff changeset
18 #ifdef __cplusplus
Ritor1
parents:
diff changeset
19 extern "C" {
Ritor1
parents:
diff changeset
20 #endif
Ritor1
parents:
diff changeset
21
Ritor1
parents:
diff changeset
22
Ritor1
parents:
diff changeset
23 /****************************************************************************
Ritor1
parents:
diff changeset
24 *
Ritor1
parents:
diff changeset
25 * DirectPlayVoice CLSIDs
Ritor1
parents:
diff changeset
26 *
Ritor1
parents:
diff changeset
27 ****************************************************************************/
Ritor1
parents:
diff changeset
28
Ritor1
parents:
diff changeset
29
Ritor1
parents:
diff changeset
30 // {B9F3EB85-B781-4ac1-8D90-93A05EE37D7D}
Ritor1
parents:
diff changeset
31 DEFINE_GUID(CLSID_DirectPlayVoiceClient,
Ritor1
parents:
diff changeset
32 0xb9f3eb85, 0xb781, 0x4ac1, 0x8d, 0x90, 0x93, 0xa0, 0x5e, 0xe3, 0x7d, 0x7d);
Ritor1
parents:
diff changeset
33
Ritor1
parents:
diff changeset
34 // {D3F5B8E6-9B78-4a4c-94EA-CA2397B663D3}
Ritor1
parents:
diff changeset
35 DEFINE_GUID(CLSID_DirectPlayVoiceServer,
Ritor1
parents:
diff changeset
36 0xd3f5b8e6, 0x9b78, 0x4a4c, 0x94, 0xea, 0xca, 0x23, 0x97, 0xb6, 0x63, 0xd3);
Ritor1
parents:
diff changeset
37
Ritor1
parents:
diff changeset
38 // {0F0F094B-B01C-4091-A14D-DD0CD807711A}
Ritor1
parents:
diff changeset
39 DEFINE_GUID(CLSID_DirectPlayVoiceTest,
Ritor1
parents:
diff changeset
40 0xf0f094b, 0xb01c, 0x4091, 0xa1, 0x4d, 0xdd, 0xc, 0xd8, 0x7, 0x71, 0x1a);
Ritor1
parents:
diff changeset
41
Ritor1
parents:
diff changeset
42 /****************************************************************************
Ritor1
parents:
diff changeset
43 *
Ritor1
parents:
diff changeset
44 * DirectPlayVoice Interface IIDs
Ritor1
parents:
diff changeset
45 *
Ritor1
parents:
diff changeset
46 ****************************************************************************/
Ritor1
parents:
diff changeset
47
Ritor1
parents:
diff changeset
48
Ritor1
parents:
diff changeset
49 // {1DFDC8EA-BCF7-41d6-B295-AB64B3B23306}
Ritor1
parents:
diff changeset
50 DEFINE_GUID(IID_IDirectPlayVoiceClient,
Ritor1
parents:
diff changeset
51 0x1dfdc8ea, 0xbcf7, 0x41d6, 0xb2, 0x95, 0xab, 0x64, 0xb3, 0xb2, 0x33, 0x6);
Ritor1
parents:
diff changeset
52
Ritor1
parents:
diff changeset
53 // {FAA1C173-0468-43b6-8A2A-EA8A4F2076C9}
Ritor1
parents:
diff changeset
54 DEFINE_GUID(IID_IDirectPlayVoiceServer,
Ritor1
parents:
diff changeset
55 0xfaa1c173, 0x468, 0x43b6, 0x8a, 0x2a, 0xea, 0x8a, 0x4f, 0x20, 0x76, 0xc9);
Ritor1
parents:
diff changeset
56
Ritor1
parents:
diff changeset
57 // {D26AF734-208B-41da-8224-E0CE79810BE1}
Ritor1
parents:
diff changeset
58 DEFINE_GUID(IID_IDirectPlayVoiceTest,
Ritor1
parents:
diff changeset
59 0xd26af734, 0x208b, 0x41da, 0x82, 0x24, 0xe0, 0xce, 0x79, 0x81, 0xb, 0xe1);
Ritor1
parents:
diff changeset
60
Ritor1
parents:
diff changeset
61 /****************************************************************************
Ritor1
parents:
diff changeset
62 *
Ritor1
parents:
diff changeset
63 * DirectPlayVoice Compression Type GUIDs
Ritor1
parents:
diff changeset
64 *
Ritor1
parents:
diff changeset
65 ****************************************************************************/
Ritor1
parents:
diff changeset
66
Ritor1
parents:
diff changeset
67 // MS-ADPCM 32.8 kbit/s
Ritor1
parents:
diff changeset
68 //
Ritor1
parents:
diff changeset
69 // {699B52C1-A885-46a8-A308-97172419ADC7}
Ritor1
parents:
diff changeset
70 DEFINE_GUID(DPVCTGUID_ADPCM,
Ritor1
parents:
diff changeset
71 0x699b52c1, 0xa885, 0x46a8, 0xa3, 0x8, 0x97, 0x17, 0x24, 0x19, 0xad, 0xc7);
Ritor1
parents:
diff changeset
72
Ritor1
parents:
diff changeset
73 // Microsoft GSM 6.10 13 kbit/s
Ritor1
parents:
diff changeset
74 //
Ritor1
parents:
diff changeset
75 // {24768C60-5A0D-11d3-9BE4-525400D985E7}
Ritor1
parents:
diff changeset
76 DEFINE_GUID(DPVCTGUID_GSM,
Ritor1
parents:
diff changeset
77 0x24768c60, 0x5a0d, 0x11d3, 0x9b, 0xe4, 0x52, 0x54, 0x0, 0xd9, 0x85, 0xe7);
Ritor1
parents:
diff changeset
78
Ritor1
parents:
diff changeset
79 // MS-PCM 64 kbit/s
Ritor1
parents:
diff changeset
80 //
Ritor1
parents:
diff changeset
81 // {8DE12FD4-7CB3-48ce-A7E8-9C47A22E8AC5}
Ritor1
parents:
diff changeset
82 DEFINE_GUID(DPVCTGUID_NONE,
Ritor1
parents:
diff changeset
83 0x8de12fd4, 0x7cb3, 0x48ce, 0xa7, 0xe8, 0x9c, 0x47, 0xa2, 0x2e, 0x8a, 0xc5);
Ritor1
parents:
diff changeset
84
Ritor1
parents:
diff changeset
85 // Voxware SC03 3.2kbit/s
Ritor1
parents:
diff changeset
86 //
Ritor1
parents:
diff changeset
87 // {7D82A29B-2242-4f82-8F39-5D1153DF3E41}
Ritor1
parents:
diff changeset
88 DEFINE_GUID(DPVCTGUID_SC03,
Ritor1
parents:
diff changeset
89 0x7d82a29b, 0x2242, 0x4f82, 0x8f, 0x39, 0x5d, 0x11, 0x53, 0xdf, 0x3e, 0x41);
Ritor1
parents:
diff changeset
90
Ritor1
parents:
diff changeset
91 // Voxware SC06 6.4kbit/s
Ritor1
parents:
diff changeset
92 //
Ritor1
parents:
diff changeset
93 // {53DEF900-7168-4633-B47F-D143916A13C7}
Ritor1
parents:
diff changeset
94 DEFINE_GUID(DPVCTGUID_SC06,
Ritor1
parents:
diff changeset
95 0x53def900, 0x7168, 0x4633, 0xb4, 0x7f, 0xd1, 0x43, 0x91, 0x6a, 0x13, 0xc7);
Ritor1
parents:
diff changeset
96
Ritor1
parents:
diff changeset
97 // TrueSpeech(TM) 8.6 kbit/s
Ritor1
parents:
diff changeset
98 //
Ritor1
parents:
diff changeset
99 // {D7954361-5A0B-11d3-9BE4-525400D985E7}
Ritor1
parents:
diff changeset
100 DEFINE_GUID(DPVCTGUID_TRUESPEECH,
Ritor1
parents:
diff changeset
101 0xd7954361, 0x5a0b, 0x11d3, 0x9b, 0xe4, 0x52, 0x54, 0x0, 0xd9, 0x85, 0xe7);
Ritor1
parents:
diff changeset
102
Ritor1
parents:
diff changeset
103 // Voxware VR12 1.4kbit/s
Ritor1
parents:
diff changeset
104 //
Ritor1
parents:
diff changeset
105 // {FE44A9FE-8ED4-48bf-9D66-1B1ADFF9FF6D}
Ritor1
parents:
diff changeset
106 DEFINE_GUID(DPVCTGUID_VR12,
Ritor1
parents:
diff changeset
107 0xfe44a9fe, 0x8ed4, 0x48bf, 0x9d, 0x66, 0x1b, 0x1a, 0xdf, 0xf9, 0xff, 0x6d);
Ritor1
parents:
diff changeset
108
Ritor1
parents:
diff changeset
109 // Define the default compression type
Ritor1
parents:
diff changeset
110 #define DPVCTGUID_DEFAULT DPVCTGUID_SC03
Ritor1
parents:
diff changeset
111
Ritor1
parents:
diff changeset
112 /****************************************************************************
Ritor1
parents:
diff changeset
113 *
Ritor1
parents:
diff changeset
114 * DirectPlayVoice Interface Pointer definitions
Ritor1
parents:
diff changeset
115 *
Ritor1
parents:
diff changeset
116 ****************************************************************************/
Ritor1
parents:
diff changeset
117
Ritor1
parents:
diff changeset
118 typedef struct IDirectPlayVoiceClient FAR *LPDIRECTPLAYVOICECLIENT, *PDIRECTPLAYVOICECLIENT;
Ritor1
parents:
diff changeset
119 typedef struct IDirectPlayVoiceServer FAR *LPDIRECTPLAYVOICESERVER, *PDIRECTPLAYVOICESERVER;
Ritor1
parents:
diff changeset
120 typedef struct IDirectPlayVoiceTest FAR *LPDIRECTPLAYVOICETEST, *PDIRECTPLAYVOICETEST;
Ritor1
parents:
diff changeset
121
Ritor1
parents:
diff changeset
122 /****************************************************************************
Ritor1
parents:
diff changeset
123 *
Ritor1
parents:
diff changeset
124 * DirectPlayVoice Callback Functions
Ritor1
parents:
diff changeset
125 *
Ritor1
parents:
diff changeset
126 ****************************************************************************/
Ritor1
parents:
diff changeset
127 typedef HRESULT (FAR PASCAL *PDVMESSAGEHANDLER)(
Ritor1
parents:
diff changeset
128 PVOID pvUserContext,
Ritor1
parents:
diff changeset
129 DWORD dwMessageType,
Ritor1
parents:
diff changeset
130 LPVOID lpMessage
Ritor1
parents:
diff changeset
131 );
Ritor1
parents:
diff changeset
132
Ritor1
parents:
diff changeset
133 typedef PDVMESSAGEHANDLER LPDVMESSAGEHANDLER;
Ritor1
parents:
diff changeset
134
Ritor1
parents:
diff changeset
135 /****************************************************************************
Ritor1
parents:
diff changeset
136 *
Ritor1
parents:
diff changeset
137 * DirectPlayVoice Datatypes (Non-Structure / Non-Message)
Ritor1
parents:
diff changeset
138 *
Ritor1
parents:
diff changeset
139 ****************************************************************************/
Ritor1
parents:
diff changeset
140
Ritor1
parents:
diff changeset
141 typedef DWORD DVID, *LPDVID, *PDVID;
Ritor1
parents:
diff changeset
142
Ritor1
parents:
diff changeset
143 /****************************************************************************
Ritor1
parents:
diff changeset
144 *
Ritor1
parents:
diff changeset
145 * DirectPlayVoice Message Types
Ritor1
parents:
diff changeset
146 *
Ritor1
parents:
diff changeset
147 ****************************************************************************/
Ritor1
parents:
diff changeset
148
Ritor1
parents:
diff changeset
149 #define DVMSGID_BASE 0x0000
Ritor1
parents:
diff changeset
150
Ritor1
parents:
diff changeset
151 #define DVMSGID_MINBASE (DVMSGID_CREATEVOICEPLAYER)
Ritor1
parents:
diff changeset
152 #define DVMSGID_CREATEVOICEPLAYER (DVMSGID_BASE+0x0001)
Ritor1
parents:
diff changeset
153 #define DVMSGID_DELETEVOICEPLAYER (DVMSGID_BASE+0x0002)
Ritor1
parents:
diff changeset
154 #define DVMSGID_SESSIONLOST (DVMSGID_BASE+0x0003)
Ritor1
parents:
diff changeset
155 #define DVMSGID_PLAYERVOICESTART (DVMSGID_BASE+0x0004)
Ritor1
parents:
diff changeset
156 #define DVMSGID_PLAYERVOICESTOP (DVMSGID_BASE+0x0005)
Ritor1
parents:
diff changeset
157 #define DVMSGID_RECORDSTART (DVMSGID_BASE+0x0006)
Ritor1
parents:
diff changeset
158 #define DVMSGID_RECORDSTOP (DVMSGID_BASE+0x0007)
Ritor1
parents:
diff changeset
159 #define DVMSGID_CONNECTRESULT (DVMSGID_BASE+0x0008)
Ritor1
parents:
diff changeset
160 #define DVMSGID_DISCONNECTRESULT (DVMSGID_BASE+0x0009)
Ritor1
parents:
diff changeset
161 #define DVMSGID_INPUTLEVEL (DVMSGID_BASE+0x000A)
Ritor1
parents:
diff changeset
162 #define DVMSGID_OUTPUTLEVEL (DVMSGID_BASE+0x000B)
Ritor1
parents:
diff changeset
163 #define DVMSGID_HOSTMIGRATED (DVMSGID_BASE+0x000C)
Ritor1
parents:
diff changeset
164 #define DVMSGID_SETTARGETS (DVMSGID_BASE+0x000D)
Ritor1
parents:
diff changeset
165 #define DVMSGID_PLAYEROUTPUTLEVEL (DVMSGID_BASE+0x000E)
Ritor1
parents:
diff changeset
166 #define DVMSGID_LOSTFOCUS (DVMSGID_BASE+0x0010)
Ritor1
parents:
diff changeset
167 #define DVMSGID_GAINFOCUS (DVMSGID_BASE+0x0011)
Ritor1
parents:
diff changeset
168 #define DVMSGID_LOCALHOSTSETUP (DVMSGID_BASE+0x0012)
Ritor1
parents:
diff changeset
169 #define DVMSGID_MAXBASE (DVMSGID_LOCALHOSTSETUP)
Ritor1
parents:
diff changeset
170
Ritor1
parents:
diff changeset
171 /****************************************************************************
Ritor1
parents:
diff changeset
172 *
Ritor1
parents:
diff changeset
173 * DirectPlayVoice Constants
Ritor1
parents:
diff changeset
174 *
Ritor1
parents:
diff changeset
175 ****************************************************************************/
Ritor1
parents:
diff changeset
176
Ritor1
parents:
diff changeset
177 //
Ritor1
parents:
diff changeset
178 // Buffer Aggresiveness Value Ranges
Ritor1
parents:
diff changeset
179 //
Ritor1
parents:
diff changeset
180 #define DVBUFFERAGGRESSIVENESS_MIN 0x00000001
Ritor1
parents:
diff changeset
181 #define DVBUFFERAGGRESSIVENESS_MAX 0x00000064
Ritor1
parents:
diff changeset
182 #define DVBUFFERAGGRESSIVENESS_DEFAULT 0x00000000
Ritor1
parents:
diff changeset
183
Ritor1
parents:
diff changeset
184 //
Ritor1
parents:
diff changeset
185 // Buffer Quality Value Ranges
Ritor1
parents:
diff changeset
186 //
Ritor1
parents:
diff changeset
187 #define DVBUFFERQUALITY_MIN 0x00000001
Ritor1
parents:
diff changeset
188 #define DVBUFFERQUALITY_MAX 0x00000064
Ritor1
parents:
diff changeset
189 #define DVBUFFERQUALITY_DEFAULT 0x00000000
Ritor1
parents:
diff changeset
190
Ritor1
parents:
diff changeset
191 #define DVID_SYS 0
Ritor1
parents:
diff changeset
192
Ritor1
parents:
diff changeset
193 //
Ritor1
parents:
diff changeset
194 // Used to identify the session host in client/server
Ritor1
parents:
diff changeset
195 //
Ritor1
parents:
diff changeset
196 #define DVID_SERVERPLAYER 1
Ritor1
parents:
diff changeset
197
Ritor1
parents:
diff changeset
198 //
Ritor1
parents:
diff changeset
199 // Used to target all players
Ritor1
parents:
diff changeset
200 //
Ritor1
parents:
diff changeset
201 #define DVID_ALLPLAYERS 0
Ritor1
parents:
diff changeset
202
Ritor1
parents:
diff changeset
203 //
Ritor1
parents:
diff changeset
204 // Used to identify the main buffer
Ritor1
parents:
diff changeset
205 //
Ritor1
parents:
diff changeset
206 #define DVID_REMAINING 0xFFFFFFFF
Ritor1
parents:
diff changeset
207
Ritor1
parents:
diff changeset
208 //
Ritor1
parents:
diff changeset
209 // Input level range
Ritor1
parents:
diff changeset
210 //
Ritor1
parents:
diff changeset
211 #define DVINPUTLEVEL_MIN 0x00000000
Ritor1
parents:
diff changeset
212 #define DVINPUTLEVEL_MAX 0x00000063 // 99 decimal
Ritor1
parents:
diff changeset
213
Ritor1
parents:
diff changeset
214 #define DVNOTIFYPERIOD_MINPERIOD 20
Ritor1
parents:
diff changeset
215
Ritor1
parents:
diff changeset
216
Ritor1
parents:
diff changeset
217 #define DVPLAYBACKVOLUME_DEFAULT DSBVOLUME_MAX
Ritor1
parents:
diff changeset
218
Ritor1
parents:
diff changeset
219 #define DVRECORDVOLUME_LAST 0x00000001
Ritor1
parents:
diff changeset
220
Ritor1
parents:
diff changeset
221
Ritor1
parents:
diff changeset
222 //
Ritor1
parents:
diff changeset
223 // Use the default value
Ritor1
parents:
diff changeset
224 //
Ritor1
parents:
diff changeset
225 #define DVTHRESHOLD_DEFAULT 0xFFFFFFFF
Ritor1
parents:
diff changeset
226
Ritor1
parents:
diff changeset
227 //
Ritor1
parents:
diff changeset
228 // Threshold Ranges
Ritor1
parents:
diff changeset
229 //
Ritor1
parents:
diff changeset
230 #define DVTHRESHOLD_MIN 0x00000000
Ritor1
parents:
diff changeset
231 #define DVTHRESHOLD_MAX 0x00000063 // 99 decimal
Ritor1
parents:
diff changeset
232
Ritor1
parents:
diff changeset
233 //
Ritor1
parents:
diff changeset
234 // Threshold field is not used
Ritor1
parents:
diff changeset
235 //
Ritor1
parents:
diff changeset
236 #define DVTHRESHOLD_UNUSED 0xFFFFFFFE
Ritor1
parents:
diff changeset
237
Ritor1
parents:
diff changeset
238 //
Ritor1
parents:
diff changeset
239 // Session Types
Ritor1
parents:
diff changeset
240 //
Ritor1
parents:
diff changeset
241 #define DVSESSIONTYPE_PEER 0x00000001
Ritor1
parents:
diff changeset
242 #define DVSESSIONTYPE_MIXING 0x00000002
Ritor1
parents:
diff changeset
243 #define DVSESSIONTYPE_FORWARDING 0x00000003
Ritor1
parents:
diff changeset
244 #define DVSESSIONTYPE_ECHO 0x00000004
Ritor1
parents:
diff changeset
245
Ritor1
parents:
diff changeset
246 /****************************************************************************
Ritor1
parents:
diff changeset
247 *
Ritor1
parents:
diff changeset
248 * DirectPlayVoice Flags
Ritor1
parents:
diff changeset
249 *
Ritor1
parents:
diff changeset
250 ****************************************************************************/
Ritor1
parents:
diff changeset
251
Ritor1
parents:
diff changeset
252
Ritor1
parents:
diff changeset
253 //
Ritor1
parents:
diff changeset
254 // Enable automatic adjustment of the recording volume
Ritor1
parents:
diff changeset
255 //
Ritor1
parents:
diff changeset
256 #define DVCLIENTCONFIG_AUTORECORDVOLUME 0x00000008
Ritor1
parents:
diff changeset
257
Ritor1
parents:
diff changeset
258 //
Ritor1
parents:
diff changeset
259 // Enable automatic voice activation
Ritor1
parents:
diff changeset
260 //
Ritor1
parents:
diff changeset
261 #define DVCLIENTCONFIG_AUTOVOICEACTIVATED 0x00000020
Ritor1
parents:
diff changeset
262
Ritor1
parents:
diff changeset
263 //
Ritor1
parents:
diff changeset
264 // Enable echo suppression
Ritor1
parents:
diff changeset
265 //
Ritor1
parents:
diff changeset
266 #define DVCLIENTCONFIG_ECHOSUPPRESSION 0x08000000
Ritor1
parents:
diff changeset
267
Ritor1
parents:
diff changeset
268 //
Ritor1
parents:
diff changeset
269 // Voice Activation manual mode
Ritor1
parents:
diff changeset
270 //
Ritor1
parents:
diff changeset
271 #define DVCLIENTCONFIG_MANUALVOICEACTIVATED 0x00000004
Ritor1
parents:
diff changeset
272
Ritor1
parents:
diff changeset
273 //
Ritor1
parents:
diff changeset
274 // Only playback voices that have buffers created for them
Ritor1
parents:
diff changeset
275 //
Ritor1
parents:
diff changeset
276 #define DVCLIENTCONFIG_MUTEGLOBAL 0x00000010
Ritor1
parents:
diff changeset
277
Ritor1
parents:
diff changeset
278 //
Ritor1
parents:
diff changeset
279 // Mute the playback
Ritor1
parents:
diff changeset
280 //
Ritor1
parents:
diff changeset
281 #define DVCLIENTCONFIG_PLAYBACKMUTE 0x00000002
Ritor1
parents:
diff changeset
282
Ritor1
parents:
diff changeset
283 //
Ritor1
parents:
diff changeset
284 // Mute the recording
Ritor1
parents:
diff changeset
285 //
Ritor1
parents:
diff changeset
286 #define DVCLIENTCONFIG_RECORDMUTE 0x00000001
Ritor1
parents:
diff changeset
287
Ritor1
parents:
diff changeset
288 //
Ritor1
parents:
diff changeset
289 // Complete the operation before returning
Ritor1
parents:
diff changeset
290 //
Ritor1
parents:
diff changeset
291 #define DVFLAGS_SYNC 0x00000001
Ritor1
parents:
diff changeset
292
Ritor1
parents:
diff changeset
293 //
Ritor1
parents:
diff changeset
294 // Just check to see if wizard has been run, and if so what it's results were
Ritor1
parents:
diff changeset
295 //
Ritor1
parents:
diff changeset
296 #define DVFLAGS_QUERYONLY 0x00000002
Ritor1
parents:
diff changeset
297
Ritor1
parents:
diff changeset
298 //
Ritor1
parents:
diff changeset
299 // Shutdown the voice session without migrating the host
Ritor1
parents:
diff changeset
300 //
Ritor1
parents:
diff changeset
301 #define DVFLAGS_NOHOSTMIGRATE 0x00000008
Ritor1
parents:
diff changeset
302
Ritor1
parents:
diff changeset
303 //
Ritor1
parents:
diff changeset
304 // Allow the back button to be enabled in the wizard
Ritor1
parents:
diff changeset
305 //
Ritor1
parents:
diff changeset
306 #define DVFLAGS_ALLOWBACK 0x00000010
Ritor1
parents:
diff changeset
307
Ritor1
parents:
diff changeset
308 //
Ritor1
parents:
diff changeset
309 // Disable host migration in the voice session
Ritor1
parents:
diff changeset
310 //
Ritor1
parents:
diff changeset
311 #define DVSESSION_NOHOSTMIGRATION 0x00000001
Ritor1
parents:
diff changeset
312
Ritor1
parents:
diff changeset
313 //
Ritor1
parents:
diff changeset
314 // Server controlled targetting
Ritor1
parents:
diff changeset
315 //
Ritor1
parents:
diff changeset
316 #define DVSESSION_SERVERCONTROLTARGET 0x00000002
Ritor1
parents:
diff changeset
317
Ritor1
parents:
diff changeset
318 //
Ritor1
parents:
diff changeset
319 // Use DirectSound Normal Mode instead of priority
Ritor1
parents:
diff changeset
320 //
Ritor1
parents:
diff changeset
321 #define DVSOUNDCONFIG_NORMALMODE 0x00000001
Ritor1
parents:
diff changeset
322
Ritor1
parents:
diff changeset
323 //
Ritor1
parents:
diff changeset
324 // Automatically select the microphone
Ritor1
parents:
diff changeset
325 //
Ritor1
parents:
diff changeset
326 #define DVSOUNDCONFIG_AUTOSELECT 0x00000002
Ritor1
parents:
diff changeset
327
Ritor1
parents:
diff changeset
328 //
Ritor1
parents:
diff changeset
329 // Run in half duplex mode
Ritor1
parents:
diff changeset
330 //
Ritor1
parents:
diff changeset
331 #define DVSOUNDCONFIG_HALFDUPLEX 0x00000004
Ritor1
parents:
diff changeset
332
Ritor1
parents:
diff changeset
333 //
Ritor1
parents:
diff changeset
334 // No volume controls are available for the recording device
Ritor1
parents:
diff changeset
335 //
Ritor1
parents:
diff changeset
336 #define DVSOUNDCONFIG_NORECVOLAVAILABLE 0x00000010
Ritor1
parents:
diff changeset
337
Ritor1
parents:
diff changeset
338 //
Ritor1
parents:
diff changeset
339 // Disable capture sharing
Ritor1
parents:
diff changeset
340 //
Ritor1
parents:
diff changeset
341 #define DVSOUNDCONFIG_NOFOCUS 0x20000000
Ritor1
parents:
diff changeset
342
Ritor1
parents:
diff changeset
343 //
Ritor1
parents:
diff changeset
344 // Set system conversion quality to high
Ritor1
parents:
diff changeset
345 //
Ritor1
parents:
diff changeset
346 #define DVSOUNDCONFIG_SETCONVERSIONQUALITY 0x00000008
Ritor1
parents:
diff changeset
347
Ritor1
parents:
diff changeset
348 //
Ritor1
parents:
diff changeset
349 // Enable strict focus mode
Ritor1
parents:
diff changeset
350 //
Ritor1
parents:
diff changeset
351 #define DVSOUNDCONFIG_STRICTFOCUS 0x40000000
Ritor1
parents:
diff changeset
352
Ritor1
parents:
diff changeset
353 //
Ritor1
parents:
diff changeset
354 // Player is in half duplex mode
Ritor1
parents:
diff changeset
355 //
Ritor1
parents:
diff changeset
356 #define DVPLAYERCAPS_HALFDUPLEX 0x00000001
Ritor1
parents:
diff changeset
357
Ritor1
parents:
diff changeset
358 //
Ritor1
parents:
diff changeset
359 // Specifies that player is the local player
Ritor1
parents:
diff changeset
360 //
Ritor1
parents:
diff changeset
361 #define DVPLAYERCAPS_LOCAL 0x00000002
Ritor1
parents:
diff changeset
362
Ritor1
parents:
diff changeset
363 /****************************************************************************
Ritor1
parents:
diff changeset
364 *
Ritor1
parents:
diff changeset
365 * DirectPlayVoice Structures (Non-Message)
Ritor1
parents:
diff changeset
366 *
Ritor1
parents:
diff changeset
367 ****************************************************************************/
Ritor1
parents:
diff changeset
368
Ritor1
parents:
diff changeset
369
Ritor1
parents:
diff changeset
370 //
Ritor1
parents:
diff changeset
371 // DirectPlayVoice Caps
Ritor1
parents:
diff changeset
372 // (GetCaps / SetCaps)
Ritor1
parents:
diff changeset
373 //
Ritor1
parents:
diff changeset
374 typedef struct
Ritor1
parents:
diff changeset
375 {
Ritor1
parents:
diff changeset
376 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
377 DWORD dwFlags; // Caps flags
Ritor1
parents:
diff changeset
378 } DVCAPS, *LPDVCAPS, *PDVCAPS;
Ritor1
parents:
diff changeset
379
Ritor1
parents:
diff changeset
380 //
Ritor1
parents:
diff changeset
381 // DirectPlayVoice Client Configuration
Ritor1
parents:
diff changeset
382 // (Connect / GetClientConfig)
Ritor1
parents:
diff changeset
383 //
Ritor1
parents:
diff changeset
384 typedef struct
Ritor1
parents:
diff changeset
385 {
Ritor1
parents:
diff changeset
386 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
387 DWORD dwFlags; // Flags for client config (DVCLIENTCONFIG_...)
Ritor1
parents:
diff changeset
388 LONG lRecordVolume; // Recording volume
Ritor1
parents:
diff changeset
389 LONG lPlaybackVolume; // Playback volume
Ritor1
parents:
diff changeset
390 DWORD dwThreshold; // Voice Activation Threshold
Ritor1
parents:
diff changeset
391 DWORD dwBufferQuality; // Buffer quality
Ritor1
parents:
diff changeset
392 DWORD dwBufferAggressiveness; // Buffer aggressiveness
Ritor1
parents:
diff changeset
393 DWORD dwNotifyPeriod; // Period of notification messages (ms)
Ritor1
parents:
diff changeset
394 } DVCLIENTCONFIG, *LPDVCLIENTCONFIG, *PDVCLIENTCONFIG;
Ritor1
parents:
diff changeset
395
Ritor1
parents:
diff changeset
396 //
Ritor1
parents:
diff changeset
397 // DirectPlayVoice Compression Type Information
Ritor1
parents:
diff changeset
398 // (GetCompressionTypes)
Ritor1
parents:
diff changeset
399 //
Ritor1
parents:
diff changeset
400 typedef struct
Ritor1
parents:
diff changeset
401 {
Ritor1
parents:
diff changeset
402 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
403 GUID guidType; // GUID that identifies this compression type
Ritor1
parents:
diff changeset
404 LPWSTR lpszName; // String name of this compression type
Ritor1
parents:
diff changeset
405 LPWSTR lpszDescription; // Description for this compression type
Ritor1
parents:
diff changeset
406 DWORD dwFlags; // Flags for this compression type
Ritor1
parents:
diff changeset
407 DWORD dwMaxBitsPerSecond; // Maximum # of bit/s this compression type uses
Ritor1
parents:
diff changeset
408 } DVCOMPRESSIONINFO, *LPDVCOMPRESSIONINFO, *PDVCOMPRESSIONINFO;
Ritor1
parents:
diff changeset
409
Ritor1
parents:
diff changeset
410 //
Ritor1
parents:
diff changeset
411 // DirectPlayVoice Session Description
Ritor1
parents:
diff changeset
412 // (Host / GetSessionDesc)
Ritor1
parents:
diff changeset
413 //
Ritor1
parents:
diff changeset
414 typedef struct
Ritor1
parents:
diff changeset
415 {
Ritor1
parents:
diff changeset
416 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
417 DWORD dwFlags; // Session flags (DVSESSION_...)
Ritor1
parents:
diff changeset
418 DWORD dwSessionType; // Session type (DVSESSIONTYPE_...)
Ritor1
parents:
diff changeset
419 GUID guidCT; // Compression Type to use
Ritor1
parents:
diff changeset
420 DWORD dwBufferQuality; // Buffer quality
Ritor1
parents:
diff changeset
421 DWORD dwBufferAggressiveness; // Buffer aggresiveness
Ritor1
parents:
diff changeset
422 } DVSESSIONDESC, *LPDVSESSIONDESC, *PDVSESSIONDESC;
Ritor1
parents:
diff changeset
423
Ritor1
parents:
diff changeset
424 //
Ritor1
parents:
diff changeset
425 // DirectPlayVoice Client Sound Device Configuration
Ritor1
parents:
diff changeset
426 // (Connect / GetSoundDeviceConfig)
Ritor1
parents:
diff changeset
427 //
Ritor1
parents:
diff changeset
428 typedef struct
Ritor1
parents:
diff changeset
429 {
Ritor1
parents:
diff changeset
430 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
431 DWORD dwFlags; // Flags for sound config (DVSOUNDCONFIG_...)
Ritor1
parents:
diff changeset
432 GUID guidPlaybackDevice; // GUID of the playback device to use
Ritor1
parents:
diff changeset
433 LPDIRECTSOUND lpdsPlaybackDevice; // DirectSound Object to use (optional)
Ritor1
parents:
diff changeset
434 GUID guidCaptureDevice; // GUID of the capture device to use
Ritor1
parents:
diff changeset
435 LPDIRECTSOUNDCAPTURE lpdsCaptureDevice; // DirectSoundCapture Object to use (optional)
Ritor1
parents:
diff changeset
436 HWND hwndAppWindow; // HWND of your application's top-level window
Ritor1
parents:
diff changeset
437 LPDIRECTSOUNDBUFFER lpdsMainBuffer; // DirectSoundBuffer to use for playback (optional)
Ritor1
parents:
diff changeset
438 DWORD dwMainBufferFlags; // Flags to pass to Play() on the main buffer
Ritor1
parents:
diff changeset
439 DWORD dwMainBufferPriority; // Priority to set when calling Play() on the main buffer
Ritor1
parents:
diff changeset
440 } DVSOUNDDEVICECONFIG, *LPDVSOUNDDEVICECONFIG, *PDVSOUNDDEVICECONFIG;
Ritor1
parents:
diff changeset
441
Ritor1
parents:
diff changeset
442 /****************************************************************************
Ritor1
parents:
diff changeset
443 *
Ritor1
parents:
diff changeset
444 * DirectPlayVoice message handler call back structures
Ritor1
parents:
diff changeset
445 *
Ritor1
parents:
diff changeset
446 ****************************************************************************/
Ritor1
parents:
diff changeset
447
Ritor1
parents:
diff changeset
448 //
Ritor1
parents:
diff changeset
449 // Result of the Connect() call. (If it wasn't called Async)
Ritor1
parents:
diff changeset
450 // (DVMSGID_CONNECTRESULT)
Ritor1
parents:
diff changeset
451 //
Ritor1
parents:
diff changeset
452 typedef struct
Ritor1
parents:
diff changeset
453 {
Ritor1
parents:
diff changeset
454 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
455 HRESULT hrResult; // Result of the Connect() call
Ritor1
parents:
diff changeset
456 } DVMSG_CONNECTRESULT, *LPDVMSG_CONNECTRESULT, *PDVMSG_CONNECTRESULT;
Ritor1
parents:
diff changeset
457
Ritor1
parents:
diff changeset
458 //
Ritor1
parents:
diff changeset
459 // A new player has entered the voice session
Ritor1
parents:
diff changeset
460 // (DVMSGID_CREATEVOICEPLAYER)
Ritor1
parents:
diff changeset
461 //
Ritor1
parents:
diff changeset
462 typedef struct
Ritor1
parents:
diff changeset
463 {
Ritor1
parents:
diff changeset
464 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
465 DVID dvidPlayer; // DVID of the player who joined
Ritor1
parents:
diff changeset
466 DWORD dwFlags; // Player flags (DVPLAYERCAPS_...)
Ritor1
parents:
diff changeset
467 PVOID pvPlayerContext; // Context value for this player (user set)
Ritor1
parents:
diff changeset
468 } DVMSG_CREATEVOICEPLAYER, *LPDVMSG_CREATEVOICEPLAYER, *PDVMSG_CREATEVOICEPLAYER;
Ritor1
parents:
diff changeset
469
Ritor1
parents:
diff changeset
470 //
Ritor1
parents:
diff changeset
471 // A player has left the voice session
Ritor1
parents:
diff changeset
472 // (DVMSGID_DELETEVOICEPLAYER)
Ritor1
parents:
diff changeset
473 //
Ritor1
parents:
diff changeset
474 typedef struct
Ritor1
parents:
diff changeset
475 {
Ritor1
parents:
diff changeset
476 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
477 DVID dvidPlayer; // DVID of the player who left
Ritor1
parents:
diff changeset
478 PVOID pvPlayerContext; // Context value for the player
Ritor1
parents:
diff changeset
479 } DVMSG_DELETEVOICEPLAYER, *LPDVMSG_DELETEVOICEPLAYER, *PDVMSG_DELETEVOICEPLAYER;
Ritor1
parents:
diff changeset
480
Ritor1
parents:
diff changeset
481 //
Ritor1
parents:
diff changeset
482 // Result of the Disconnect() call. (If it wasn't called Async)
Ritor1
parents:
diff changeset
483 // (DVMSGID_DISCONNECTRESULT)
Ritor1
parents:
diff changeset
484 //
Ritor1
parents:
diff changeset
485 typedef struct
Ritor1
parents:
diff changeset
486 {
Ritor1
parents:
diff changeset
487 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
488 HRESULT hrResult; // Result of the Disconnect() call
Ritor1
parents:
diff changeset
489 } DVMSG_DISCONNECTRESULT, *LPDVMSG_DISCONNECTRESULT, *PDVMSG_DISCONNECTRESULT;
Ritor1
parents:
diff changeset
490
Ritor1
parents:
diff changeset
491 //
Ritor1
parents:
diff changeset
492 // The voice session host has migrated.
Ritor1
parents:
diff changeset
493 // (DVMSGID_HOSTMIGRATED)
Ritor1
parents:
diff changeset
494 //
Ritor1
parents:
diff changeset
495 typedef struct
Ritor1
parents:
diff changeset
496 {
Ritor1
parents:
diff changeset
497 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
498 DVID dvidNewHostID; // DVID of the player who is now the host
Ritor1
parents:
diff changeset
499 LPDIRECTPLAYVOICESERVER pdvServerInterface;
Ritor1
parents:
diff changeset
500 // Pointer to the new host object (if local player is now host)
Ritor1
parents:
diff changeset
501 } DVMSG_HOSTMIGRATED, *LPDVMSG_HOSTMIGRATED, *PDVMSG_HOSTMIGRATED;
Ritor1
parents:
diff changeset
502
Ritor1
parents:
diff changeset
503 //
Ritor1
parents:
diff changeset
504 // The current input level / recording volume on the local machine
Ritor1
parents:
diff changeset
505 // (DVMSGID_INPUTLEVEL)
Ritor1
parents:
diff changeset
506 //
Ritor1
parents:
diff changeset
507 typedef struct
Ritor1
parents:
diff changeset
508 {
Ritor1
parents:
diff changeset
509 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
510 DWORD dwPeakLevel; // Current peak level of the audio
Ritor1
parents:
diff changeset
511 LONG lRecordVolume; // Current recording volume
Ritor1
parents:
diff changeset
512 PVOID pvLocalPlayerContext; // Context value for the local player
Ritor1
parents:
diff changeset
513 } DVMSG_INPUTLEVEL, *LPDVMSG_INPUTLEVEL, *PDVMSG_INPUTLEVEL;
Ritor1
parents:
diff changeset
514
Ritor1
parents:
diff changeset
515 //
Ritor1
parents:
diff changeset
516 // The local client is about to become the new host
Ritor1
parents:
diff changeset
517 // (DVMSGID_LOCALHOSTSETUP)
Ritor1
parents:
diff changeset
518 //
Ritor1
parents:
diff changeset
519 typedef struct
Ritor1
parents:
diff changeset
520 {
Ritor1
parents:
diff changeset
521 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
522 PVOID pvContext; // Context value to be passed to Initialize() of new host object
Ritor1
parents:
diff changeset
523 PDVMESSAGEHANDLER pMessageHandler; // Message handler to be used by new host object
Ritor1
parents:
diff changeset
524 } DVMSG_LOCALHOSTSETUP, *LPDVMSG_LOCALHOSTSETUP, *PDVMSG_LOCALHOSTSETUP;
Ritor1
parents:
diff changeset
525
Ritor1
parents:
diff changeset
526 //
Ritor1
parents:
diff changeset
527 // The current output level for the combined output of all incoming streams.
Ritor1
parents:
diff changeset
528 // (DVMSGID_OUTPUTLEVEL)
Ritor1
parents:
diff changeset
529 //
Ritor1
parents:
diff changeset
530 typedef struct
Ritor1
parents:
diff changeset
531 {
Ritor1
parents:
diff changeset
532 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
533 DWORD dwPeakLevel; // Current peak level of the output
Ritor1
parents:
diff changeset
534 LONG lOutputVolume; // Current playback volume
Ritor1
parents:
diff changeset
535 PVOID pvLocalPlayerContext; // Context value for the local player
Ritor1
parents:
diff changeset
536 } DVMSG_OUTPUTLEVEL, *LPDVMSG_OUTPUTLEVEL, *PDVMSG_OUTPUTLEVEL;
Ritor1
parents:
diff changeset
537
Ritor1
parents:
diff changeset
538 //
Ritor1
parents:
diff changeset
539 // The current peak level of an individual player's incoming audio stream as it is
Ritor1
parents:
diff changeset
540 // being played back.
Ritor1
parents:
diff changeset
541 // (DVMSGID_PLAYEROUTPUTLEVEL)
Ritor1
parents:
diff changeset
542 //
Ritor1
parents:
diff changeset
543 typedef struct
Ritor1
parents:
diff changeset
544 {
Ritor1
parents:
diff changeset
545 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
546 DVID dvidSourcePlayerID; // DVID of the player
Ritor1
parents:
diff changeset
547 DWORD dwPeakLevel; // Peak level of the player's stream
Ritor1
parents:
diff changeset
548 PVOID pvPlayerContext; // Context value for the player
Ritor1
parents:
diff changeset
549 } DVMSG_PLAYEROUTPUTLEVEL, *LPDVMSG_PLAYEROUTPUTLEVEL, *PDVMSG_PLAYEROUTPUTLEVEL;
Ritor1
parents:
diff changeset
550
Ritor1
parents:
diff changeset
551 //
Ritor1
parents:
diff changeset
552 // An audio stream from the specified player has started playing back on the local client.
Ritor1
parents:
diff changeset
553 // (DVMSGID_PLAYERVOICESTART).
Ritor1
parents:
diff changeset
554 //
Ritor1
parents:
diff changeset
555 typedef struct
Ritor1
parents:
diff changeset
556 {
Ritor1
parents:
diff changeset
557 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
558 DVID dvidSourcePlayerID; // DVID of the Player
Ritor1
parents:
diff changeset
559 PVOID pvPlayerContext; // Context value for this player
Ritor1
parents:
diff changeset
560 } DVMSG_PLAYERVOICESTART, *LPDVMSG_PLAYERVOICESTART, *PDVMSG_PLAYERVOICESTART;
Ritor1
parents:
diff changeset
561
Ritor1
parents:
diff changeset
562 //
Ritor1
parents:
diff changeset
563 // The audio stream from the specified player has stopped playing back on the local client.
Ritor1
parents:
diff changeset
564 // (DVMSGID_PLAYERVOICESTOP)
Ritor1
parents:
diff changeset
565 //
Ritor1
parents:
diff changeset
566 typedef struct
Ritor1
parents:
diff changeset
567 {
Ritor1
parents:
diff changeset
568 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
569 DVID dvidSourcePlayerID; // DVID of the player
Ritor1
parents:
diff changeset
570 PVOID pvPlayerContext; // Context value for this player
Ritor1
parents:
diff changeset
571 } DVMSG_PLAYERVOICESTOP, *LPDVMSG_PLAYERVOICESTOP, *PDVMSG_PLAYERVOICESTOP;
Ritor1
parents:
diff changeset
572
Ritor1
parents:
diff changeset
573 //
Ritor1
parents:
diff changeset
574 // Transmission has started on the local machine
Ritor1
parents:
diff changeset
575 // (DVMSGID_RECORDSTART)
Ritor1
parents:
diff changeset
576 //
Ritor1
parents:
diff changeset
577 typedef struct
Ritor1
parents:
diff changeset
578 {
Ritor1
parents:
diff changeset
579 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
580 DWORD dwPeakLevel; // Peak level that caused transmission to start
Ritor1
parents:
diff changeset
581 PVOID pvLocalPlayerContext; // Context value for the local player
Ritor1
parents:
diff changeset
582 } DVMSG_RECORDSTART, *LPDVMSG_RECORDSTART, *PDVMSG_RECORDSTART;
Ritor1
parents:
diff changeset
583
Ritor1
parents:
diff changeset
584 //
Ritor1
parents:
diff changeset
585 // Transmission has stopped on the local machine
Ritor1
parents:
diff changeset
586 // (DVMSGID_RECORDSTOP)
Ritor1
parents:
diff changeset
587 //
Ritor1
parents:
diff changeset
588 typedef struct
Ritor1
parents:
diff changeset
589 {
Ritor1
parents:
diff changeset
590 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
591 DWORD dwPeakLevel; // Peak level that caused transmission to stop
Ritor1
parents:
diff changeset
592 PVOID pvLocalPlayerContext; // Context value for the local player
Ritor1
parents:
diff changeset
593 } DVMSG_RECORDSTOP, *LPDVMSG_RECORDSTOP, *PDVMSG_RECORDSTOP;
Ritor1
parents:
diff changeset
594
Ritor1
parents:
diff changeset
595 //
Ritor1
parents:
diff changeset
596 // The voice session has been lost
Ritor1
parents:
diff changeset
597 // (DVMSGID_SESSIONLOST)
Ritor1
parents:
diff changeset
598 //
Ritor1
parents:
diff changeset
599 typedef struct
Ritor1
parents:
diff changeset
600 {
Ritor1
parents:
diff changeset
601 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
602 HRESULT hrResult; // Reason the session was disconnected
Ritor1
parents:
diff changeset
603 } DVMSG_SESSIONLOST, *LPDVMSG_SESSIONLOST, *PDVMSG_SESSIONLOST;
Ritor1
parents:
diff changeset
604
Ritor1
parents:
diff changeset
605 //
Ritor1
parents:
diff changeset
606 // The target list has been updated for the local client
Ritor1
parents:
diff changeset
607 // (DVMSGID_SETTARGETS)
Ritor1
parents:
diff changeset
608 //
Ritor1
parents:
diff changeset
609 typedef struct
Ritor1
parents:
diff changeset
610 {
Ritor1
parents:
diff changeset
611 DWORD dwSize; // Size of this structure
Ritor1
parents:
diff changeset
612 DWORD dwNumTargets; // # of targets
Ritor1
parents:
diff changeset
613 PDVID pdvidTargets; // An array of DVIDs specifying the current targets
Ritor1
parents:
diff changeset
614 } DVMSG_SETTARGETS, *LPDVMSG_SETTARGETS, *PDVMSG_SETTARGETS;
Ritor1
parents:
diff changeset
615
Ritor1
parents:
diff changeset
616
Ritor1
parents:
diff changeset
617 /****************************************************************************
Ritor1
parents:
diff changeset
618 *
Ritor1
parents:
diff changeset
619 * DirectPlayVoice Functions
Ritor1
parents:
diff changeset
620 *
Ritor1
parents:
diff changeset
621 ****************************************************************************/
Ritor1
parents:
diff changeset
622
Ritor1
parents:
diff changeset
623 /*
Ritor1
parents:
diff changeset
624 *
Ritor1
parents:
diff changeset
625 * This function is no longer supported. It is recommended that CoCreateInstance be used to create
Ritor1
parents:
diff changeset
626 * DirectPlay voice objects.
Ritor1
parents:
diff changeset
627 *
Ritor1
parents:
diff changeset
628 * extern HRESULT WINAPI DirectPlayVoiceCreate( const GUID * pcIID, void **ppvInterface, IUnknown *pUnknown);
Ritor1
parents:
diff changeset
629 *
Ritor1
parents:
diff changeset
630 */
Ritor1
parents:
diff changeset
631
Ritor1
parents:
diff changeset
632 /****************************************************************************
Ritor1
parents:
diff changeset
633 *
Ritor1
parents:
diff changeset
634 * DirectPlay8 Application Interfaces
Ritor1
parents:
diff changeset
635 *
Ritor1
parents:
diff changeset
636 ****************************************************************************/
Ritor1
parents:
diff changeset
637
Ritor1
parents:
diff changeset
638 #undef INTERFACE
Ritor1
parents:
diff changeset
639 #define INTERFACE IDirectPlayVoiceClient
Ritor1
parents:
diff changeset
640 DECLARE_INTERFACE_( IDirectPlayVoiceClient, IUnknown )
Ritor1
parents:
diff changeset
641 {
Ritor1
parents:
diff changeset
642 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
643 STDMETHOD(QueryInterface)(THIS_ REFIID riid, PVOID *ppvObj) PURE;
Ritor1
parents:
diff changeset
644 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
645 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
646 /*** IDirectPlayVoiceClient methods ***/
Ritor1
parents:
diff changeset
647 STDMETHOD_(HRESULT, Initialize) (THIS_ LPUNKNOWN, PDVMESSAGEHANDLER, PVOID, PDWORD, DWORD ) PURE;
Ritor1
parents:
diff changeset
648 STDMETHOD_(HRESULT, Connect) (THIS_ PDVSOUNDDEVICECONFIG, PDVCLIENTCONFIG, DWORD ) PURE;
Ritor1
parents:
diff changeset
649 STDMETHOD_(HRESULT, Disconnect) (THIS_ DWORD ) PURE;
Ritor1
parents:
diff changeset
650 STDMETHOD_(HRESULT, GetSessionDesc)(THIS_ PDVSESSIONDESC ) PURE;
Ritor1
parents:
diff changeset
651 STDMETHOD_(HRESULT, GetClientConfig)(THIS_ PDVCLIENTCONFIG ) PURE;
Ritor1
parents:
diff changeset
652 STDMETHOD_(HRESULT, SetClientConfig)(THIS_ PDVCLIENTCONFIG ) PURE;
Ritor1
parents:
diff changeset
653 STDMETHOD_(HRESULT, GetCaps) (THIS_ PDVCAPS ) PURE;
Ritor1
parents:
diff changeset
654 STDMETHOD_(HRESULT, GetCompressionTypes)( THIS_ PVOID, PDWORD, PDWORD, DWORD ) PURE;
Ritor1
parents:
diff changeset
655 STDMETHOD_(HRESULT, SetTransmitTargets)( THIS_ PDVID, DWORD, DWORD ) PURE;
Ritor1
parents:
diff changeset
656 STDMETHOD_(HRESULT, GetTransmitTargets)( THIS_ PDVID, PDWORD, DWORD ) PURE;
Ritor1
parents:
diff changeset
657 STDMETHOD_(HRESULT, Create3DSoundBuffer)( THIS_ DVID, LPDIRECTSOUNDBUFFER, DWORD, DWORD, LPDIRECTSOUND3DBUFFER * ) PURE;
Ritor1
parents:
diff changeset
658 STDMETHOD_(HRESULT, Delete3DSoundBuffer)( THIS_ DVID, LPDIRECTSOUND3DBUFFER * ) PURE;
Ritor1
parents:
diff changeset
659 STDMETHOD_(HRESULT, SetNotifyMask)( THIS_ PDWORD, DWORD ) PURE;
Ritor1
parents:
diff changeset
660 STDMETHOD_(HRESULT, GetSoundDeviceConfig)( THIS_ PDVSOUNDDEVICECONFIG, PDWORD ) PURE;
Ritor1
parents:
diff changeset
661 };
Ritor1
parents:
diff changeset
662
Ritor1
parents:
diff changeset
663
Ritor1
parents:
diff changeset
664 #undef INTERFACE
Ritor1
parents:
diff changeset
665 #define INTERFACE IDirectPlayVoiceServer
Ritor1
parents:
diff changeset
666 DECLARE_INTERFACE_( IDirectPlayVoiceServer, IUnknown )
Ritor1
parents:
diff changeset
667 {
Ritor1
parents:
diff changeset
668 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
669 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
670 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
671 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
672 /*** IDirectPlayVoiceServer methods ***/
Ritor1
parents:
diff changeset
673 STDMETHOD_(HRESULT, Initialize) (THIS_ LPUNKNOWN, PDVMESSAGEHANDLER, PVOID, LPDWORD, DWORD ) PURE;
Ritor1
parents:
diff changeset
674 STDMETHOD_(HRESULT, StartSession) (THIS_ PDVSESSIONDESC, DWORD ) PURE;
Ritor1
parents:
diff changeset
675 STDMETHOD_(HRESULT, StopSession) (THIS_ DWORD ) PURE;
Ritor1
parents:
diff changeset
676 STDMETHOD_(HRESULT, GetSessionDesc)(THIS_ PDVSESSIONDESC ) PURE;
Ritor1
parents:
diff changeset
677 STDMETHOD_(HRESULT, SetSessionDesc)(THIS_ PDVSESSIONDESC ) PURE;
Ritor1
parents:
diff changeset
678 STDMETHOD_(HRESULT, GetCaps) (THIS_ PDVCAPS ) PURE;
Ritor1
parents:
diff changeset
679 STDMETHOD_(HRESULT, GetCompressionTypes)( THIS_ PVOID, PDWORD, PDWORD, DWORD ) PURE;
Ritor1
parents:
diff changeset
680 STDMETHOD_(HRESULT, SetTransmitTargets)( THIS_ DVID, PDVID, DWORD, DWORD ) PURE;
Ritor1
parents:
diff changeset
681 STDMETHOD_(HRESULT, GetTransmitTargets)( THIS_ DVID, PDVID, PDWORD, DWORD ) PURE;
Ritor1
parents:
diff changeset
682 STDMETHOD_(HRESULT, SetNotifyMask)( THIS_ PDWORD, DWORD ) PURE;
Ritor1
parents:
diff changeset
683 };
Ritor1
parents:
diff changeset
684
Ritor1
parents:
diff changeset
685 #undef INTERFACE
Ritor1
parents:
diff changeset
686 #define INTERFACE IDirectPlayVoiceTest
Ritor1
parents:
diff changeset
687 DECLARE_INTERFACE_( IDirectPlayVoiceTest, IUnknown )
Ritor1
parents:
diff changeset
688 {
Ritor1
parents:
diff changeset
689 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
690 STDMETHOD(QueryInterface) (THIS_ REFIID riid, PVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
691 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
692 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
693 /*** IDirectPlayVoiceTest methods ***/
Ritor1
parents:
diff changeset
694 STDMETHOD_(HRESULT, CheckAudioSetup) (THIS_ const GUID *, const GUID * , HWND, DWORD ) PURE;
Ritor1
parents:
diff changeset
695 };
Ritor1
parents:
diff changeset
696
Ritor1
parents:
diff changeset
697 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
698
Ritor1
parents:
diff changeset
699 #define IDirectPlayVoiceClient_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
700 #define IDirectPlayVoiceClient_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
701 #define IDirectPlayVoiceClient_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
702
Ritor1
parents:
diff changeset
703 #define IDirectPlayVoiceClient_Initialize(p,a,b,c,d,e) (p)->lpVtbl->Initialize(p,a,b,c,d,e)
Ritor1
parents:
diff changeset
704 #define IDirectPlayVoiceClient_Connect(p,a,b,c) (p)->lpVtbl->Connect(p,a,b,c)
Ritor1
parents:
diff changeset
705 #define IDirectPlayVoiceClient_Disconnect(p,a) (p)->lpVtbl->Disconnect(p,a)
Ritor1
parents:
diff changeset
706 #define IDirectPlayVoiceClient_GetSessionDesc(p,a) (p)->lpVtbl->GetSessionDesc(p,a)
Ritor1
parents:
diff changeset
707 #define IDirectPlayVoiceClient_GetClientConfig(p,a) (p)->lpVtbl->GetClientConfig(p,a)
Ritor1
parents:
diff changeset
708 #define IDirectPlayVoiceClient_SetClientConfig(p,a) (p)->lpVtbl->SetClientConfig(p,a)
Ritor1
parents:
diff changeset
709 #define IDirectPlayVoiceClient_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
Ritor1
parents:
diff changeset
710 #define IDirectPlayVoiceClient_GetCompressionTypes(p,a,b,c,d) (p)->lpVtbl->GetCompressionTypes(p,a,b,c,d)
Ritor1
parents:
diff changeset
711 #define IDirectPlayVoiceClient_SetTransmitTargets(p,a,b,c) (p)->lpVtbl->SetTransmitTargets(p,a,b,c)
Ritor1
parents:
diff changeset
712 #define IDirectPlayVoiceClient_GetTransmitTargets(p,a,b,c) (p)->lpVtbl->GetTransmitTargets(p,a,b,c)
Ritor1
parents:
diff changeset
713 #define IDirectPlayVoiceClient_Create3DSoundBuffer(p,a,b,c,d,e) (p)->lpVtbl->Create3DSoundBuffer(p,a,b,c,d,e)
Ritor1
parents:
diff changeset
714 #define IDirectPlayVoiceClient_Delete3DSoundBuffer(p,a,b) (p)->lpVtbl->Delete3DSoundBuffer(p,a,b)
Ritor1
parents:
diff changeset
715 #define IDirectPlayVoiceClient_SetNotifyMask(p,a,b) (p)->lpVtbl->SetNotifyMask(p,a,b)
Ritor1
parents:
diff changeset
716 #define IDirectPlayVoiceClient_GetSoundDeviceConfig(p,a,b) (p)->lpVtbl->GetSoundDeviceConfig(p,a,b)
Ritor1
parents:
diff changeset
717
Ritor1
parents:
diff changeset
718 #define IDirectPlayVoiceServer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
719 #define IDirectPlayVoiceServer_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
720 #define IDirectPlayVoiceServer_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
721
Ritor1
parents:
diff changeset
722 #define IDirectPlayVoiceServer_Initialize(p,a,b,c,d,e) (p)->lpVtbl->Initialize(p,a,b,c,d,e)
Ritor1
parents:
diff changeset
723 #define IDirectPlayVoiceServer_StartSession(p,a,b) (p)->lpVtbl->StartSession(p,a,b)
Ritor1
parents:
diff changeset
724 #define IDirectPlayVoiceServer_StopSession(p,a) (p)->lpVtbl->StopSession(p,a)
Ritor1
parents:
diff changeset
725 #define IDirectPlayVoiceServer_GetSessionDesc(p,a) (p)->lpVtbl->GetSessionDesc(p,a)
Ritor1
parents:
diff changeset
726 #define IDirectPlayVoiceServer_SetSessionDesc(p,a) (p)->lpVtbl->SetSessionDesc(p,a)
Ritor1
parents:
diff changeset
727 #define IDirectPlayVoiceServer_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
Ritor1
parents:
diff changeset
728 #define IDirectPlayVoiceServer_GetCompressionTypes(p,a,b,c,d) (p)->lpVtbl->GetCompressionTypes(p,a,b,c,d)
Ritor1
parents:
diff changeset
729 #define IDirectPlayVoiceServer_SetTransmitTargets(p,a,b,c,d) (p)->lpVtbl->SetTransmitTargets(p,a,b,c,d)
Ritor1
parents:
diff changeset
730 #define IDirectPlayVoiceServer_GetTransmitTargets(p,a,b,c,d) (p)->lpVtbl->GetTransmitTargets(p,a,b,c,d)
Ritor1
parents:
diff changeset
731 #define IDirectPlayVoiceServer_SetNotifyMask(p,a,b) (p)->lpVtbl->SetNotifyMask(p,a,b)
Ritor1
parents:
diff changeset
732 #define IDirectPlayVoiceTest_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
733 #define IDirectPlayVoiceTest_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
734 #define IDirectPlayVoiceTest_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
735 #define IDirectPlayVoiceTest_CheckAudioSetup(p,a,b,c,d) (p)->lpVtbl->CheckAudioSetup(p,a,b,c,d)
Ritor1
parents:
diff changeset
736
Ritor1
parents:
diff changeset
737
Ritor1
parents:
diff changeset
738 #else /* C++ */
Ritor1
parents:
diff changeset
739
Ritor1
parents:
diff changeset
740 #define IDirectPlayVoiceClient_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
741 #define IDirectPlayVoiceClient_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
742 #define IDirectPlayVoiceClient_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
743
Ritor1
parents:
diff changeset
744 #define IDirectPlayVoiceClient_Initialize(p,a,b,c,d,e) (p)->Initialize(a,b,c,d,e)
Ritor1
parents:
diff changeset
745 #define IDirectPlayVoiceClient_Connect(p,a,b,c) (p)->Connect(a,b,c)
Ritor1
parents:
diff changeset
746 #define IDirectPlayVoiceClient_Disconnect(p,a) (p)->Disconnect(a)
Ritor1
parents:
diff changeset
747 #define IDirectPlayVoiceClient_GetSessionDesc(p,a) (p)->GetSessionDesc(a)
Ritor1
parents:
diff changeset
748 #define IDirectPlayVoiceClient_GetClientConfig(p,a) (p)->GetClientConfig(a)
Ritor1
parents:
diff changeset
749 #define IDirectPlayVoiceClient_SetClientConfig(p,a) (p)->SetClientConfig(a)
Ritor1
parents:
diff changeset
750 #define IDirectPlayVoiceClient_GetCaps(p,a) (p)->GetCaps(a)
Ritor1
parents:
diff changeset
751 #define IDirectPlayVoiceClient_GetCompressionTypes(p,a,b,c,d) (p)->GetCompressionTypes(a,b,c,d)
Ritor1
parents:
diff changeset
752 #define IDirectPlayVoiceClient_SetTransmitTargets(p,a,b,c) (p)->SetTransmitTargets(a,b,c)
Ritor1
parents:
diff changeset
753 #define IDirectPlayVoiceClient_GetTransmitTargets(p,a,b,c) (p)->GetTransmitTargets(a,b,c)
Ritor1
parents:
diff changeset
754 #define IDirectPlayVoiceClient_Create3DSoundBuffer(p,a,b,c,d,e) (p)->Create3DSoundBuffer(a,b,c,d,e)
Ritor1
parents:
diff changeset
755 #define IDirectPlayVoiceClient_Delete3DSoundBuffer(p,a,b) (p)->Delete3DSoundBuffer(a,b)
Ritor1
parents:
diff changeset
756 #define IDirectPlayVoiceClient_SetNotifyMask(p,a,b) (p)->SetNotifyMask(a,b)
Ritor1
parents:
diff changeset
757 #define IDirectPlayVoiceClient_GetSoundDeviceConfig(p,a,b) (p)->GetSoundDeviceConfig(a,b)
Ritor1
parents:
diff changeset
758
Ritor1
parents:
diff changeset
759 #define IDirectPlayVoiceServer_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
760 #define IDirectPlayVoiceServer_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
761 #define IDirectPlayVoiceServer_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
762
Ritor1
parents:
diff changeset
763 #define IDirectPlayVoiceServer_Initialize(p,a,b,c,d,e) (p)->Initialize(a,b,c,d,e)
Ritor1
parents:
diff changeset
764 #define IDirectPlayVoiceServer_StartSession(p,a,b) (p)->StartSession(a,b)
Ritor1
parents:
diff changeset
765 #define IDirectPlayVoiceServer_StopSession(p,a) (p)->StopSession(a)
Ritor1
parents:
diff changeset
766 #define IDirectPlayVoiceServer_GetSessionDesc(p,a) (p)->GetSessionDesc(a)
Ritor1
parents:
diff changeset
767 #define IDirectPlayVoiceServer_SetSessionDesc(p,a) (p)->SetSessionDesc(a)
Ritor1
parents:
diff changeset
768 #define IDirectPlayVoiceServer_GetCaps(p,a) (p)->GetCaps(a)
Ritor1
parents:
diff changeset
769 #define IDirectPlayVoiceServer_GetCompressionTypes(p,a,b,c,d) (p)->GetCompressionTypes(a,b,c,d)
Ritor1
parents:
diff changeset
770 #define IDirectPlayVoiceServer_SetTransmitTargets(p,a,b,c,d) (p)->SetTransmitTargets(a,b,c,d)
Ritor1
parents:
diff changeset
771 #define IDirectPlayVoiceServer_GetTransmitTargets(p,a,b,c,d) (p)->GetTransmitTargets(a,b,c,d)
Ritor1
parents:
diff changeset
772 #define IDirectPlayVoiceServer_SetNotifyMask(p,a,b) (p)->SetNotifyMask(a,b)
Ritor1
parents:
diff changeset
773
Ritor1
parents:
diff changeset
774 #define IDirectPlayVoiceTest_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
775 #define IDirectPlayVoiceTest_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
776 #define IDirectPlayVoiceTest_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
777 #define IDirectPlayVoiceTest_CheckAudioSetup(p,a,b,c,d) (p)->CheckAudioSetup(a,b,c,d)
Ritor1
parents:
diff changeset
778
Ritor1
parents:
diff changeset
779
Ritor1
parents:
diff changeset
780 #endif
Ritor1
parents:
diff changeset
781
Ritor1
parents:
diff changeset
782
Ritor1
parents:
diff changeset
783 /****************************************************************************
Ritor1
parents:
diff changeset
784 *
Ritor1
parents:
diff changeset
785 * DIRECTPLAYVOICE ERRORS
Ritor1
parents:
diff changeset
786 *
Ritor1
parents:
diff changeset
787 * Errors are represented by negative values and cannot be combined.
Ritor1
parents:
diff changeset
788 *
Ritor1
parents:
diff changeset
789 ****************************************************************************/
Ritor1
parents:
diff changeset
790
Ritor1
parents:
diff changeset
791 #define _FACDPV 0x15
Ritor1
parents:
diff changeset
792 #define MAKE_DVHRESULT( code ) MAKE_HRESULT( 1, _FACDPV, code )
Ritor1
parents:
diff changeset
793
Ritor1
parents:
diff changeset
794 #define DV_OK S_OK
Ritor1
parents:
diff changeset
795 #define DV_FULLDUPLEX MAKE_HRESULT( 0, _FACDPV, 0x0005 )
Ritor1
parents:
diff changeset
796 #define DV_HALFDUPLEX MAKE_HRESULT( 0, _FACDPV, 0x000A )
Ritor1
parents:
diff changeset
797 #define DV_PENDING MAKE_HRESULT( 0, _FACDPV, 0x0010 )
Ritor1
parents:
diff changeset
798
Ritor1
parents:
diff changeset
799 #define DVERR_BUFFERTOOSMALL MAKE_DVHRESULT( 0x001E )
Ritor1
parents:
diff changeset
800 #define DVERR_EXCEPTION MAKE_DVHRESULT( 0x004A )
Ritor1
parents:
diff changeset
801 #define DVERR_GENERIC E_FAIL
Ritor1
parents:
diff changeset
802 #define DVERR_INVALIDFLAGS MAKE_DVHRESULT( 0x0078 )
Ritor1
parents:
diff changeset
803 #define DVERR_INVALIDOBJECT MAKE_DVHRESULT( 0x0082 )
Ritor1
parents:
diff changeset
804 #define DVERR_INVALIDPARAM E_INVALIDARG
Ritor1
parents:
diff changeset
805 #define DVERR_INVALIDPLAYER MAKE_DVHRESULT( 0x0087 )
Ritor1
parents:
diff changeset
806 #define DVERR_INVALIDGROUP MAKE_DVHRESULT( 0x0091 )
Ritor1
parents:
diff changeset
807 #define DVERR_INVALIDHANDLE MAKE_DVHRESULT( 0x0096 )
Ritor1
parents:
diff changeset
808 #define DVERR_OUTOFMEMORY E_OUTOFMEMORY
Ritor1
parents:
diff changeset
809 #define DVERR_PENDING DV_PENDING
Ritor1
parents:
diff changeset
810 #define DVERR_NOTSUPPORTED E_NOTIMPL
Ritor1
parents:
diff changeset
811 #define DVERR_NOINTERFACE E_NOINTERFACE
Ritor1
parents:
diff changeset
812 #define DVERR_SESSIONLOST MAKE_DVHRESULT( 0x012C )
Ritor1
parents:
diff changeset
813 #define DVERR_NOVOICESESSION MAKE_DVHRESULT( 0x012E )
Ritor1
parents:
diff changeset
814 #define DVERR_CONNECTIONLOST MAKE_DVHRESULT( 0x0168 )
Ritor1
parents:
diff changeset
815 #define DVERR_NOTINITIALIZED MAKE_DVHRESULT( 0x0169 )
Ritor1
parents:
diff changeset
816 #define DVERR_CONNECTED MAKE_DVHRESULT( 0x016A )
Ritor1
parents:
diff changeset
817 #define DVERR_NOTCONNECTED MAKE_DVHRESULT( 0x016B )
Ritor1
parents:
diff changeset
818 #define DVERR_CONNECTABORTING MAKE_DVHRESULT( 0x016E )
Ritor1
parents:
diff changeset
819 #define DVERR_NOTALLOWED MAKE_DVHRESULT( 0x016F )
Ritor1
parents:
diff changeset
820 #define DVERR_INVALIDTARGET MAKE_DVHRESULT( 0x0170 )
Ritor1
parents:
diff changeset
821 #define DVERR_TRANSPORTNOTHOST MAKE_DVHRESULT( 0x0171 )
Ritor1
parents:
diff changeset
822 #define DVERR_COMPRESSIONNOTSUPPORTED MAKE_DVHRESULT( 0x0172 )
Ritor1
parents:
diff changeset
823 #define DVERR_ALREADYPENDING MAKE_DVHRESULT( 0x0173 )
Ritor1
parents:
diff changeset
824 #define DVERR_SOUNDINITFAILURE MAKE_DVHRESULT( 0x0174 )
Ritor1
parents:
diff changeset
825 #define DVERR_TIMEOUT MAKE_DVHRESULT( 0x0175 )
Ritor1
parents:
diff changeset
826 #define DVERR_CONNECTABORTED MAKE_DVHRESULT( 0x0176 )
Ritor1
parents:
diff changeset
827 #define DVERR_NO3DSOUND MAKE_DVHRESULT( 0x0177 )
Ritor1
parents:
diff changeset
828 #define DVERR_ALREADYBUFFERED MAKE_DVHRESULT( 0x0178 )
Ritor1
parents:
diff changeset
829 #define DVERR_NOTBUFFERED MAKE_DVHRESULT( 0x0179 )
Ritor1
parents:
diff changeset
830 #define DVERR_HOSTING MAKE_DVHRESULT( 0x017A )
Ritor1
parents:
diff changeset
831 #define DVERR_NOTHOSTING MAKE_DVHRESULT( 0x017B )
Ritor1
parents:
diff changeset
832 #define DVERR_INVALIDDEVICE MAKE_DVHRESULT( 0x017C )
Ritor1
parents:
diff changeset
833 #define DVERR_RECORDSYSTEMERROR MAKE_DVHRESULT( 0x017D )
Ritor1
parents:
diff changeset
834 #define DVERR_PLAYBACKSYSTEMERROR MAKE_DVHRESULT( 0x017E )
Ritor1
parents:
diff changeset
835 #define DVERR_SENDERROR MAKE_DVHRESULT( 0x017F )
Ritor1
parents:
diff changeset
836 #define DVERR_USERCANCEL MAKE_DVHRESULT( 0x0180 )
Ritor1
parents:
diff changeset
837 #define DVERR_RUNSETUP MAKE_DVHRESULT( 0x0183 )
Ritor1
parents:
diff changeset
838 #define DVERR_INCOMPATIBLEVERSION MAKE_DVHRESULT( 0x0184 )
Ritor1
parents:
diff changeset
839 #define DVERR_INITIALIZED MAKE_DVHRESULT( 0x0187 )
Ritor1
parents:
diff changeset
840 #define DVERR_INVALIDPOINTER E_POINTER
Ritor1
parents:
diff changeset
841 #define DVERR_NOTRANSPORT MAKE_DVHRESULT( 0x0188 )
Ritor1
parents:
diff changeset
842 #define DVERR_NOCALLBACK MAKE_DVHRESULT( 0x0189 )
Ritor1
parents:
diff changeset
843 #define DVERR_TRANSPORTNOTINIT MAKE_DVHRESULT( 0x018A )
Ritor1
parents:
diff changeset
844 #define DVERR_TRANSPORTNOSESSION MAKE_DVHRESULT( 0x018B )
Ritor1
parents:
diff changeset
845 #define DVERR_TRANSPORTNOPLAYER MAKE_DVHRESULT( 0x018C )
Ritor1
parents:
diff changeset
846 #define DVERR_USERBACK MAKE_DVHRESULT( 0x018D )
Ritor1
parents:
diff changeset
847 #define DVERR_NORECVOLAVAILABLE MAKE_DVHRESULT( 0x018E )
Ritor1
parents:
diff changeset
848 #define DVERR_INVALIDBUFFER MAKE_DVHRESULT( 0x018F )
Ritor1
parents:
diff changeset
849 #define DVERR_LOCKEDBUFFER MAKE_DVHRESULT( 0x0190 )
Ritor1
parents:
diff changeset
850
Ritor1
parents:
diff changeset
851 #ifdef __cplusplus
Ritor1
parents:
diff changeset
852 }
Ritor1
parents:
diff changeset
853 #endif
Ritor1
parents:
diff changeset
854
Ritor1
parents:
diff changeset
855 #endif
Ritor1
parents:
diff changeset
856
Ritor1
parents:
diff changeset
857