ReactOS 0.4.17-dev-923-g4c9a150
dmusicc.h
Go to the documentation of this file.
1/* DirectMusic Core API Stuff
2 *
3 * Copyright (C) 2003-2004 Rok Mandeljc
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 */
19
20#ifndef __WINE_DMUSIC_CORE_H
21#define __WINE_DMUSIC_CORE_H
22
23#ifndef __WINESRC__
24#include <windows.h>
25#endif /* __WINESRC__ */
26
27#define COM_NO_WINDOWS_H
28#include <objbase.h>
29#include <mmsystem.h>
30
31#include <dls1.h>
32#include <dmerror.h>
33#include <dmdls.h>
34#include <dsound.h>
35#include <dmusbuff.h>
36#include <strmif.h>
37
38#include <pshpack8.h>
39
40#ifdef __cplusplus
41extern "C" {
42#endif
43
44
45/*****************************************************************************
46 * Predeclare the interfaces
47 */
48/* CLSIDs */
49DEFINE_GUID(CLSID_DirectMusic, 0x636b9f10,0x0c7d,0x11d1,0x95,0xb2,0x00,0x20,0xaf,0xdc,0x74,0x21);
50DEFINE_GUID(CLSID_DirectMusicCollection, 0x480ff4b0,0x28b2,0x11d1,0xbe,0xf7,0x00,0xc0,0x4f,0xbf,0x8f,0xef);
51DEFINE_GUID(CLSID_DirectMusicSynth, 0x58c2b4d0,0x46e7,0x11d1,0x89,0xac,0x00,0xa0,0xc9,0x05,0x41,0x29);
52
53/* IIDs */
54DEFINE_GUID(IID_IDirectMusic, 0x6536115a,0x7b2d,0x11d2,0xba,0x18,0x00,0x00,0xf8,0x75,0xac,0x12);
55DEFINE_GUID(IID_IDirectMusic2, 0x6fc2cae1,0xbc78,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
56DEFINE_GUID(IID_IDirectMusic8, 0x2d3629f7,0x813d,0x4939,0x85,0x08,0xf0,0x5c,0x6b,0x75,0xfd,0x97);
57DEFINE_GUID(IID_IDirectMusicBuffer, 0xd2ac2878,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
58DEFINE_GUID(IID_IDirectMusicCollection, 0xd2ac287c,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
59DEFINE_GUID(IID_IDirectMusicDownload, 0xd2ac287b,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
60DEFINE_GUID(IID_IDirectMusicDownloadedInstrument, 0xd2ac287e,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
61DEFINE_GUID(IID_IDirectMusicInstrument, 0xd2ac287d,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
62DEFINE_GUID(IID_IDirectMusicPort, 0x08f2d8c9,0x37c2,0x11d2,0xb9,0xf9,0x00,0x00,0xf8,0x75,0xac,0x12);
63DEFINE_GUID(IID_IDirectMusicPortDownload, 0xd2ac287a,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
64DEFINE_GUID(IID_IDirectMusicThru, 0xced153e7,0x3606,0x11d2,0xb9,0xf9,0x00,0x00,0xf8,0x75,0xac,0x12);
65
66#define IID_IDirectMusicCollection8 IID_IDirectMusicCollection
67#define IID_IDirectMusicDownload8 IID_IDirectMusicDownload
68#define IID_IDirectMusicDownloadedInstrument8 IID_IDirectMusicDownloadedInstrument
69#define IID_IDirectMusicInstrument8 IID_IDirectMusicInstrument
70#define IID_IDirectMusicPort8 IID_IDirectMusicPort
71#define IID_IDirectMusicPortDownload8 IID_IDirectMusicPortDownload
72#define IID_IDirectMusicThru8 IID_IDirectMusicThru
73
74/* GUIDs - property set */
75DEFINE_GUID(GUID_DMUS_PROP_GM_Hardware, 0x178f2f24,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
76DEFINE_GUID(GUID_DMUS_PROP_GS_Capable, 0x6496aba2,0x61b0,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
77DEFINE_GUID(GUID_DMUS_PROP_GS_Hardware, 0x178f2f25,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
78DEFINE_GUID(GUID_DMUS_PROP_DLS1, 0x178f2f27,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
79DEFINE_GUID(GUID_DMUS_PROP_DLS2, 0xf14599e5,0x4689,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
80DEFINE_GUID(GUID_DMUS_PROP_Effects, 0xcda8d611,0x684a,0x11d2,0x87,0x1e,0x00,0x60,0x08,0x93,0xb1,0xbd);
81DEFINE_GUID(GUID_DMUS_PROP_INSTRUMENT2, 0x865fd372,0x9f67,0x11d2,0x87,0x2a,0x00,0x60,0x08,0x93,0xb1,0xbd);
82DEFINE_GUID(GUID_DMUS_PROP_LegacyCaps, 0xcfa7cdc2,0x00a1,0x11d2,0xaa,0xd5,0x00,0x00,0xf8,0x75,0xac,0x12);
83DEFINE_GUID(GUID_DMUS_PROP_MemorySize, 0x178f2f28,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
84DEFINE_GUID(GUID_DMUS_PROP_SampleMemorySize, 0x178f2f28,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
85DEFINE_GUID(GUID_DMUS_PROP_SamplePlaybackRate, 0x2a91f713,0xa4bf,0x11d2,0xbb,0xdf,0x00,0x60,0x08,0x33,0xdb,0xd8);
86DEFINE_GUID(GUID_DMUS_PROP_SynthSink_DSOUND, 0x0aa97844,0xc877,0x11d1,0x87,0x0c,0x00,0x60,0x08,0x93,0xb1,0xbd);
87DEFINE_GUID(GUID_DMUS_PROP_SynthSink_WAVE, 0x0aa97845,0xc877,0x11d1,0x87,0x0c,0x00,0x60,0x08,0x93,0xb1,0xbd);
88DEFINE_GUID(GUID_DMUS_PROP_Volume, 0xfedfae25,0xe46e,0x11d1,0xaa,0xce,0x00,0x00,0xf8,0x75,0xac,0x12);
89DEFINE_GUID(GUID_DMUS_PROP_WavesReverb, 0x04cb5622,0x32e5,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
90DEFINE_GUID(GUID_DMUS_PROP_WriteLatency, 0x268a0fa0,0x60f2,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
91DEFINE_GUID(GUID_DMUS_PROP_WritePeriod, 0x268a0fa1,0x60f2,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
92DEFINE_GUID(GUID_DMUS_PROP_XG_Capable, 0x6496aba1,0x61b0,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
93DEFINE_GUID(GUID_DMUS_PROP_XG_Hardware, 0x178f2f26,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
94
95/* typedef definitions */
96typedef struct IDirectMusic *LPDIRECTMUSIC;
97typedef struct IDirectMusic8 *LPDIRECTMUSIC8;
98typedef struct IDirectMusicBuffer *LPDIRECTMUSICBUFFER;
99typedef struct IDirectMusicBuffer IDirectMusicBuffer8, *LPDIRECTMUSICBUFFER8;
100typedef struct IDirectMusicInstrument *LPDIRECTMUSICINSTRUMENT;
101typedef struct IDirectMusicInstrument IDirectMusicInstrument8, *LPDIRECTMUSICINSTRUMENT8;
102typedef struct IDirectMusicDownloadedInstrument *LPDIRECTMUSICDOWNLOADEDINSTRUMENT;
103typedef struct IDirectMusicDownloadedInstrument IDirectMusicDownloadedInstrument8, *LPDIRECTMUSICDOWNLOADEDINSTRUMENT8;
104typedef struct IDirectMusicCollection *LPDIRECTMUSICCOLLECTION;
105typedef struct IDirectMusicCollection IDirectMusicCollection8, *LPDIRECTMUSICCOLLECTION8;
106typedef struct IDirectMusicDownload *LPDIRECTMUSICDOWNLOAD;
107typedef struct IDirectMusicDownload IDirectMusicDownload8, *LPDIRECTMUSICDOWNLOAD8;
108typedef struct IDirectMusicPortDownload *LPDIRECTMUSICPORTDOWNLOAD;
109typedef struct IDirectMusicPortDownload IDirectMusicPortDownload8, *LPDIRECTMUSICPORTDOWNLOAD8;
110typedef struct IDirectMusicPort *LPDIRECTMUSICPORT;
111typedef struct IDirectMusicPort IDirectMusicPort8, *LPDIRECTMUSICPORT8;
112typedef struct IDirectMusicThru *LPDIRECTMUSICTHRU;
113typedef struct IDirectMusicThru IDirectMusicThru8, *LPDIRECTMUSICTHRU8;
115
116
117/*****************************************************************************
118 * Typedef definitions
119 */
122
123
124/*****************************************************************************
125 * Flags
126 */
127#ifndef _DIRECTAUDIO_PRIORITIES_DEFINED_
128#define _DIRECTAUDIO_PRIORITIES_DEFINED_
129
130#define DAUD_CRITICAL_VOICE_PRIORITY 0xF0000000
131#define DAUD_HIGH_VOICE_PRIORITY 0xC0000000
132#define DAUD_STANDARD_VOICE_PRIORITY 0x80000000
133#define DAUD_LOW_VOICE_PRIORITY 0x40000000
134#define DAUD_PERSIST_VOICE_PRIORITY 0x10000000
135
136#define DAUD_CHAN1_VOICE_PRIORITY_OFFSET 0x0000000E
137#define DAUD_CHAN2_VOICE_PRIORITY_OFFSET 0x0000000D
138#define DAUD_CHAN3_VOICE_PRIORITY_OFFSET 0x0000000C
139#define DAUD_CHAN4_VOICE_PRIORITY_OFFSET 0x0000000B
140#define DAUD_CHAN5_VOICE_PRIORITY_OFFSET 0x0000000A
141#define DAUD_CHAN6_VOICE_PRIORITY_OFFSET 0x00000009
142#define DAUD_CHAN7_VOICE_PRIORITY_OFFSET 0x00000008
143#define DAUD_CHAN8_VOICE_PRIORITY_OFFSET 0x00000007
144#define DAUD_CHAN9_VOICE_PRIORITY_OFFSET 0x00000006
145#define DAUD_CHAN10_VOICE_PRIORITY_OFFSET 0x0000000F
146#define DAUD_CHAN11_VOICE_PRIORITY_OFFSET 0x00000005
147#define DAUD_CHAN12_VOICE_PRIORITY_OFFSET 0x00000004
148#define DAUD_CHAN13_VOICE_PRIORITY_OFFSET 0x00000003
149#define DAUD_CHAN14_VOICE_PRIORITY_OFFSET 0x00000002
150#define DAUD_CHAN15_VOICE_PRIORITY_OFFSET 0x00000001
151#define DAUD_CHAN16_VOICE_PRIORITY_OFFSET 0x00000000
152
153#define DAUD_CHAN1_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN1_VOICE_PRIORITY_OFFSET)
154#define DAUD_CHAN2_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN2_VOICE_PRIORITY_OFFSET)
155#define DAUD_CHAN3_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN3_VOICE_PRIORITY_OFFSET)
156#define DAUD_CHAN4_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN4_VOICE_PRIORITY_OFFSET)
157#define DAUD_CHAN5_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN5_VOICE_PRIORITY_OFFSET)
158#define DAUD_CHAN6_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN6_VOICE_PRIORITY_OFFSET)
159#define DAUD_CHAN7_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN7_VOICE_PRIORITY_OFFSET)
160#define DAUD_CHAN8_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN8_VOICE_PRIORITY_OFFSET)
161#define DAUD_CHAN9_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN9_VOICE_PRIORITY_OFFSET)
162#define DAUD_CHAN10_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN10_VOICE_PRIORITY_OFFSET)
163#define DAUD_CHAN11_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN11_VOICE_PRIORITY_OFFSET)
164#define DAUD_CHAN12_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN12_VOICE_PRIORITY_OFFSET)
165#define DAUD_CHAN13_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN13_VOICE_PRIORITY_OFFSET)
166#define DAUD_CHAN14_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN14_VOICE_PRIORITY_OFFSET)
167#define DAUD_CHAN15_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN15_VOICE_PRIORITY_OFFSET)
168#define DAUD_CHAN16_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN16_VOICE_PRIORITY_OFFSET)
169#endif /* _DIRECTAUDIO_PRIORITIES_DEFINED_ */
170
171#define DMUS_CLOCKF_GLOBAL 0x1
172
173#define DMUS_EFFECT_NONE 0x0
174#define DMUS_EFFECT_REVERB 0x1
175#define DMUS_EFFECT_CHORUS 0x2
176#define DMUS_EFFECT_DELAY 0x4
177
178#define DMUS_MAX_DESCRIPTION 0x80
179#define DMUS_MAX_DRIVER 0x80
180
181#define DMUS_PC_INPUTCLASS 0x0
182#define DMUS_PC_OUTPUTCLASS 0x1
183
184#define DMUS_PC_DLS 0x00000001
185#define DMUS_PC_EXTERNAL 0x00000002
186#define DMUS_PC_SOFTWARESYNTH 0x00000004
187#define DMUS_PC_MEMORYSIZEFIXED 0x00000008
188#define DMUS_PC_GMINHARDWARE 0x00000010
189#define DMUS_PC_GSINHARDWARE 0x00000020
190#define DMUS_PC_XGINHARDWARE 0x00000040
191#define DMUS_PC_DIRECTSOUND 0x00000080
192#define DMUS_PC_SHAREABLE 0x00000100
193#define DMUS_PC_DLS2 0x00000200
194#define DMUS_PC_AUDIOPATH 0x00000400
195#define DMUS_PC_WAVE 0x00000800
196#define DMUS_PC_SYSTEMMEMORY 0x7FFFFFFF
197
198#define DMUS_PORT_WINMM_DRIVER 0x0
199#define DMUS_PORT_USER_MODE_SYNTH 0x1
200#define DMUS_PORT_KERNEL_MODE 0x2
201
202#define DMUS_PORT_FEATURE_AUDIOPATH 0x1
203#define DMUS_PORT_FEATURE_STREAMING 0x2
204
205#define DMUS_PORTPARAMS_VOICES 0x01
206#define DMUS_PORTPARAMS_CHANNELGROUPS 0x02
207#define DMUS_PORTPARAMS_AUDIOCHANNELS 0x04
208#define DMUS_PORTPARAMS_SAMPLERATE 0x08
209#define DMUS_PORTPARAMS_EFFECTS 0x20
210#define DMUS_PORTPARAMS_SHARE 0x40
211#define DMUS_PORTPARAMS_FEATURES 0x80
212
213#define DMUS_VOLUME_MAX 2000
214#define DMUS_VOLUME_MIN -20000
215
216#define DMUS_SYNTHSTATS_VOICES 0x01
217#define DMUS_SYNTHSTATS_TOTAL_CPU 0x02
218#define DMUS_SYNTHSTATS_CPU_PER_VOICE 0x04
219#define DMUS_SYNTHSTATS_LOST_NOTES 0x08
220#define DMUS_SYNTHSTATS_PEAK_VOLUME 0x10
221#define DMUS_SYNTHSTATS_FREE_MEMORY 0x20
222#define DMUS_SYNTHSTATS_SYSTEMMEMORY DMUS_PC_SYSTEMMEMORY
223
224#define DSBUSID_FIRST_SPKR_LOC 0x00000000
225#define DSBUSID_FRONT_LEFT 0x00000000
226#define DSBUSID_LEFT 0x00000000
227#define DSBUSID_FRONT_RIGHT 0x00000001
228#define DSBUSID_RIGHT 0x00000001
229#define DSBUSID_FRONT_CENTER 0x00000002
230#define DSBUSID_LOW_FREQUENCY 0x00000003
231#define DSBUSID_BACK_LEFT 0x00000004
232#define DSBUSID_BACK_RIGHT 0x00000005
233#define DSBUSID_FRONT_LEFT_OF_CENTER 0x00000006
234#define DSBUSID_FRONT_RIGHT_OF_CENTER 0x00000007
235#define DSBUSID_BACK_CENTER 0x00000008
236#define DSBUSID_SIDE_LEFT 0x00000009
237#define DSBUSID_SIDE_RIGHT 0x0000000A
238#define DSBUSID_TOP_CENTER 0x0000000B
239#define DSBUSID_TOP_FRONT_LEFT 0x0000000C
240#define DSBUSID_TOP_FRONT_CENTER 0x0000000D
241#define DSBUSID_TOP_FRONT_RIGHT 0x0000000E
242#define DSBUSID_TOP_BACK_LEFT 0x0000000F
243#define DSBUSID_TOP_BACK_CENTER 0x00000010
244#define DSBUSID_TOP_BACK_RIGHT 0x011
245#define DSBUSID_LAST_SPKR_LOC 0x00000011
246#define DSBUSID_IS_SPKR_LOC(id) (((id) >= DSBUSID_FIRST_SPKR_LOC) && ((id) <= DSBUSID_LAST_SPKR_LOC))
247
248#define DSBUSID_REVERB_SEND 0x00000040
249#define DSBUSID_CHORUS_SEND 0x00000041
250
251#define DSBUSID_DYNAMIC_0 0x00000200
252
253#define DSBUSID_NULL 0xFFFFFFFF
254
255/*****************************************************************************
256 * Enumerations
257 */
258typedef enum {
260 DMUS_CLOCK_WAVE = 0x1
262
263
264/*****************************************************************************
265 * Structures
266 */
267/* typedef definitions */
279
280
281/* actual structures */
287} ;
288
301};
302
312};
313
324};
325
335};
336
347};
348
350 float fInGain;
354};
355
361};
362
369};
370
371
372/*****************************************************************************
373 * IDirectMusic interface
374 */
375#define INTERFACE IDirectMusic
377{
378 /*** IUnknown methods ***/
382 /*** IDirectMusic methods ***/
383 STDMETHOD(EnumPort)(THIS_ DWORD dwIndex, LPDMUS_PORTCAPS pPortCaps) PURE;
384 STDMETHOD(CreateMusicBuffer)(THIS_ LPDMUS_BUFFERDESC pBufferDesc, LPDIRECTMUSICBUFFER *ppBuffer, LPUNKNOWN pUnkOuter) PURE;
385 STDMETHOD(CreatePort)(THIS_ REFCLSID rclsidPort, LPDMUS_PORTPARAMS pPortParams, LPDIRECTMUSICPORT *ppPort, LPUNKNOWN pUnkOuter) PURE;
386 STDMETHOD(EnumMasterClock)(THIS_ DWORD dwIndex, LPDMUS_CLOCKINFO lpClockInfo) PURE;
387 STDMETHOD(GetMasterClock)(THIS_ LPGUID pguidClock, struct IReferenceClock **ppReferenceClock) PURE;
388 STDMETHOD(SetMasterClock)(THIS_ REFGUID rguidClock) PURE;
389 STDMETHOD(Activate)(THIS_ BOOL fEnable) PURE;
390 STDMETHOD(GetDefaultPort)(THIS_ LPGUID pguidPort) PURE;
391 STDMETHOD(SetDirectSound)(THIS_ LPDIRECTSOUND pDirectSound, HWND hWnd) PURE;
392};
393#undef INTERFACE
394
395#if !defined(__cplusplus) || defined(CINTERFACE)
396/*** IUnknown methods ***/
397#define IDirectMusic_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
398#define IDirectMusic_AddRef(p) (p)->lpVtbl->AddRef(p)
399#define IDirectMusic_Release(p) (p)->lpVtbl->Release(p)
400/*** IDirectMusic methods ***/
401#define IDirectMusic_EnumPort(p,a,b) (p)->lpVtbl->EnumPort(p,a,b)
402#define IDirectMusic_CreateMusicBuffer(p,a,b,c) (p)->lpVtbl->CreateMusicBuffer(p,a,b,c)
403#define IDirectMusic_CreatePort(p,a,b,c,d) (p)->lpVtbl->CreatePort(p,a,b,c,d)
404#define IDirectMusic_EnumMasterClock(p,a,b) (p)->lpVtbl->EnumMasterClock(p,a,b)
405#define IDirectMusic_GetMasterClock(p,a,b) (p)->lpVtbl->GetMasterClock(p,a,b)
406#define IDirectMusic_SetMasterClock(p,a) (p)->lpVtbl->SetMasterClock(p,a)
407#define IDirectMusic_Activate(p,a) (p)->lpVtbl->Activate(p,a)
408#define IDirectMusic_GetDefaultPort(p,a) (p)->lpVtbl->GetDefaultPort(p,a)
409#define IDirectMusic_SetDirectSound(p,a,b) (p)->lpVtbl->SetDirectSound(p,a,b)
410#endif
411
412
413/*****************************************************************************
414 * IDirectMusic8 interface
415 */
416#define INTERFACE IDirectMusic8
417DECLARE_INTERFACE_(IDirectMusic8,IDirectMusic)
418{
419 /*** IUnknown methods ***/
423 /*** IDirectMusic methods ***/
424 STDMETHOD(EnumPort)(THIS_ DWORD dwIndex, LPDMUS_PORTCAPS pPortCaps) PURE;
425 STDMETHOD(CreateMusicBuffer)(THIS_ LPDMUS_BUFFERDESC pBufferDesc, LPDIRECTMUSICBUFFER *ppBuffer, LPUNKNOWN pUnkOuter) PURE;
426 STDMETHOD(CreatePort)(THIS_ REFCLSID rclsidPort, LPDMUS_PORTPARAMS pPortParams, LPDIRECTMUSICPORT *ppPort, LPUNKNOWN pUnkOuter) PURE;
427 STDMETHOD(EnumMasterClock)(THIS_ DWORD dwIndex, LPDMUS_CLOCKINFO lpClockInfo) PURE;
428 STDMETHOD(GetMasterClock)(THIS_ LPGUID pguidClock, struct IReferenceClock **ppReferenceClock) PURE;
429 STDMETHOD(SetMasterClock)(THIS_ REFGUID rguidClock) PURE;
430 STDMETHOD(Activate)(THIS_ BOOL fEnable) PURE;
431 STDMETHOD(GetDefaultPort)(THIS_ LPGUID pguidPort) PURE;
432 STDMETHOD(SetDirectSound)(THIS_ LPDIRECTSOUND pDirectSound, HWND hWnd) PURE;
433 /*** IDirectMusic8 methods ***/
434 STDMETHOD(SetExternalMasterClock)(THIS_ struct IReferenceClock *pClock) PURE;
435};
436#undef INTERFACE
437
438#if !defined(__cplusplus) || defined(CINTERFACE)
439/*** IUnknown methods ***/
440#define IDirectMusic8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
441#define IDirectMusic8_AddRef(p) (p)->lpVtbl->AddRef(p)
442#define IDirectMusic8_Release(p) (p)->lpVtbl->Release(p)
443/*** IDirectMusic methods ***/
444#define IDirectMusic8_EnumPort(p,a,b) (p)->lpVtbl->EnumPort(p,a,b)
445#define IDirectMusic8_CreateMusicBuffer(p,a,b,c) (p)->lpVtbl->CreateMusicBuffer(p,a,b,c)
446#define IDirectMusic8_CreatePort(p,a,b,c,d) (p)->lpVtbl->CreatePort(p,a,b,c,d)
447#define IDirectMusic8_EnumMasterClock(p,a,b) (p)->lpVtbl->EnumMasterClock(p,a,b)
448#define IDirectMusic8_GetMasterClock(p,a,b) (p)->lpVtbl->GetMasterClock(p,a,b)
449#define IDirectMusic8_SetMasterClock(p,a) (p)->lpVtbl->SetMasterClock(p,a)
450#define IDirectMusic8_Activate(p,a) (p)->lpVtbl->Activate(p,a)
451#define IDirectMusic8_GetDefaultPort(p,a) (p)->lpVtbl->GetDefaultPort(p,a)
452#define IDirectMusic8_SetDirectSound(p,a,b) (p)->lpVtbl->SetDirectSound(p,a,b)
453/*** IDirectMusic8 methods ***/
454#define IDirectMusic8_SetExternalMasterClock(p,a) (p)->lpVtbl->SetExternalMasterClock(p,a)
455#endif
456
457
458/*****************************************************************************
459 * IDirectMusicBuffer interface
460 */
461#define INTERFACE IDirectMusicBuffer
462DECLARE_INTERFACE_(IDirectMusicBuffer,IUnknown)
463{
464 /*** IUnknown methods ***/
468 /*** IDirectMusicBuffer methods ***/
470 STDMETHOD(TotalTime)(THIS_ LPREFERENCE_TIME prtTime) PURE;
471 STDMETHOD(PackStructured)(THIS_ REFERENCE_TIME rt, DWORD dwChannelGroup, DWORD dwChannelMessage) PURE;
472 STDMETHOD(PackUnstructured)(THIS_ REFERENCE_TIME rt, DWORD dwChannelGroup, DWORD cb, LPBYTE lpb) PURE;
473 STDMETHOD(ResetReadPtr)(THIS) PURE;
474 STDMETHOD(GetNextEvent)(THIS_ LPREFERENCE_TIME prt, LPDWORD pdwChannelGroup, LPDWORD pdwLength, LPBYTE *ppData) PURE;
475 STDMETHOD(GetRawBufferPtr)(THIS_ LPBYTE *ppData) PURE;
476 STDMETHOD(GetStartTime)(THIS_ LPREFERENCE_TIME prt) PURE;
477 STDMETHOD(GetUsedBytes)(THIS_ LPDWORD pcb) PURE;
478 STDMETHOD(GetMaxBytes)(THIS_ LPDWORD pcb) PURE;
479 STDMETHOD(GetBufferFormat)(THIS_ LPGUID pGuidFormat) PURE;
480 STDMETHOD(SetStartTime)(THIS_ REFERENCE_TIME rt) PURE;
481 STDMETHOD(SetUsedBytes)(THIS_ DWORD cb) PURE;
482};
483#undef INTERFACE
484
485#if !defined(__cplusplus) || defined(CINTERFACE)
486/*** IUnknown methods ***/
487#define IDirectMusicBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
488#define IDirectMusicBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
489#define IDirectMusicBuffer_Release(p) (p)->lpVtbl->Release(p)
490/*** IDirectMusicBuffer methods ***/
491#define IDirectMusicBuffer_Flush(p) (p)->lpVtbl->Flush(p)
492#define IDirectMusicBuffer_TotalTime(p,a) (p)->lpVtbl->TotalTime(p,a)
493#define IDirectMusicBuffer_PackStructured(p,a,b,c) (p)->lpVtbl->PackStructured(p,a,b,c)
494#define IDirectMusicBuffer_PackUnstructured(p,a,b,c,d) (p)->lpVtbl->PackUnstructured(p,a,b,c,d)
495#define IDirectMusicBuffer_ResetReadPtr(p) (p)->lpVtbl->ResetReadPtr(p)
496#define IDirectMusicBuffer_GetNextEvent(p,a,b,c,d) (p)->lpVtbl->GetNextEvent(p,a,b,c,d)
497#define IDirectMusicBuffer_GetRawBufferPtr(p,a) (p)->lpVtbl->GetRawBufferPtr(p,a)
498#define IDirectMusicBuffer_GetStartTime(p,a) (p)->lpVtbl->GetStartTime(p,a)
499#define IDirectMusicBuffer_GetUsedBytes(p,a) (p)->lpVtbl->GetUsedBytes(p,a)
500#define IDirectMusicBuffer_GetMaxBytes(p,a) (p)->lpVtbl->GetMaxBytes(p,a)
501#define IDirectMusicBuffer_GetBufferFormat(p,a) (p)->lpVtbl->GetBufferFormat(p,a)
502#define IDirectMusicBuffer_SetStartTime(p,a) (p)->lpVtbl->SetStartTime(p,a)
503#define IDirectMusicBuffer_SetUsedBytes(p,a) (p)->lpVtbl->SetUsedBytes(p,a)
504#endif
505
506
507/*****************************************************************************
508 * IDirectMusicInstrument interface
509 */
510#define INTERFACE IDirectMusicInstrument
511DECLARE_INTERFACE_(IDirectMusicInstrument,IUnknown)
512{
513 /*** IUnknown methods ***/
517 /*** IDirectMusicInstrument methods ***/
518 STDMETHOD(GetPatch)(THIS_ DWORD *pdwPatch) PURE;
519 STDMETHOD(SetPatch)(THIS_ DWORD dwPatch) PURE;
520};
521#undef INTERFACE
522
523#if !defined(__cplusplus) || defined(CINTERFACE)
524/*** IUnknown methods ***/
525#define IDirectMusicInstrument_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
526#define IDirectMusicInstrument_AddRef(p) (p)->lpVtbl->AddRef(p)
527#define IDirectMusicInstrument_Release(p) (p)->lpVtbl->Release(p)
528/*** IDirectMusicInstrument methods ***/
529#define IDirectMusicInstrument_GetPatch(p,a) (p)->lpVtbl->GetPatch(p,a)
530#define IDirectMusicInstrument_SetPatch(p,a) (p)->lpVtbl->SetPatch(p,a)
531#endif
532
533
534/*****************************************************************************
535 * IDirectMusicDownloadedInstrument interface
536 */
537#define INTERFACE IDirectMusicDownloadedInstrument
538DECLARE_INTERFACE_(IDirectMusicDownloadedInstrument,IUnknown)
539{
540 /*** IUnknown methods ***/
544 /* no IDirectMusicDownloadedInstrument methods at this time */
545};
546#undef INTERFACE
547
548#if !defined(__cplusplus) || defined(CINTERFACE)
549/*** IUnknown methods ***/
550#define IDirectMusicDownloadedInstrument_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
551#define IDirectMusicDownloadedInstrument_AddRef(p) (p)->lpVtbl->AddRef(p)
552#define IDirectMusicDownloadedInstrument_Release(p) (p)->lpVtbl->Release(p)
553/*** IDirectMusicDownloadedInstrument methods ***/
554/* none at this time */
555#endif
556
557
558/*****************************************************************************
559 * IDirectMusicCollection interface
560 */
561#define INTERFACE IDirectMusicCollection
562DECLARE_INTERFACE_(IDirectMusicCollection,IUnknown)
563{
564 /*** IUnknown methods ***/
568 /*** IDirectMusicCollection methods ***/
569 STDMETHOD(GetInstrument)(THIS_ DWORD dwPatch, IDirectMusicInstrument **ppInstrument) PURE;
570 STDMETHOD(EnumInstrument)(THIS_ DWORD dwIndex, DWORD *pdwPatch, LPWSTR pwszName, DWORD dwNameLen) PURE;
571};
572#undef INTERFACE
573
574#if !defined(__cplusplus) || defined(CINTERFACE)
575/*** IUnknown methods ***/
576#define IDirectMusicCollection_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
577#define IDirectMusicCollection_AddRef(p) (p)->lpVtbl->AddRef(p)
578#define IDirectMusicCollection_Release(p) (p)->lpVtbl->Release(p)
579/*** IDirectMusicCollection methods ***/
580#define IDirectMusicCollection_GetInstrument(p,a,b) (p)->lpVtbl->GetInstrument(p,a,b)
581#define IDirectMusicCollection_EnumInstrument(p,a,b,c,d) (p)->lpVtbl->EnumInstrument(p,a,b,c,d)
582#endif
583
584
585/*****************************************************************************
586 * IDirectMusicDownload interface
587 */
588#define INTERFACE IDirectMusicDownload
589DECLARE_INTERFACE_(IDirectMusicDownload,IUnknown)
590{
591 /*** IUnknown methods ***/
595 /*** IDirectMusicDownload methods ***/
596 STDMETHOD(GetBuffer)(THIS_ void **ppvBuffer, DWORD *pdwSize) PURE;
597};
598#undef INTERFACE
599
600#if !defined(__cplusplus) || defined(CINTERFACE)
601/*** IUnknown methods ***/
602#define IDirectMusicDownload_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
603#define IDirectMusicDownload_AddRef(p) (p)->lpVtbl->AddRef(p)
604#define IDirectMusicDownload_Release(p) (p)->lpVtbl->Release(p)
605/*** IDirectMusicDownload methods ***/
606#define IDirectMusicDownload_GetBuffer(p,a,b) (p)->lpVtbl->GetBuffer(p,a,b)
607#endif
608
609
610/*****************************************************************************
611 * IDirectMusicPortDownload interface
612 */
613#define INTERFACE IDirectMusicPortDownload
614DECLARE_INTERFACE_(IDirectMusicPortDownload,IUnknown)
615{
616 /*** IUnknown methods ***/
620 /*** IDirectMusicPortDownload methods ***/
621 STDMETHOD(GetBuffer)(THIS_ DWORD dwDLId, IDirectMusicDownload **ppIDMDownload) PURE;
622 STDMETHOD(AllocateBuffer)(THIS_ DWORD dwSize, IDirectMusicDownload **ppIDMDownload) PURE;
623 STDMETHOD(GetDLId)(THIS_ DWORD *pdwStartDLId, DWORD dwCount) PURE;
624 STDMETHOD(GetAppend)(THIS_ DWORD *pdwAppend) PURE;
625 STDMETHOD(Download)(THIS_ IDirectMusicDownload *pIDMDownload) PURE;
626 STDMETHOD(Unload)(THIS_ IDirectMusicDownload *pIDMDownload) PURE;
627};
628#undef INTERFACE
629
630#if !defined(__cplusplus) || defined(CINTERFACE)
631/*** IUnknown methods ***/
632#define IDirectMusicPortDownload_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
633#define IDirectMusicPortDownload_AddRef(p) (p)->lpVtbl->AddRef(p)
634#define IDirectMusicPortDownload_Release(p) (p)->lpVtbl->Release(p)
635/*** IDirectMusicPortDownload methods ***/
636#define IDirectMusicPortDownload_GetBuffer(p,a,b) (p)->lpVtbl->GetBuffer(p,a,b)
637#define IDirectMusicPortDownload_AllocateBuffer(p,a,b) (p)->lpVtbl->AllocateBuffer(p,a,b)
638#define IDirectMusicPortDownload_GetDLId(p,a,b) (p)->lpVtbl->GetDLId(p,a,b)
639#define IDirectMusicPortDownload_GetAppend(p,a) (p)->lpVtbl->GetAppend(p,a)
640#define IDirectMusicPortDownload_Download(p,a) (p)->lpVtbl->Download(p,a)
641#define IDirectMusicPortDownload_Unload(p,a) (p)->lpVtbl->Unload(p,a)
642#endif
643
644
645/*****************************************************************************
646 * IDirectMusicPort interface
647 */
648#define INTERFACE IDirectMusicPort
650{
651 /*** IUnknown methods ***/
655 /*** IDirectMusicPort methods ***/
657 STDMETHOD(SetReadNotificationHandle)(THIS_ HANDLE hEvent) PURE;
659 STDMETHOD(DownloadInstrument)(THIS_ IDirectMusicInstrument *pInstrument, IDirectMusicDownloadedInstrument **ppDownloadedInstrument, DMUS_NOTERANGE *pNoteRanges, DWORD dwNumNoteRanges) PURE;
660 STDMETHOD(UnloadInstrument)(THIS_ IDirectMusicDownloadedInstrument *pDownloadedInstrument) PURE;
661 STDMETHOD(GetLatencyClock)(THIS_ struct IReferenceClock **ppClock) PURE;
662 STDMETHOD(GetRunningStats)(THIS_ LPDMUS_SYNTHSTATS pStats) PURE;
663 STDMETHOD(Compact)(THIS) PURE;
664 STDMETHOD(GetCaps)(THIS_ LPDMUS_PORTCAPS pPortCaps) PURE;
666 STDMETHOD(SetNumChannelGroups)(THIS_ DWORD dwChannelGroups) PURE;
667 STDMETHOD(GetNumChannelGroups)(THIS_ LPDWORD pdwChannelGroups) PURE;
668 STDMETHOD(Activate)(THIS_ BOOL fActive) PURE;
669 STDMETHOD(SetChannelPriority)(THIS_ DWORD dwChannelGroup, DWORD dwChannel, DWORD dwPriority) PURE;
670 STDMETHOD(GetChannelPriority)(THIS_ DWORD dwChannelGroup, DWORD dwChannel, LPDWORD pdwPriority) PURE;
671 STDMETHOD(SetDirectSound)(THIS_ LPDIRECTSOUND pDirectSound, LPDIRECTSOUNDBUFFER pDirectSoundBuffer) PURE;
672 STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX pWaveFormatEx, LPDWORD pdwWaveFormatExSize, LPDWORD pdwBufferSize) PURE;
673};
674#undef INTERFACE
675
676#if !defined(__cplusplus) || defined(CINTERFACE)
677/*** IUnknown methods ***/
678#define IDirectMusicPort_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
679#define IDirectMusicPort_AddRef(p) (p)->lpVtbl->AddRef(p)
680#define IDirectMusicPort_Release(p) (p)->lpVtbl->Release(p)
681/*** IDirectMusicPort methods ***/
682#define IDirectMusicPort_PlayBuffer(p,a) (p)->lpVtbl->PlayBuffer(p,a)
683#define IDirectMusicPort_SetReadNotificationHandle(p,a) (p)->lpVtbl->SetReadNotificationHandle(p,a)
684#define IDirectMusicPort_Read(p,a) (p)->lpVtbl->Read(p,a)
685#define IDirectMusicPort_DownloadInstrument(p,a,b,c,d) (p)->lpVtbl->DownloadInstrument(p,a,b,c,d)
686#define IDirectMusicPort_UnloadInstrument(p,a) (p)->lpVtbl->UnloadInstrument(p,a)
687#define IDirectMusicPort_GetLatencyClock(p,a) (p)->lpVtbl->GetLatencyClock(p,a)
688#define IDirectMusicPort_GetRunningStats(p,a) (p)->lpVtbl->GetRunningStats(p,a)
689#define IDirectMusicPort_Compact(p) (p)->lpVtbl->Compact(p)
690#define IDirectMusicPort_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
691#define IDirectMusicPort_DeviceIoControl(p,a,b,c,d,e,f,g) (p)->lpVtbl->DeviceIoControl(p,a,b,c,d,e,f,g)
692#define IDirectMusicPort_SetNumChannelGroups(p,a) (p)->lpVtbl->SetNumChannelGroups(p,a)
693#define IDirectMusicPort_GetNumChannelGroups(p,a) (p)->lpVtbl->GetNumChannelGroups(p,a)
694#define IDirectMusicPort_Activate(p,a) (p)->lpVtbl->Activate(p,a)
695#define IDirectMusicPort_SetChannelPriority(p,a,b,c) (p)->lpVtbl->SetChannelPriority(p,a,b,c)
696#define IDirectMusicPort_GetChannelPriority(p,a,b,c) (p)->lpVtbl->GetChannelPriority(p,a,b,c)
697#define IDirectMusicPort_SetDirectSound(p,a,b) (p)->lpVtbl->SetDirectSound(p,a,b)
698#define IDirectMusicPort_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c)
699#endif
700
701
702/*****************************************************************************
703 * IDirectMusicThru interface
704 */
705#define INTERFACE IDirectMusicThru
707{
708 /*** IUnknown methods ***/
712 /*** IDirectMusicThru methods ***/
713 STDMETHOD(ThruChannel)(THIS_ DWORD dwSourceChannelGroup, DWORD dwSourceChannel, DWORD dwDestinationChannelGroup, DWORD dwDestinationChannel, LPDIRECTMUSICPORT pDestinationPort) PURE;
714};
715#undef INTERFACE
716
717#if !defined(__cplusplus) || defined(CINTERFACE)
718/*** IUnknown methods ***/
719#define IDirectMusicThru_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
720#define IDirectMusicThru_AddRef(p) (p)->lpVtbl->AddRef(p)
721#define IDirectMusicThru_Release(p) (p)->lpVtbl->Release(p)
722/*** IDirectMusicThru methods ***/
723#define IDirectMusicThru_ThruChannel(p,a,b,c,d,e) (p)->lpVtbl->ThruChannel(p,a,b,c,d,e)
724#endif
725
726
727/* IReferenceClock comes from strmif.h, included above. Wine's dmusicc.h does
728 * the same; the DirectMusic modules expect its HEVENT/DWORD_PTR signatures. */
729
730#ifdef __cplusplus
731}
732#endif
733
734#include <poppack.h>
735
736#endif /* __WINE_DMUSIC_CORE_H */
HWND hWnd
Definition: settings.c:17
#define DECLARE_INTERFACE_(i, b)
Definition: basetyps.h:78
#define PURE
Definition: basetyps.h:64
#define THIS_
Definition: basetyps.h:65
#define THIS
Definition: basetyps.h:66
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
#define STDMETHOD(m)
Definition: basetyps.h:62
_In_ BOOLEAN Release
Definition: cdrom.h:920
BOOL WINAPI DeviceIoControl(IN HANDLE hDevice, IN DWORD dwIoControlCode, IN LPVOID lpInBuffer OPTIONAL, IN DWORD nInBufferSize OPTIONAL, OUT LPVOID lpOutBuffer OPTIONAL, IN DWORD nOutBufferSize OPTIONAL, OUT LPDWORD lpBytesReturned OPTIONAL, IN LPOVERLAPPED lpOverlapped OPTIONAL)
Definition: deviceio.c:136
static LPVOID LPUNKNOWN
Definition: dinput.c:53
_Check_return_ _In_ PQUERY_INTERFACE QueryInterface
Definition: dispmprt.h:1318
static MonoProfilerRuntimeShutdownBeginCallback cb
Definition: metahost.c:118
REFERENCE_TIME * LPREFERENCE_TIME
Definition: dmdls.h:21
struct _DMUS_CLOCKINFO8 * LPDMUS_CLOCKINFO8
Definition: dmusicc.h:277
struct IDirectMusicPortDownload * LPDIRECTMUSICPORTDOWNLOAD8
Definition: dmusicc.h:109
struct IDirectMusicDownloadedInstrument IDirectMusicDownloadedInstrument8
Definition: dmusicc.h:103
ULONGLONG * LPSAMPLE_TIME
Definition: dmusicc.h:120
struct IDirectMusicDownload * LPDIRECTMUSICDOWNLOAD
Definition: dmusicc.h:106
struct _DMUS_WAVES_REVERB_PARAMS * LPDMUS_WAVES_REVERB_PARAMS
Definition: dmusicc.h:275
DMUS_PORTPARAMS8 * LPDMUS_PORTPARAMS
Definition: dmusicc.h:272
struct IDirectMusicCollection * LPDIRECTMUSICCOLLECTION8
Definition: dmusicc.h:105
struct IDirectMusic * LPDIRECTMUSIC
Definition: dmusicc.h:96
DMUS_CLOCKINFO8 DMUS_CLOCKINFO
Definition: dmusicc.h:278
struct IDirectMusicPort * LPDIRECTMUSICPORT
Definition: dmusicc.h:110
struct IDirectMusicInstrument IDirectMusicInstrument8
Definition: dmusicc.h:101
struct IDirectMusicPort * LPDIRECTMUSICPORT8
Definition: dmusicc.h:111
struct IDirectMusicInstrument * LPDIRECTMUSICINSTRUMENT8
Definition: dmusicc.h:101
ULONGLONG * LPSAMPLE_POSITION
Definition: dmusicc.h:121
struct IDirectMusicBuffer IDirectMusicBuffer8
Definition: dmusicc.h:99
struct _DMUS_SYNTHSTATS * LPDMUS_SYNTHSTATS
Definition: dmusicc.h:273
ULONGLONG SAMPLE_TIME
Definition: dmusicc.h:120
DMUS_CLOCKTYPE
Definition: dmusicc.h:258
@ DMUS_CLOCK_SYSTEM
Definition: dmusicc.h:259
@ DMUS_CLOCK_WAVE
Definition: dmusicc.h:260
struct IDirectMusicBuffer * LPDIRECTMUSICBUFFER8
Definition: dmusicc.h:99
struct _DMUS_BUFFERDESC * LPDMUS_BUFFERDESC
Definition: dmusicc.h:268
struct IDirectMusicCollection * LPDIRECTMUSICCOLLECTION
Definition: dmusicc.h:104
struct IDirectMusicCollection IDirectMusicCollection8
Definition: dmusicc.h:105
struct IDirectMusicPortDownload IDirectMusicPortDownload8
Definition: dmusicc.h:109
struct IDirectMusicThru IDirectMusicThru8
Definition: dmusicc.h:113
struct _DMUS_PORTCAPS * LPDMUS_PORTCAPS
Definition: dmusicc.h:269
DMUS_CLOCKINFO8 * LPDMUS_CLOCKINFO
Definition: dmusicc.h:278
DMUS_PORTPARAMS8 DMUS_PORTPARAMS
Definition: dmusicc.h:272
struct IDirectMusicDownload * LPDIRECTMUSICDOWNLOAD8
Definition: dmusicc.h:107
struct IDirectMusicPortDownload * LPDIRECTMUSICPORTDOWNLOAD
Definition: dmusicc.h:108
struct IDirectMusicThru * LPDIRECTMUSICTHRU
Definition: dmusicc.h:112
ULONGLONG SAMPLE_POSITION
Definition: dmusicc.h:121
struct IDirectMusicThru * LPDIRECTMUSICTHRU8
Definition: dmusicc.h:113
#define DMUS_MAX_DESCRIPTION
Definition: dmusicc.h:178
struct IDirectMusic8 * LPDIRECTMUSIC8
Definition: dmusicc.h:97
struct _DMUS_PORTPARAMS8 * LPDMUS_PORTPARAMS8
Definition: dmusicc.h:271
struct IDirectMusicDownloadedInstrument * LPDIRECTMUSICDOWNLOADEDINSTRUMENT
Definition: dmusicc.h:102
struct IDirectMusicPort IDirectMusicPort8
Definition: dmusicc.h:111
struct IReferenceClock * LPREFERENCECLOCK
Definition: dmusicc.h:114
struct IDirectMusicInstrument * LPDIRECTMUSICINSTRUMENT
Definition: dmusicc.h:100
struct IDirectMusicDownload IDirectMusicDownload8
Definition: dmusicc.h:107
struct _DMUS_CLOCKINFO7 * LPDMUS_CLOCKINFO7
Definition: dmusicc.h:276
struct IDirectMusicDownloadedInstrument * LPDIRECTMUSICDOWNLOADEDINSTRUMENT8
Definition: dmusicc.h:103
struct _DMUS_SYNTHSTATS8 * LPDMUS_SYNTHSTATS8
Definition: dmusicc.h:274
struct IDirectMusicBuffer * LPDIRECTMUSICBUFFER
Definition: dmusicc.h:98
struct _DMUS_PORTPARAMS * LPDMUS_PORTPARAMS7
Definition: dmusicc.h:270
LONGLONG REFERENCE_TIME
Definition: dmusicks.h:9
struct IDirectSoundBuffer * LPDIRECTSOUNDBUFFER
Definition: dsound.h:76
struct IDirectSound * LPDIRECTSOUND
Definition: dsound.h:70
@ Flush
Definition: fatprocs.h:1055
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
static VOID NTAPI Unload(PDRIVER_OBJECT DriverObject)
Definition: floppy.c:440
return pMemory GetBuffer()
REFIID riid
Definition: atlbase.h:39
PSDBQUERYRESULT_VISTA PVOID * ppData
Definition: env.c:56
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:56
static HANDLE hEvent
Definition: comm.c:54
static ULONG WINAPI AddRef(IStream *iface)
Definition: clist.c:83
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED lpOverlapped
Definition: mswsock.h:93
short WCHAR
Definition: pedump.c:58
long LONG
Definition: pedump.c:60
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
Definition: guiddef.h:68
#define REFIID
Definition: guiddef.h:118
#define REFCLSID
Definition: guiddef.h:117
PVOID pBuffer
_In_ BOOLEAN Read
Definition: strmini.h:479
DWORD cbBuffer
Definition: dmusicc.h:286
GUID guidBufferFormat
Definition: dmusicc.h:285
DMUS_CLOCKTYPE ctType
Definition: dmusicc.h:358
WCHAR wszDescription[DMUS_MAX_DESCRIPTION]
Definition: dmusicc.h:360
WCHAR wszDescription[DMUS_MAX_DESCRIPTION]
Definition: dmusicc.h:367
DMUS_CLOCKTYPE ctType
Definition: dmusicc.h:365
DWORD dwFlags
Definition: dmusicc.h:291
GUID guidPort
Definition: dmusicc.h:292
WCHAR wszDescription[DMUS_MAX_DESCRIPTION]
Definition: dmusicc.h:300
DWORD dwMaxVoices
Definition: dmusicc.h:297
DWORD dwMaxAudioChannels
Definition: dmusicc.h:298
DWORD dwEffectFlags
Definition: dmusicc.h:299
DWORD dwSize
Definition: dmusicc.h:290
DWORD dwMaxChannelGroups
Definition: dmusicc.h:296
DWORD dwMemorySize
Definition: dmusicc.h:295
DWORD dwType
Definition: dmusicc.h:294
DWORD dwClass
Definition: dmusicc.h:293
DWORD dwSampleRate
Definition: dmusicc.h:320
DWORD dwEffectFlags
Definition: dmusicc.h:321
DWORD dwValidParams
Definition: dmusicc.h:316
DWORD dwAudioChannels
Definition: dmusicc.h:319
DWORD dwChannelGroups
Definition: dmusicc.h:318
DWORD dwFeatures
Definition: dmusicc.h:323
DWORD dwSampleRate
Definition: dmusicc.h:309
DWORD dwChannelGroups
Definition: dmusicc.h:307
DWORD dwValidParams
Definition: dmusicc.h:305
DWORD dwAudioChannels
Definition: dmusicc.h:308
DWORD dwVoices
Definition: dmusicc.h:306
DWORD dwEffectFlags
Definition: dmusicc.h:310
DWORD dwCPUPerVoice
Definition: dmusicc.h:342
DWORD dwSynthMemUse
Definition: dmusicc.h:346
DWORD dwFreeMemory
Definition: dmusicc.h:344
DWORD dwValidStats
Definition: dmusicc.h:339
DWORD dwLostNotes
Definition: dmusicc.h:343
DWORD dwTotalCPU
Definition: dmusicc.h:341
DWORD dwCPUPerVoice
Definition: dmusicc.h:331
DWORD dwVoices
Definition: dmusicc.h:329
DWORD dwValidStats
Definition: dmusicc.h:328
DWORD dwTotalCPU
Definition: dmusicc.h:330
DWORD dwLostNotes
Definition: dmusicc.h:332
DWORD dwFreeMemory
Definition: dmusicc.h:333
LONG lPeakVolume
Definition: dmusicc.h:334
Definition: scsiwmi.h:51
unsigned char * LPBYTE
Definition: typedefs.h:53
uint16_t * LPWSTR
Definition: typedefs.h:56
uint32_t * LPDWORD
Definition: typedefs.h:59
uint64_t ULONGLONG
Definition: typedefs.h:67
uint32_t ULONG
Definition: typedefs.h:59
_In_ DWORD _In_ DWORD _In_ DWORD _Out_ LPDWORD lpBytesReturned
Definition: winddi.h:1705
_In_ DWORD dwIoControlCode
Definition: winddi.h:1700