wined3d: Separate pshader/vshader tables.
[wine.git] / include / dmusicc.h
blob424061f17567c69e3a9b9ef8f93265c83111b00d
1 /* DirectMusic Core API Stuff
3 * Copyright (C) 2003-2004 Rok Mandeljc
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
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
13 * GNU Library General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef __WINE_DMUSIC_CORE_H
21 #define __WINE_DMUSIC_CORE_H
23 #ifndef __WINESRC__
24 #include <windows.h>
25 #endif /* __WINESRC__ */
27 #include <objbase.h>
28 #include <mmsystem.h>
30 #include <dls1.h>
31 #include <dmerror.h>
32 #include <dmdls.h>
33 #include <dsound.h>
34 #include <dmusbuff.h>
36 #include <pshpack8.h>
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
43 /*****************************************************************************
44 * Predeclare the interfaces
46 /* CLSIDs */
47 DEFINE_GUID(CLSID_DirectMusic, 0x636b9f10,0x0c7d,0x11d1,0x95,0xb2,0x00,0x20,0xaf,0xdc,0x74,0x21);
48 DEFINE_GUID(CLSID_DirectMusicCollection, 0x480ff4b0,0x28b2,0x11d1,0xbe,0xf7,0x00,0xc0,0x4f,0xbf,0x8f,0xef);
49 DEFINE_GUID(CLSID_DirectMusicSynth, 0x58c2b4d0,0x46e7,0x11d1,0x89,0xac,0x00,0xa0,0xc9,0x05,0x41,0x29);
51 /* IIDs */
52 DEFINE_GUID(IID_IDirectMusic, 0x6536115a,0x7b2d,0x11d2,0xba,0x18,0x00,0x00,0xf8,0x75,0xac,0x12);
53 DEFINE_GUID(IID_IDirectMusic2, 0x6fc2cae1,0xbc78,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
54 DEFINE_GUID(IID_IDirectMusic8, 0x2d3629f7,0x813d,0x4939,0x85,0x08,0xf0,0x5c,0x6b,0x75,0xfd,0x97);
55 DEFINE_GUID(IID_IDirectMusicBuffer, 0xd2ac2878,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
56 DEFINE_GUID(IID_IDirectMusicCollection, 0xd2ac287c,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
57 DEFINE_GUID(IID_IDirectMusicDownload, 0xd2ac287b,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
58 DEFINE_GUID(IID_IDirectMusicDownloadedInstrument, 0xd2ac287e,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
59 DEFINE_GUID(IID_IDirectMusicInstrument, 0xd2ac287d,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
60 DEFINE_GUID(IID_IDirectMusicPort, 0x08f2d8c9,0x37c2,0x11d2,0xb9,0xf9,0x00,0x00,0xf8,0x75,0xac,0x12);
61 DEFINE_GUID(IID_IDirectMusicPortDownload, 0xd2ac287a,0xb39b,0x11d1,0x87,0x04,0x00,0x60,0x08,0x93,0xb1,0xbd);
62 DEFINE_GUID(IID_IDirectMusicThru, 0xced153e7,0x3606,0x11d2,0xb9,0xf9,0x00,0x00,0xf8,0x75,0xac,0x12);
64 #define IID_IDirectMusicCollection8 IID_IDirectMusicCollection
65 #define IID_IDirectMusicDownload8 IID_IDirectMusicDownload
66 #define IID_IDirectMusicDownloadedInstrument8 IID_IDirectMusicDownloadedInstrument
67 #define IID_IDirectMusicInstrument8 IID_IDirectMusicInstrument
68 #define IID_IDirectMusicPort8 IID_IDirectMusicPort
69 #define IID_IDirectMusicPortDownload8 IID_IDirectMusicPortDownload
70 #define IID_IDirectMusicThru8 IID_IDirectMusicThru
72 /* GUIDs - property set */
73 DEFINE_GUID(GUID_DMUS_PROP_GM_Hardware, 0x178f2f24,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
74 DEFINE_GUID(GUID_DMUS_PROP_GS_Capable, 0x6496aba2,0x61b0,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
75 DEFINE_GUID(GUID_DMUS_PROP_GS_Hardware, 0x178f2f25,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
76 DEFINE_GUID(GUID_DMUS_PROP_DLS1, 0x178f2f27,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
77 DEFINE_GUID(GUID_DMUS_PROP_DLS2, 0xf14599e5,0x4689,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
78 DEFINE_GUID(GUID_DMUS_PROP_Effects, 0xcda8d611,0x684a,0x11d2,0x87,0x1e,0x00,0x60,0x08,0x93,0xb1,0xbd);
79 DEFINE_GUID(GUID_DMUS_PROP_INSTRUMENT2, 0x865fd372,0x9f67,0x11d2,0x87,0x2a,0x00,0x60,0x08,0x93,0xb1,0xbd);
80 DEFINE_GUID(GUID_DMUS_PROP_LegacyCaps, 0xcfa7cdc2,0x00a1,0x11d2,0xaa,0xd5,0x00,0x00,0xf8,0x75,0xac,0x12);
81 DEFINE_GUID(GUID_DMUS_PROP_MemorySize, 0x178f2f28,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
82 DEFINE_GUID(GUID_DMUS_PROP_SampleMemorySize, 0x178f2f28,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
83 DEFINE_GUID(GUID_DMUS_PROP_SamplePlaybackRate, 0x2a91f713,0xa4bf,0x11d2,0xbb,0xdf,0x00,0x60,0x08,0x33,0xdb,0xd8);
84 DEFINE_GUID(GUID_DMUS_PROP_SynthSink_DSOUND, 0x0aa97844,0xc877,0x11d1,0x87,0x0c,0x00,0x60,0x08,0x93,0xb1,0xbd);
85 DEFINE_GUID(GUID_DMUS_PROP_SynthSink_WAVE, 0x0aa97845,0xc877,0x11d1,0x87,0x0c,0x00,0x60,0x08,0x93,0xb1,0xbd);
86 DEFINE_GUID(GUID_DMUS_PROP_Volume, 0xfedfae25,0xe46e,0x11d1,0xaa,0xce,0x00,0x00,0xf8,0x75,0xac,0x12);
87 DEFINE_GUID(GUID_DMUS_PROP_WavesReverb, 0x04cb5622,0x32e5,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
88 DEFINE_GUID(GUID_DMUS_PROP_WriteLatency, 0x268a0fa0,0x60f2,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
89 DEFINE_GUID(GUID_DMUS_PROP_WritePeriod, 0x268a0fa1,0x60f2,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
90 DEFINE_GUID(GUID_DMUS_PROP_XG_Capable, 0x6496aba1,0x61b0,0x11d2,0xaf,0xa6,0x00,0xaa,0x00,0x24,0xd8,0xb6);
91 DEFINE_GUID(GUID_DMUS_PROP_XG_Hardware, 0x178f2f26,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
93 /* typedef definitions */
94 typedef struct IDirectMusic *LPDIRECTMUSIC;
95 typedef struct IDirectMusic8 *LPDIRECTMUSIC8;
96 typedef struct IDirectMusicBuffer *LPDIRECTMUSICBUFFER;
97 typedef struct IDirectMusicBuffer IDirectMusicBuffer8, *LPDIRECTMUSICBUFFER8;
98 typedef struct IDirectMusicInstrument *LPDIRECTMUSICINSTRUMENT;
99 typedef struct IDirectMusicInstrument IDirectMusicInstrument8, *LPDIRECTMUSICINSTRUMENT8;
100 typedef struct IDirectMusicDownloadedInstrument *LPDIRECTMUSICDOWNLOADEDINSTRUMENT;
101 typedef struct IDirectMusicDownloadedInstrument IDirectMusicDownloadedInstrument8, *LPDIRECTMUSICDOWNLOADEDINSTRUMENT8;
102 typedef struct IDirectMusicCollection *LPDIRECTMUSICCOLLECTION;
103 typedef struct IDirectMusicCollection IDirectMusicCollection8, *LPDIRECTMUSICCOLLECTION8;
104 typedef struct IDirectMusicDownload *LPDIRECTMUSICDOWNLOAD;
105 typedef struct IDirectMusicDownload IDirectMusicDownload8, *LPDIRECTMUSICDOWNLOAD8;
106 typedef struct IDirectMusicPortDownload *LPDIRECTMUSICPORTDOWNLOAD;
107 typedef struct IDirectMusicPortDownload IDirectMusicPortDownload8, *LPDIRECTMUSICPORTDOWNLOAD8;
108 typedef struct IDirectMusicPort *LPDIRECTMUSICPORT;
109 typedef struct IDirectMusicPort IDirectMusicPort8, *LPDIRECTMUSICPORT8;
110 typedef struct IDirectMusicThru *LPDIRECTMUSICTHRU;
111 typedef struct IDirectMusicThru IDirectMusicThru8, *LPDIRECTMUSICTHRU8;
112 typedef struct IReferenceClock *LPREFERENCECLOCK;
115 /*****************************************************************************
116 * Typedef definitions
118 typedef ULONGLONG SAMPLE_TIME, *LPSAMPLE_TIME;
119 typedef ULONGLONG SAMPLE_POSITION, *LPSAMPLE_POSITION;
122 /*****************************************************************************
123 * Flags
125 #ifndef _DIRECTAUDIO_PRIORITIES_DEFINED_
126 #define _DIRECTAUDIO_PRIORITIES_DEFINED_
128 #define DAUD_CRITICAL_VOICE_PRIORITY 0xF0000000
129 #define DAUD_HIGH_VOICE_PRIORITY 0xC0000000
130 #define DAUD_STANDARD_VOICE_PRIORITY 0x80000000
131 #define DAUD_LOW_VOICE_PRIORITY 0x40000000
132 #define DAUD_PERSIST_VOICE_PRIORITY 0x10000000
134 #define DAUD_CHAN1_VOICE_PRIORITY_OFFSET 0x0000000E
135 #define DAUD_CHAN2_VOICE_PRIORITY_OFFSET 0x0000000D
136 #define DAUD_CHAN3_VOICE_PRIORITY_OFFSET 0x0000000C
137 #define DAUD_CHAN4_VOICE_PRIORITY_OFFSET 0x0000000B
138 #define DAUD_CHAN5_VOICE_PRIORITY_OFFSET 0x0000000A
139 #define DAUD_CHAN6_VOICE_PRIORITY_OFFSET 0x00000009
140 #define DAUD_CHAN7_VOICE_PRIORITY_OFFSET 0x00000008
141 #define DAUD_CHAN8_VOICE_PRIORITY_OFFSET 0x00000007
142 #define DAUD_CHAN9_VOICE_PRIORITY_OFFSET 0x00000006
143 #define DAUD_CHAN10_VOICE_PRIORITY_OFFSET 0x0000000F
144 #define DAUD_CHAN11_VOICE_PRIORITY_OFFSET 0x00000005
145 #define DAUD_CHAN12_VOICE_PRIORITY_OFFSET 0x00000004
146 #define DAUD_CHAN13_VOICE_PRIORITY_OFFSET 0x00000003
147 #define DAUD_CHAN14_VOICE_PRIORITY_OFFSET 0x00000002
148 #define DAUD_CHAN15_VOICE_PRIORITY_OFFSET 0x00000001
149 #define DAUD_CHAN16_VOICE_PRIORITY_OFFSET 0x00000000
151 #define DAUD_CHAN1_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN1_VOICE_PRIORITY_OFFSET)
152 #define DAUD_CHAN2_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN2_VOICE_PRIORITY_OFFSET)
153 #define DAUD_CHAN3_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN3_VOICE_PRIORITY_OFFSET)
154 #define DAUD_CHAN4_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN4_VOICE_PRIORITY_OFFSET)
155 #define DAUD_CHAN5_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN5_VOICE_PRIORITY_OFFSET)
156 #define DAUD_CHAN6_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN6_VOICE_PRIORITY_OFFSET)
157 #define DAUD_CHAN7_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN7_VOICE_PRIORITY_OFFSET)
158 #define DAUD_CHAN8_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN8_VOICE_PRIORITY_OFFSET)
159 #define DAUD_CHAN9_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN9_VOICE_PRIORITY_OFFSET)
160 #define DAUD_CHAN10_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN10_VOICE_PRIORITY_OFFSET)
161 #define DAUD_CHAN11_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN11_VOICE_PRIORITY_OFFSET)
162 #define DAUD_CHAN12_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN12_VOICE_PRIORITY_OFFSET)
163 #define DAUD_CHAN13_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN13_VOICE_PRIORITY_OFFSET)
164 #define DAUD_CHAN14_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN14_VOICE_PRIORITY_OFFSET)
165 #define DAUD_CHAN15_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN15_VOICE_PRIORITY_OFFSET)
166 #define DAUD_CHAN16_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN16_VOICE_PRIORITY_OFFSET)
167 #endif /* _DIRECTAUDIO_PRIORITIES_DEFINED_ */
169 #define DMUS_CLOCKF_GLOBAL 0x1
171 #define DMUS_EFFECT_NONE 0x0
172 #define DMUS_EFFECT_REVERB 0x1
173 #define DMUS_EFFECT_CHORUS 0x2
174 #define DMUS_EFFECT_DELAY 0x4
176 #define DMUS_MAX_DESCRIPTION 0x80
177 #define DMUS_MAX_DRIVER 0x80
179 #define DMUS_PC_INPUTCLASS 0x0
180 #define DMUS_PC_OUTPUTCLASS 0x1
182 #define DMUS_PC_DLS 0x00000001
183 #define DMUS_PC_EXTERNAL 0x00000002
184 #define DMUS_PC_SOFTWARESYNTH 0x00000004
185 #define DMUS_PC_MEMORYSIZEFIXED 0x00000008
186 #define DMUS_PC_GMINHARDWARE 0x00000010
187 #define DMUS_PC_GSINHARDWARE 0x00000020
188 #define DMUS_PC_XGINHARDWARE 0x00000040
189 #define DMUS_PC_DIRECTSOUND 0x00000080
190 #define DMUS_PC_SHAREABLE 0x00000100
191 #define DMUS_PC_DLS2 0x00000200
192 #define DMUS_PC_AUDIOPATH 0x00000400
193 #define DMUS_PC_WAVE 0x00000800
194 #define DMUS_PC_SYSTEMMEMORY 0x7FFFFFFF
196 #define DMUS_PORT_WINMM_DRIVER 0x0
197 #define DMUS_PORT_USER_MODE_SYNTH 0x1
198 #define DMUS_PORT_KERNEL_MODE 0x2
200 #define DMUS_PORT_FEATURE_AUDIOPATH 0x1
201 #define DMUS_PORT_FEATURE_STREAMING 0x2
203 #define DMUS_PORTPARAMS_VOICES 0x01
204 #define DMUS_PORTPARAMS_CHANNELGROUPS 0x02
205 #define DMUS_PORTPARAMS_AUDIOCHANNELS 0x04
206 #define DMUS_PORTPARAMS_SAMPLERATE 0x08
207 #define DMUS_PORTPARAMS_EFFECTS 0x20
208 #define DMUS_PORTPARAMS_SHARE 0x40
209 #define DMUS_PORTPARAMS_FEATURES 0x80
211 #define DMUS_VOLUME_MAX 2000
212 #define DMUS_VOLUME_MIN -20000
214 #define DMUS_SYNTHSTATS_VOICES 0x01
215 #define DMUS_SYNTHSTATS_TOTAL_CPU 0x02
216 #define DMUS_SYNTHSTATS_CPU_PER_VOICE 0x04
217 #define DMUS_SYNTHSTATS_LOST_NOTES 0x08
218 #define DMUS_SYNTHSTATS_PEAK_VOLUME 0x10
219 #define DMUS_SYNTHSTATS_FREE_MEMORY 0x20
220 #define DMUS_SYNTHSTATS_SYSTEMMEMORY DMUS_PC_SYSTEMMEMORY
222 #define DSBUSID_FIRST_SPKR_LOC 0x00000000
223 #define DSBUSID_FRONT_LEFT 0x00000000
224 #define DSBUSID_LEFT 0x00000000
225 #define DSBUSID_FRONT_RIGHT 0x00000001
226 #define DSBUSID_RIGHT 0x00000001
227 #define DSBUSID_FRONT_CENTER 0x00000002
228 #define DSBUSID_LOW_FREQUENCY 0x00000003
229 #define DSBUSID_BACK_LEFT 0x00000004
230 #define DSBUSID_BACK_RIGHT 0x00000005
231 #define DSBUSID_FRONT_LEFT_OF_CENTER 0x00000006
232 #define DSBUSID_FRONT_RIGHT_OF_CENTER 0x00000007
233 #define DSBUSID_BACK_CENTER 0x00000008
234 #define DSBUSID_SIDE_LEFT 0x00000009
235 #define DSBUSID_SIDE_RIGHT 0x0000000A
236 #define DSBUSID_TOP_CENTER 0x0000000B
237 #define DSBUSID_TOP_FRONT_LEFT 0x0000000C
238 #define DSBUSID_TOP_FRONT_CENTER 0x0000000D
239 #define DSBUSID_TOP_FRONT_RIGHT 0x0000000E
240 #define DSBUSID_TOP_BACK_LEFT 0x0000000F
241 #define DSBUSID_TOP_BACK_CENTER 0x00000010
242 #define DSBUSID_TOP_BACK_RIGHT 0x011
243 #define DSBUSID_LAST_SPKR_LOC 0x00000011
244 #define DSBUSID_IS_SPKR_LOC(id) (((id) >= DSBUSID_FIRST_SPKR_LOC) && ((id) <= DSBUSID_LAST_SPKR_LOC))
246 #define DSBUSID_REVERB_SEND 0x00000040
247 #define DSBUSID_CHORUS_SEND 0x00000041
249 #define DSBUSID_DYNAMIC_0 0x00000200
251 #define DSBUSID_NULL 0xFFFFFFFF
253 /*****************************************************************************
254 * Enumerations
256 typedef enum {
257 DMUS_CLOCK_SYSTEM = 0x0,
258 DMUS_CLOCK_WAVE = 0x1
259 } DMUS_CLOCKTYPE;
262 /*****************************************************************************
263 * Structures
265 /* typedef definitions */
266 typedef struct _DMUS_BUFFERDESC DMUS_BUFFERDESC, *LPDMUS_BUFFERDESC;
267 typedef struct _DMUS_PORTCAPS DMUS_PORTCAPS, *LPDMUS_PORTCAPS;
268 typedef struct _DMUS_PORTPARAMS DMUS_PORTPARAMS7, *LPDMUS_PORTPARAMS7;
269 typedef struct _DMUS_PORTPARAMS8 DMUS_PORTPARAMS8, *LPDMUS_PORTPARAMS8;
270 typedef DMUS_PORTPARAMS8 DMUS_PORTPARAMS, *LPDMUS_PORTPARAMS;
271 typedef struct _DMUS_SYNTHSTATS DMUS_SYNTHSTATS, *LPDMUS_SYNTHSTATS;
272 typedef struct _DMUS_SYNTHSTATS8 DMUS_SYNTHSTATS8, *LPDMUS_SYNTHSTATS8;
273 typedef struct _DMUS_WAVES_REVERB_PARAMS DMUS_WAVES_REVERB_PARAMS, *LPDMUS_WAVES_REVERB_PARAMS;
274 typedef struct _DMUS_CLOCKINFO7 DMUS_CLOCKINFO7, *LPDMUS_CLOCKINFO7;
275 typedef struct _DMUS_CLOCKINFO8 DMUS_CLOCKINFO8, *LPDMUS_CLOCKINFO8;
276 typedef DMUS_CLOCKINFO8 DMUS_CLOCKINFO, *LPDMUS_CLOCKINFO;
279 /* actual structures */
280 struct _DMUS_BUFFERDESC {
281 DWORD dwSize;
282 DWORD dwFlags;
283 GUID guidBufferFormat;
284 DWORD cbBuffer;
287 struct _DMUS_PORTCAPS {
288 DWORD dwSize;
289 DWORD dwFlags;
290 GUID guidPort;
291 DWORD dwClass;
292 DWORD dwType;
293 DWORD dwMemorySize;
294 DWORD dwMaxChannelGroups;
295 DWORD dwMaxVoices;
296 DWORD dwMaxAudioChannels;
297 DWORD dwEffectFlags;
298 WCHAR wszDescription[DMUS_MAX_DESCRIPTION];
301 struct _DMUS_PORTPARAMS {
302 DWORD dwSize;
303 DWORD dwValidParams;
304 DWORD dwVoices;
305 DWORD dwChannelGroups;
306 DWORD dwAudioChannels;
307 DWORD dwSampleRate;
308 DWORD dwEffectFlags;
309 BOOL fShare;
312 struct _DMUS_PORTPARAMS8 {
313 DWORD dwSize;
314 DWORD dwValidParams;
315 DWORD dwVoices;
316 DWORD dwChannelGroups;
317 DWORD dwAudioChannels;
318 DWORD dwSampleRate;
319 DWORD dwEffectFlags;
320 BOOL fShare;
321 DWORD dwFeatures;
324 struct _DMUS_SYNTHSTATS {
325 DWORD dwSize;
326 DWORD dwValidStats;
327 DWORD dwVoices;
328 DWORD dwTotalCPU;
329 DWORD dwCPUPerVoice;
330 DWORD dwLostNotes;
331 DWORD dwFreeMemory;
332 long lPeakVolume;
335 struct _DMUS_SYNTHSTATS8 {
336 DWORD dwSize;
337 DWORD dwValidStats;
338 DWORD dwVoices;
339 DWORD dwTotalCPU;
340 DWORD dwCPUPerVoice;
341 DWORD dwLostNotes;
342 DWORD dwFreeMemory;
343 long lPeakVolume;
344 DWORD dwSynthMemUse;
347 struct _DMUS_WAVES_REVERB_PARAMS {
348 float fInGain;
349 float fReverbMix;
350 float fReverbTime;
351 float fHighFreqRTRatio;
354 struct _DMUS_CLOCKINFO7 {
355 DWORD dwSize;
356 DMUS_CLOCKTYPE ctType;
357 GUID guidClock;
358 WCHAR wszDescription[DMUS_MAX_DESCRIPTION];
361 struct _DMUS_CLOCKINFO8 {
362 DWORD dwSize;
363 DMUS_CLOCKTYPE ctType;
364 GUID guidClock;
365 WCHAR wszDescription[DMUS_MAX_DESCRIPTION];
366 DWORD dwFlags;
370 /*****************************************************************************
371 * IDirectMusic interface
373 #define INTERFACE IDirectMusic
374 DECLARE_INTERFACE_(IDirectMusic,IUnknown)
376 /*** IUnknown methods ***/
377 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
378 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
379 STDMETHOD_(ULONG,Release)(THIS) PURE;
380 /*** IDirectMusic methods ***/
381 STDMETHOD(EnumPort)(THIS_ DWORD dwIndex, LPDMUS_PORTCAPS pPortCaps) PURE;
382 STDMETHOD(CreateMusicBuffer)(THIS_ LPDMUS_BUFFERDESC pBufferDesc, LPDIRECTMUSICBUFFER **ppBuffer, LPUNKNOWN pUnkOuter) PURE;
383 STDMETHOD(CreatePort)(THIS_ REFCLSID rclsidPort, LPDMUS_PORTPARAMS pPortParams, LPDIRECTMUSICPORT *ppPort, LPUNKNOWN pUnkOuter) PURE;
384 STDMETHOD(EnumMasterClock)(THIS_ DWORD dwIndex, LPDMUS_CLOCKINFO lpClockInfo) PURE;
385 STDMETHOD(GetMasterClock)(THIS_ LPGUID pguidClock, struct IReferenceClock **ppReferenceClock) PURE;
386 STDMETHOD(SetMasterClock)(THIS_ REFGUID rguidClock) PURE;
387 STDMETHOD(Activate)(THIS_ BOOL fEnable) PURE;
388 STDMETHOD(GetDefaultPort)(THIS_ LPGUID pguidPort) PURE;
389 STDMETHOD(SetDirectSound)(THIS_ LPDIRECTSOUND pDirectSound, HWND hWnd) PURE;
391 #undef INTERFACE
393 #if !defined(__cplusplus) || defined(CINTERFACE)
394 /*** IUnknown methods ***/
395 #define IDirectMusic_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
396 #define IDirectMusic_AddRef(p) (p)->lpVtbl->AddRef(p)
397 #define IDirectMusic_Release(p) (p)->lpVtbl->Release(p)
398 /*** IDirectMusic methods ***/
399 #define IDirectMusic_EnumPort(p,a,b) (p)->lpVtbl->EnumPort(p,a,b)
400 #define IDirectMusic_CreateMusicBuffer(p,a,b,c) (p)->lpVtbl->CreateMusicBuffer(p,a,b,c)
401 #define IDirectMusic_CreatePort(p,a,b,c,d) (p)->lpVtbl->CreatePort(p,a,b,c,d)
402 #define IDirectMusic_EnumMasterClock(p,a,b) (p)->lpVtbl->EnumMasterClock(p,a,b)
403 #define IDirectMusic_GetMasterClock(p,a,b) (p)->lpVtbl->GetMasterClock(p,a,b)
404 #define IDirectMusic_SetMasterClock(p,a) (p)->lpVtbl->SetMasterClock(p,a)
405 #define IDirectMusic_Activate(p,a) (p)->lpVtbl->Activate(p,a)
406 #define IDirectMusic_GetDefaultPort(p,a) (p)->lpVtbl->GetDefaultPort(p,a)
407 #define IDirectMusic_SetDirectSound(p,a,b) (p)->lpVtbl->SetDirectSound(p,a,b)
408 #endif
411 /*****************************************************************************
412 * IDirectMusic8 interface
414 #define INTERFACE IDirectMusic8
415 DECLARE_INTERFACE_(IDirectMusic8,IDirectMusic)
417 /*** IUnknown methods ***/
418 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
419 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
420 STDMETHOD_(ULONG,Release)(THIS) PURE;
421 /*** IDirectMusic methods ***/
422 STDMETHOD(EnumPort)(THIS_ DWORD dwIndex, LPDMUS_PORTCAPS pPortCaps) PURE;
423 STDMETHOD(CreateMusicBuffer)(THIS_ LPDMUS_BUFFERDESC pBufferDesc, LPDIRECTMUSICBUFFER **ppBuffer, LPUNKNOWN pUnkOuter) PURE;
424 STDMETHOD(CreatePort)(THIS_ REFCLSID rclsidPort, LPDMUS_PORTPARAMS pPortParams, LPDIRECTMUSICPORT *ppPort, LPUNKNOWN pUnkOuter) PURE;
425 STDMETHOD(EnumMasterClock)(THIS_ DWORD dwIndex, LPDMUS_CLOCKINFO lpClockInfo) PURE;
426 STDMETHOD(GetMasterClock)(THIS_ LPGUID pguidClock, struct IReferenceClock **ppReferenceClock) PURE;
427 STDMETHOD(SetMasterClock)(THIS_ REFGUID rguidClock) PURE;
428 STDMETHOD(Activate)(THIS_ BOOL fEnable) PURE;
429 STDMETHOD(GetDefaultPort)(THIS_ LPGUID pguidPort) PURE;
430 STDMETHOD(SetDirectSound)(THIS_ LPDIRECTSOUND pDirectSound, HWND hWnd) PURE;
431 /*** IDirectMusic8 methods ***/
432 STDMETHOD(SetExternalMasterClock)(THIS_ struct IReferenceClock *pClock) PURE;
434 #undef INTERFACE
436 #if !defined(__cplusplus) || defined(CINTERFACE)
437 /*** IUnknown methods ***/
438 #define IDirectMusic8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
439 #define IDirectMusic8_AddRef(p) (p)->lpVtbl->AddRef(p)
440 #define IDirectMusic8_Release(p) (p)->lpVtbl->Release(p)
441 /*** IDirectMusic methods ***/
442 #define IDirectMusic8_EnumPort(p,a,b) (p)->lpVtbl->EnumPort(p,a,b)
443 #define IDirectMusic8_CreateMusicBuffer(p,a,b,c) (p)->lpVtbl->CreateMusicBuffer(p,a,b,c)
444 #define IDirectMusic8_CreatePort(p,a,b,c,d) (p)->lpVtbl->CreatePort(p,a,b,c,d)
445 #define IDirectMusic8_EnumMasterClock(p,a,b) (p)->lpVtbl->EnumMasterClock(p,a,b)
446 #define IDirectMusic8_GetMasterClock(p,a,b) (p)->lpVtbl->GetMasterClock(p,a,b)
447 #define IDirectMusic8_SetMasterClock(p,a) (p)->lpVtbl->SetMasterClock(p,a)
448 #define IDirectMusic8_Activate(p,a) (p)->lpVtbl->Activate(p,a)
449 #define IDirectMusic8_GetDefaultPort(p,a) (p)->lpVtbl->GetDefaultPort(p,a)
450 #define IDirectMusic8_SetDirectSound(p,a,b) (p)->lpVtbl->SetDirectSound(p,a,b)
451 /*** IDirectMusic8 methods ***/
452 #define IDirectMusic8_SetExternalMasterClock(p,a) (p)->lpVtbl->SetExternalMasterClock(p,a)
453 #endif
456 /*****************************************************************************
457 * IDirectMusicBuffer interface
459 #define INTERFACE IDirectMusicBuffer
460 DECLARE_INTERFACE_(IDirectMusicBuffer,IUnknown)
462 /*** IUnknown methods ***/
463 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
464 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
465 STDMETHOD_(ULONG,Release)(THIS) PURE;
466 /*** IDirectMusicBuffer methods ***/
467 STDMETHOD(Flush)(THIS) PURE;
468 STDMETHOD(TotalTime)(THIS_ LPREFERENCE_TIME prtTime) PURE;
469 STDMETHOD(PackStructured)(THIS_ REFERENCE_TIME rt, DWORD dwChannelGroup, DWORD dwChannelMessage) PURE;
470 STDMETHOD(PackUnstructured)(THIS_ REFERENCE_TIME rt, DWORD dwChannelGroup, DWORD cb, LPBYTE lpb) PURE;
471 STDMETHOD(ResetReadPtr)(THIS) PURE;
472 STDMETHOD(GetNextEvent)(THIS_ LPREFERENCE_TIME prt, LPDWORD pdwChannelGroup, LPDWORD pdwLength, LPBYTE *ppData) PURE;
473 STDMETHOD(GetRawBufferPtr)(THIS_ LPBYTE *ppData) PURE;
474 STDMETHOD(GetStartTime)(THIS_ LPREFERENCE_TIME prt) PURE;
475 STDMETHOD(GetUsedBytes)(THIS_ LPDWORD pcb) PURE;
476 STDMETHOD(GetMaxBytes)(THIS_ LPDWORD pcb) PURE;
477 STDMETHOD(GetBufferFormat)(THIS_ LPGUID pGuidFormat) PURE;
478 STDMETHOD(SetStartTime)(THIS_ REFERENCE_TIME rt) PURE;
479 STDMETHOD(SetUsedBytes)(THIS_ DWORD cb) PURE;
481 #undef INTERFACE
483 #if !defined(__cplusplus) || defined(CINTERFACE)
484 /*** IUnknown methods ***/
485 #define IDirectMusicBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
486 #define IDirectMusicBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
487 #define IDirectMusicBuffer_Release(p) (p)->lpVtbl->Release(p)
488 /*** IDirectMusicBuffer methods ***/
489 #define IDirectMusicBuffer_Flush(p) (p)->lpVtbl->Flush(p)
490 #define IDirectMusicBuffer_TotalTime(p,a) (p)->lpVtbl->TotalTime(p,a)
491 #define IDirectMusicBuffer_PackStructured(p,a,b,c) (p)->lpVtbl->PackStructured(p,a,b,c)
492 #define IDirectMusicBuffer_PackUnstructured(p,a,b,c,d) (p)->lpVtbl->PackUnstructured(p,a,b,c,d)
493 #define IDirectMusicBuffer_ResetReadPtr(p) (p)->lpVtbl->ResetReadPtr(p)
494 #define IDirectMusicBuffer_GetNextEvent(p,a,b,c,d) (p)->lpVtbl->GetNextEvent(p,a,b,c,d)
495 #define IDirectMusicBuffer_GetRawBufferPtr(p,a) (p)->lpVtbl->GetRawBufferPtr(p,a)
496 #define IDirectMusicBuffer_GetStartTime(p,a) (p)->lpVtbl->GetStartTime(p,a)
497 #define IDirectMusicBuffer_GetUsedBytes(p,a) (p)->lpVtbl->GetUsedBytes(p,a)
498 #define IDirectMusicBuffer_GetMaxBytes(p,a) (p)->lpVtbl->GetMaxBytes(p,a)
499 #define IDirectMusicBuffer_GetBufferFormat(p,a) (p)->lpVtbl->GetBufferFormat(p,a)
500 #define IDirectMusicBuffer_SetStartTime(p,a) (p)->lpVtbl->SetStartTime(p,a)
501 #define IDirectMusicBuffer_SetUsedBytes(p,a) (p)->lpVtbl->SetUsedBytes(p,a)
502 #endif
505 /*****************************************************************************
506 * IDirectMusicInstrument interface
508 #define INTERFACE IDirectMusicInstrument
509 DECLARE_INTERFACE_(IDirectMusicInstrument,IUnknown)
511 /*** IUnknown methods ***/
512 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
513 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
514 STDMETHOD_(ULONG,Release)(THIS) PURE;
515 /*** IDirectMusicInstrument methods ***/
516 STDMETHOD(GetPatch)(THIS_ DWORD *pdwPatch) PURE;
517 STDMETHOD(SetPatch)(THIS_ DWORD dwPatch) PURE;
519 #undef INTERFACE
521 #if !defined(__cplusplus) || defined(CINTERFACE)
522 /*** IUnknown methods ***/
523 #define IDirectMusicInstrument_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
524 #define IDirectMusicInstrument_AddRef(p) (p)->lpVtbl->AddRef(p)
525 #define IDirectMusicInstrument_Release(p) (p)->lpVtbl->Release(p)
526 /*** IDirectMusicInstrument methods ***/
527 #define IDirectMusicInstrument_GetPatch(p,a) (p)->lpVtbl->GetPatch(p,a)
528 #define IDirectMusicInstrument_SetPatch(p,a) (p)->lpVtbl->SetPatch(p,a)
529 #endif
532 /*****************************************************************************
533 * IDirectMusicDownloadedInstrument interface
535 #define INTERFACE IDirectMusicDownloadedInstrument
536 DECLARE_INTERFACE_(IDirectMusicDownloadedInstrument,IUnknown)
538 /*** IUnknown methods ***/
539 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
540 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
541 STDMETHOD_(ULONG,Release)(THIS) PURE;
542 /* no IDirectMusicDownloadedInstrument methods at this time */
544 #undef INTERFACE
546 #if !defined(__cplusplus) || defined(CINTERFACE)
547 /*** IUnknown methods ***/
548 #define IDirectMusicDownloadedInstrument_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
549 #define IDirectMusicDownloadedInstrument_AddRef(p) (p)->lpVtbl->AddRef(p)
550 #define IDirectMusicDownloadedInstrument_Release(p) (p)->lpVtbl->Release(p)
551 /*** IDirectMusicDownloadedInstrument methods ***/
552 /* none at this time */
553 #endif
556 /*****************************************************************************
557 * IDirectMusicCollection interface
559 #define INTERFACE IDirectMusicCollection
560 DECLARE_INTERFACE_(IDirectMusicCollection,IUnknown)
562 /*** IUnknown methods ***/
563 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
564 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
565 STDMETHOD_(ULONG,Release)(THIS) PURE;
566 /*** IDirectMusicCollection methods ***/
567 STDMETHOD(GetInstrument)(THIS_ DWORD dwPatch, IDirectMusicInstrument **ppInstrument) PURE;
568 STDMETHOD(EnumInstrument)(THIS_ DWORD dwIndex, DWORD *pdwPatch, LPWSTR pwszName, DWORD dwNameLen) PURE;
570 #undef INTERFACE
572 #if !defined(__cplusplus) || defined(CINTERFACE)
573 /*** IUnknown methods ***/
574 #define IDirectMusicCollection_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
575 #define IDirectMusicCollection_AddRef(p) (p)->lpVtbl->AddRef(p)
576 #define IDirectMusicCollection_Release(p) (p)->lpVtbl->Release(p)
577 /*** IDirectMusicCollection methods ***/
578 #define IDirectMusicCollection_GetInstrument(p,a,b) (p)->lpVtbl->GetInstrument(p,a,b)
579 #define IDirectMusicCollection_EnumInstrument(p,a,b,c,d) (p)->lpVtbl->EnumInstrument(p,a,b,c,d)
580 #endif
583 /*****************************************************************************
584 * IDirectMusicDownload interface
586 #define INTERFACE IDirectMusicDownload
587 DECLARE_INTERFACE_(IDirectMusicDownload,IUnknown)
589 /*** IUnknown methods ***/
590 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
591 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
592 STDMETHOD_(ULONG,Release)(THIS) PURE;
593 /*** IDirectMusicDownload methods ***/
594 STDMETHOD(GetBuffer)(THIS_ void **ppvBuffer, DWORD *pdwSize) PURE;
596 #undef INTERFACE
598 #if !defined(__cplusplus) || defined(CINTERFACE)
599 /*** IUnknown methods ***/
600 #define IDirectMusicDownload_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
601 #define IDirectMusicDownload_AddRef(p) (p)->lpVtbl->AddRef(p)
602 #define IDirectMusicDownload_Release(p) (p)->lpVtbl->Release(p)
603 /*** IDirectMusicDownload methods ***/
604 #define IDirectMusicDownload_GetBuffer(p,a,b) (p)->lpVtbl->GetBuffer(p,a,b)
605 #endif
608 /*****************************************************************************
609 * IDirectMusicPortDownload interface
611 #define INTERFACE IDirectMusicPortDownload
612 DECLARE_INTERFACE_(IDirectMusicPortDownload,IUnknown)
614 /*** IUnknown methods ***/
615 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
616 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
617 STDMETHOD_(ULONG,Release)(THIS) PURE;
618 /*** IDirectMusicPortDownload methods ***/
619 STDMETHOD(GetBuffer)(THIS_ DWORD dwDLId, IDirectMusicDownload **ppIDMDownload) PURE;
620 STDMETHOD(AllocateBuffer)(THIS_ DWORD dwSize, IDirectMusicDownload **ppIDMDownload) PURE;
621 STDMETHOD(GetDLId)(THIS_ DWORD *pdwStartDLId, DWORD dwCount) PURE;
622 STDMETHOD(GetAppend)(THIS_ DWORD *pdwAppend) PURE;
623 STDMETHOD(Download)(THIS_ IDirectMusicDownload *pIDMDownload) PURE;
624 STDMETHOD(Unload)(THIS_ IDirectMusicDownload *pIDMDownload) PURE;
626 #undef INTERFACE
628 #if !defined(__cplusplus) || defined(CINTERFACE)
629 /*** IUnknown methods ***/
630 #define IDirectMusicPortDownload_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
631 #define IDirectMusicPortDownload_AddRef(p) (p)->lpVtbl->AddRef(p)
632 #define IDirectMusicPortDownload_Release(p) (p)->lpVtbl->Release(p)
633 /*** IDirectMusicPortDownload methods ***/
634 #define IDirectMusicPortDownload_GetBuffer(p,a,b) (p)->lpVtbl->GetBuffer(p,a,b)
635 #define IDirectMusicPortDownload_AllocateBuffer(p,a,b) (p)->lpVtbl->AllocateBuffer(p,a,b)
636 #define IDirectMusicPortDownload_GetDLId(p,a,b) (p)->lpVtbl->GetDLId(p,a,b)
637 #define IDirectMusicPortDownload_GetAppend(p,a) (p)->lpVtbl->GetAppend(p,a)
638 #define IDirectMusicPortDownload_Download(p,a) (p)->lpVtbl->Download(p,a)
639 #define IDirectMusicPortDownload_Unload(p,a) (p)->lpVtbl->GetBuffer(p,a)
640 #endif
643 /*****************************************************************************
644 * IDirectMusicPort interface
646 #define INTERFACE IDirectMusicPort
647 DECLARE_INTERFACE_(IDirectMusicPort,IUnknown)
649 /*** IUnknown methods ***/
650 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
651 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
652 STDMETHOD_(ULONG,Release)(THIS) PURE;
653 /*** IDirectMusicPort methods ***/
654 STDMETHOD(PlayBuffer)(THIS_ LPDIRECTMUSICBUFFER pBuffer) PURE;
655 STDMETHOD(SetReadNotificationHandle)(THIS_ HANDLE hEvent) PURE;
656 STDMETHOD(Read)(THIS_ LPDIRECTMUSICBUFFER pBuffer) PURE;
657 STDMETHOD(DownloadInstrument)(THIS_ IDirectMusicInstrument *pInstrument, IDirectMusicDownloadedInstrument **ppDownloadedInstrument, DMUS_NOTERANGE *pNoteRanges, DWORD dwNumNoteRanges) PURE;
658 STDMETHOD(UnloadInstrument)(THIS_ IDirectMusicDownloadedInstrument *pDownloadedInstrument) PURE;
659 STDMETHOD(GetLatencyClock)(THIS_ struct IReferenceClock **ppClock) PURE;
660 STDMETHOD(GetRunningStats)(THIS_ LPDMUS_SYNTHSTATS pStats) PURE;
661 STDMETHOD(Compact)(THIS) PURE;
662 STDMETHOD(GetCaps)(THIS_ LPDMUS_PORTCAPS pPortCaps) PURE;
663 STDMETHOD(DeviceIoControl)(THIS_ DWORD dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped) PURE;
664 STDMETHOD(SetNumChannelGroups)(THIS_ DWORD dwChannelGroups) PURE;
665 STDMETHOD(GetNumChannelGroups)(THIS_ LPDWORD pdwChannelGroups) PURE;
666 STDMETHOD(Activate)(THIS_ BOOL fActive) PURE;
667 STDMETHOD(SetChannelPriority)(THIS_ DWORD dwChannelGroup, DWORD dwChannel, DWORD dwPriority) PURE;
668 STDMETHOD(GetChannelPriority)(THIS_ DWORD dwChannelGroup, DWORD dwChannel, LPDWORD pdwPriority) PURE;
669 STDMETHOD(SetDirectSound)(THIS_ LPDIRECTSOUND pDirectSound, LPDIRECTSOUNDBUFFER pDirectSoundBuffer) PURE;
670 STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX pWaveFormatEx, LPDWORD pdwWaveFormatExSize, LPDWORD pdwBufferSize) PURE;
672 #undef INTERFACE
674 #if !defined(__cplusplus) || defined(CINTERFACE)
675 /*** IUnknown methods ***/
676 #define IDirectMusicPort_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
677 #define IDirectMusicPort_AddRef(p) (p)->lpVtbl->AddRef(p)
678 #define IDirectMusicPort_Release(p) (p)->lpVtbl->Release(p)
679 /*** IDirectMusicPort methods ***/
680 #define IDirectMusicPort_PlayBuffer(p,a) (p)->lpVtbl->PlayBuffer(p,a)
681 #define IDirectMusicPort_SetReadNotificationHandle(p,a) (p)->lpVtbl->SetReadNotificationHandle(p,a)
682 #define IDirectMusicPort_Read(p,a) (p)->lpVtbl->Read(p,a)
683 #define IDirectMusicPort_DownloadInstrument(p,a,b,c,d) (p)->lpVtbl->DownloadInstrument(p,a,b,c,d)
684 #define IDirectMusicPort_UnloadInstrument(p,a) (p)->lpVtbl->UnloadInstrument(p,a)
685 #define IDirectMusicPort_GetLatencyClock(p,a) (p)->lpVtbl->GetLatencyClock(p,a)
686 #define IDirectMusicPort_GetRunningStats(p,a) (p)->lpVtbl->GetRunningStats(p,a)
687 #define IDirectMusicPort_Compact(p) (p)->lpVtbl->Compact(p)
688 #define IDirectMusicPort_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
689 #define IDirectMusicPort_DeviceIoControl(p,a,b,c,d,e,f,g) (p)->lpVtbl->DeviceIoControl(p,a,b,c,d,e,f,g)
690 #define IDirectMusicPort_SetNumChannelGroups(p,a) (p)->lpVtbl->SetNumChannelGroups(p,a)
691 #define IDirectMusicPort_GetNumChannelGroups(p,a) (p)->lpVtbl->GetNumChannelGroups(p,a)
692 #define IDirectMusicPort_Activate(p,a) (p)->lpVtbl->Activate(p,a)
693 #define IDirectMusicPort_SetChannelPriority(p,a,b,c) (p)->lpVtbl->SetChannelPriority(p,a,b,c)
694 #define IDirectMusicPort_GetChannelPriority(p,a,b,c) (p)->lpVtbl->GetChannelPriority(p,a,b,c)
695 #define IDirectMusicPort_SetDirectSound(p,a,b) (p)->lpVtbl->SetDirectSound(p,a,b)
696 #define IDirectMusicPort_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c)
697 #endif
700 /*****************************************************************************
701 * IDirectMusicThru interface
703 #define INTERFACE IDirectMusicThru
704 DECLARE_INTERFACE_(IDirectMusicThru,IUnknown)
706 /*** IUnknown methods ***/
707 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
708 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
709 STDMETHOD_(ULONG,Release)(THIS) PURE;
710 /*** IDirectMusicThru methods ***/
711 STDMETHOD(ThruChannel)(THIS_ DWORD dwSourceChannelGroup, DWORD dwSourceChannel, DWORD dwDestinationChannelGroup, DWORD dwDestinationChannel, LPDIRECTMUSICPORT pDestinationPort) PURE;
713 #undef INTERFACE
715 #if !defined(__cplusplus) || defined(CINTERFACE)
716 /*** IUnknown methods ***/
717 #define IDirectMusicThru_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
718 #define IDirectMusicThru_AddRef(p) (p)->lpVtbl->AddRef(p)
719 #define IDirectMusicThru_Release(p) (p)->lpVtbl->Release(p)
720 /*** IDirectMusicThru methods ***/
721 #define IDirectMusicThru_ThruChannel(p,a,b,c,d,e) (p)->lpVtbl->ThruChannel(p,a,b,c,d,e)
722 #endif
725 #ifndef __IReferenceClock_INTERFACE_DEFINED__
726 #define __IReferenceClock_INTERFACE_DEFINED__
727 DEFINE_GUID(IID_IReferenceClock,0x56a86897,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70);
729 /*****************************************************************************
730 * IReferenceClock interface
732 #define INTERFACE IReferenceClock
733 DECLARE_INTERFACE_(IReferenceClock,IUnknown)
735 /*** IUnknown methods ***/
736 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
737 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
738 STDMETHOD_(ULONG,Release)(THIS) PURE;
739 /*** IReferenceClock methods ***/
740 STDMETHOD(GetTime)(THIS_ REFERENCE_TIME *pTime) PURE;
741 STDMETHOD(AdviseTime)(THIS_ REFERENCE_TIME baseTime, REFERENCE_TIME streamTime, HANDLE hEvent, DWORD *pdwAdviseCookie) PURE;
742 STDMETHOD(AdvisePeriodic)(THIS_ REFERENCE_TIME startTime, REFERENCE_TIME periodTime, HANDLE hSemaphore, DWORD *pdwAdviseCookie) PURE;
743 STDMETHOD(Unadvise)(THIS_ DWORD dwAdviseCookie) PURE;
745 #undef INTERFACE
747 #if !defined(__cplusplus) || defined(CINTERFACE)
748 /*** IUnknown methods ***/
749 #define IReferenceClock_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
750 #define IReferenceClock_AddRef(p) (p)->lpVtbl->AddRef(p)
751 #define IReferenceClock_Release(p) (p)->lpVtbl->Release(p)
752 /*** IReferenceClock methods ***/
753 #define IReferenceClock_GetTime(p,a) (p)->lpVtbl->GetTime(p,a)
754 #define IReferenceClock_AdviseTime(p,a,b,c,d) (p)->lpVtbl->AdviseTime(p,a,b,c,d)
755 #define IReferenceClock_AdvisePeriodic(p,a,b,c,d) (p)->lpVtbl->AdvisePeriodic(p,a,b,c,d)
756 #define IReferenceClock_Unadvise(p,a) (p)->lpVtbl->Unadvise(p,a)
757 #endif
759 #endif /* __IReferenceClock_INTERFACE_DEFINED__ */
761 #ifdef __cplusplus
763 #endif
765 #include <poppack.h>
767 #endif /* __WINE_DMUSIC_CORE_H */