Fix two memory leaks. Found by Dietrich Teickner.
[wine.git] / include / dmusicc.h
blobbc5b5a6e6720d5866da694e2379a9ff660f88a73
1 /* DirectMusic Core API Stuff
3 * Copyright (C) 2003 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 #include <objbase.h>
25 #include <mmsystem.h>
26 #include <dsound.h>
28 #include <dls1.h>
29 #include <dmerror.h>
30 #include <dmdls.h>
31 #include <dmusbuff.h>
33 /*#include <pshpack8.h> */
35 #ifdef __cplusplus
36 extern "C" {
37 #endif /* __cplusplus */
39 /*****************************************************************************
40 * Predeclare the interfaces
42 DEFINE_GUID(CLSID_DirectMusic, 0x636b9f10, 0x0c7d, 0x11d1, 0x95, 0xb2, 0x00, 0x20, 0xaf, 0xdc, 0x74, 0x21);
43 DEFINE_GUID(CLSID_DirectMusicCollection, 0x480ff4b0, 0x28b2, 0x11d1, 0xbe, 0xf7, 0x0, 0xc0, 0x4f, 0xbf, 0x8f, 0xef);
44 DEFINE_GUID(CLSID_DirectMusicSynth, 0x58C2B4D0, 0x46E7, 0x11D1, 0x89, 0xAC, 0x00, 0xA0, 0xC9, 0x05, 0x41, 0x29);
46 #ifndef __IReferenceClock_FWD_DEFINED__
47 #define __IReferenceClock_FWD_DEFINED__
48 typedef struct IReferenceClock IReferenceClock;
49 #endif
51 DEFINE_GUID(IID_IDirectMusic, 0x6536115a,0x7b2d,0x11d2,0xba,0x18,0x00,0x00,0xf8,0x75,0xac,0x12);
52 typedef struct IDirectMusic IDirectMusic, *LPDIRECTMUSIC;
53 DEFINE_GUID(IID_IDirectMusicBuffer, 0xd2ac2878,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
54 typedef struct IDirectMusicBuffer IDirectMusicBuffer, *LPDIRECTMUSICBUFFER, IDirectMusicBuffer8, *LPDIRECTMUSICBUFFER8;
55 DEFINE_GUID(IID_IDirectMusicPort, 0x08f2d8c9,0x37c2,0x11d2,0xb9,0xf9,0x00,0x00,0xf8,0x75,0xac,0x12);
56 #define IID_IDirectMusicPort8 IID_IDirectMusicPort
57 typedef struct IDirectMusicPort IDirectMusicPort, *LPDIRECTMUSICPORT, IDirectMusicPort8, *LPDIRECTMUSICPORT8;
58 DEFINE_GUID(IID_IDirectMusicThru, 0xced153e7,0x3606,0x11d2,0xb9,0xf9,0x00,0x00,0xf8,0x75,0xac,0x12);
59 #define IID_IDirectMusicThru8 IID_IDirectMusicThru
60 typedef struct IDirectMusicThru IDirectMusicThru, *LPDIRECTMUSICTHRU, IDirectMusicThru8, *LPDIRECTMUSICTHRU8;
61 DEFINE_GUID(IID_IDirectMusicPortDownload, 0xd2ac287a,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
62 typedef struct IDirectMusicPortDownload IDirectMusicPortDownload, *LPDIRECTMUSICPORTDOWNLOAD, IDirectMusicPortDownload8, *LPDIRECTMUSICPORTDOWNLOAD8;
63 #define IID_IDirectMusicPortDownload8 IID_IDirectMusicPortDownload
64 DEFINE_GUID(IID_IDirectMusicDownload, 0xd2ac287b,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
65 #define IID_IDirectMusicDownload8 IID_IDirectMusicDownload
66 typedef struct IDirectMusicDownload IDirectMusicDownload, *LPDIRECTMUSICDOWNLOAD, IDirectMusicDownload8, *LPDIRECTMUSICDOWNLOAD8;
67 DEFINE_GUID(IID_IDirectMusicCollection, 0xd2ac287c,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
68 #define IID_IDirectMusicCollection8 IID_IDirectMusicCollection
69 typedef struct IDirectMusicCollection IDirectMusicCollection, *LPDIRECTMUSICCOLLECTION, IDirectMusicCollection8, *LPDIRECTMUSICCOLLECTION8;
70 DEFINE_GUID(IID_IDirectMusicInstrument, 0xd2ac287d,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
71 #define IID_IDirectMusicInstrument8 IID_IDirectMusicInstrument
72 typedef struct IDirectMusicInstrument IDirectMusicInstrument, *LPDIRECTMUSICINSTRUMENT, IDirectMusicInstrument8, *LPDIRECTMUSICINSTRUMENT8;
73 DEFINE_GUID(IID_IDirectMusicDownloadedInstrument, 0xd2ac287e,0xb39b,0x11d1,0x87,0x4,0x0,0x60,0x8,0x93,0xb1,0xbd);
74 #define IID_IDirectMusicDownloadedInstrument8 IID_IDirectMusicDownloadedInstrument
75 typedef struct IDirectMusicDownloadedInstrument IDirectMusicDownloadedInstrument, *LPDIRECTMUSICDOWNLOADEDINSTRUMENT, IDirectMusicDownloadedInstrument8, *LPDIRECTMUSICDOWNLOADEDINSTRUMENT8;
76 DEFINE_GUID(IID_IDirectMusic2, 0x6fc2cae1,0xbc78,0x11d2,0xaf,0xa6,0x0,0xaa,0x0,0x24,0xd8,0xb6);
77 DEFINE_GUID(IID_IDirectMusic8, 0x2d3629f7,0x813d,0x4939,0x85,0x08,0xf0,0x5c,0x6b,0x75,0xfd,0x97);
78 typedef struct IDirectMusic8 IDirectMusic8, *LPDIRECTMUSIC8;
80 DEFINE_GUID(GUID_DMUS_PROP_GM_Hardware, 0x178f2f24,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
81 DEFINE_GUID(GUID_DMUS_PROP_GS_Hardware, 0x178f2f25,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
82 DEFINE_GUID(GUID_DMUS_PROP_XG_Hardware, 0x178f2f26,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
83 DEFINE_GUID(GUID_DMUS_PROP_XG_Capable, 0x6496aba1,0x61b0,0x11d2,0xaf,0xa6,0x0,0xaa,0x0,0x24,0xd8,0xb6);
84 DEFINE_GUID(GUID_DMUS_PROP_GS_Capable, 0x6496aba2,0x61b0,0x11d2,0xaf,0xa6,0x0,0xaa,0x0,0x24,0xd8,0xb6);
85 DEFINE_GUID(GUID_DMUS_PROP_DLS1, 0x178f2f27,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac,0x12);
86 DEFINE_GUID(GUID_DMUS_PROP_DLS2, 0xf14599e5,0x4689,0x11d2,0xaf,0xa6,0x0,0xaa,0x0,0x24,0xd8,0xb6);
87 DEFINE_GUID(GUID_DMUS_PROP_INSTRUMENT2, 0x865fd372,0x9f67,0x11d2,0x87,0x2a,0x0,0x60,0x8,0x93,0xb1,0xbd);
88 DEFINE_GUID(GUID_DMUS_PROP_SynthSink_DSOUND, 0xaa97844,0xc877,0x11d1,0x87,0xc,0x0,0x60,0x8,0x93,0xb1,0xbd);
89 DEFINE_GUID(GUID_DMUS_PROP_SynthSink_WAVE, 0xaa97845,0xc877,0x11d1,0x87,0xc,0x0,0x60,0x8,0x93,0xb1,0xbd);
90 DEFINE_GUID(GUID_DMUS_PROP_SampleMemorySize, 0x178f2f28,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8,0x75,0xac, 0x12);
91 DEFINE_GUID(GUID_DMUS_PROP_SamplePlaybackRate, 0x2a91f713,0xa4bf,0x11d2,0xbb,0xdf,0x0,0x60,0x8,0x33,0xdb,0xd8);
92 DEFINE_GUID(GUID_DMUS_PROP_WriteLatency, 0x268a0fa0,0x60f2,0x11d2,0xaf,0xa6,0x0,0xaa,0x0,0x24,0xd8,0xb6);
93 DEFINE_GUID(GUID_DMUS_PROP_WritePeriod, 0x268a0fa1,0x60f2,0x11d2,0xaf,0xa6,0x0,0xaa,0x0,0x24,0xd8,0xb6);
94 DEFINE_GUID(GUID_DMUS_PROP_MemorySize, 0x178f2f28,0xc364,0x11d1,0xa7,0x60,0x00,0x00,0xf8, 0x75, 0xac, 0x12);
95 DEFINE_GUID(GUID_DMUS_PROP_WavesReverb, 0x4cb5622,0x32e5,0x11d2,0xaf,0xa6,0x0,0xaa,0x0,0x24,0xd8,0xb6);
96 DEFINE_GUID(GUID_DMUS_PROP_Effects, 0xcda8d611,0x684a,0x11d2,0x87,0x1e,0x0,0x60,0x8,0x93,0xb1,0xbd);
97 DEFINE_GUID(GUID_DMUS_PROP_LegacyCaps, 0xcfa7cdc2,0x00a1,0x11d2,0xaa,0xd5,0x00,0x00,0xf8,0x75,0xac,0x12);
98 DEFINE_GUID(GUID_DMUS_PROP_Volume, 0xfedfae25L,0xe46e,0x11d1,0xaa,0xce,0x00,0x00,0xf8,0x75,0xac,0x12);
100 typedef ULONGLONG SAMPLE_TIME, *LPSAMPLE_TIME;
101 typedef ULONGLONG SAMPLE_POSITION;
103 #define DMUS_MAX_DESCRIPTION 128
104 #define DMUS_MAX_DRIVER 128
106 typedef struct _DMUS_BUFFERDESC
108 DWORD dwSize;
109 DWORD dwFlags;
110 GUID guidBufferFormat;
111 DWORD cbBuffer;
112 } DMUS_BUFFERDESC, *LPDMUS_BUFFERDESC;
114 #define DMUS_EFFECT_NONE 0x00000000
115 #define DMUS_EFFECT_REVERB 0x00000001
116 #define DMUS_EFFECT_CHORUS 0x00000002
117 #define DMUS_EFFECT_DELAY 0x00000004
119 #define DMUS_PC_INPUTCLASS (0)
120 #define DMUS_PC_OUTPUTCLASS (1)
122 #define DMUS_PC_DLS (0x00000001)
123 #define DMUS_PC_EXTERNAL (0x00000002)
124 #define DMUS_PC_SOFTWARESYNTH (0x00000004)
125 #define DMUS_PC_MEMORYSIZEFIXED (0x00000008)
126 #define DMUS_PC_GMINHARDWARE (0x00000010)
127 #define DMUS_PC_GSINHARDWARE (0x00000020)
128 #define DMUS_PC_XGINHARDWARE (0x00000040)
129 #define DMUS_PC_DIRECTSOUND (0x00000080)
130 #define DMUS_PC_SHAREABLE (0x00000100)
131 #define DMUS_PC_DLS2 (0x00000200)
132 #define DMUS_PC_AUDIOPATH (0x00000400)
133 #define DMUS_PC_WAVE (0x00000800)
135 #define DMUS_PC_SYSTEMMEMORY (0x7FFFFFFF)
137 typedef struct _DMUS_PORTCAPS
139 DWORD dwSize;
140 DWORD dwFlags;
141 GUID guidPort;
142 DWORD dwClass;
143 DWORD dwType;
144 DWORD dwMemorySize;
145 DWORD dwMaxChannelGroups;
146 DWORD dwMaxVoices;
147 DWORD dwMaxAudioChannels;
148 DWORD dwEffectFlags;
149 WCHAR wszDescription[DMUS_MAX_DESCRIPTION];
150 } DMUS_PORTCAPS, *LPDMUS_PORTCAPS;
152 #define DMUS_PORT_WINMM_DRIVER (0)
153 #define DMUS_PORT_USER_MODE_SYNTH (1)
154 #define DMUS_PORT_KERNEL_MODE (2)
156 #define DMUS_PORTPARAMS_VOICES 0x00000001
157 #define DMUS_PORTPARAMS_CHANNELGROUPS 0x00000002
158 #define DMUS_PORTPARAMS_AUDIOCHANNELS 0x00000004
159 #define DMUS_PORTPARAMS_SAMPLERATE 0x00000008
160 #define DMUS_PORTPARAMS_EFFECTS 0x00000020
161 #define DMUS_PORTPARAMS_SHARE 0x00000040
162 #define DMUS_PORTPARAMS_FEATURES 0x00000080
164 typedef struct _DMUS_PORTPARAMS
166 DWORD dwSize;
167 DWORD dwValidParams;
168 DWORD dwVoices;
169 DWORD dwChannelGroups;
170 DWORD dwAudioChannels;
171 DWORD dwSampleRate;
172 DWORD dwEffectFlags;
173 BOOL fShare;
174 } DMUS_PORTPARAMS7;
176 typedef struct _DMUS_PORTPARAMS8
178 DWORD dwSize;
179 DWORD dwValidParams;
180 DWORD dwVoices;
181 DWORD dwChannelGroups;
182 DWORD dwAudioChannels;
183 DWORD dwSampleRate;
184 DWORD dwEffectFlags;
185 BOOL fShare;
186 DWORD dwFeatures;
187 } DMUS_PORTPARAMS8, DMUS_PORTPARAMS, *LPDMUS_PORTPARAMS;
189 #define DMUS_PORT_FEATURE_AUDIOPATH 0x00000001
190 #define DMUS_PORT_FEATURE_STREAMING 0x00000002
192 typedef struct _DMUS_SYNTHSTATS
194 DWORD dwSize;
195 DWORD dwValidStats;
196 DWORD dwVoices;
197 DWORD dwTotalCPU;
198 DWORD dwCPUPerVoice;
199 DWORD dwLostNotes;
200 DWORD dwFreeMemory;
201 long lPeakVolume;
202 } DMUS_SYNTHSTATS, *LPDMUS_SYNTHSTATS;
204 typedef struct _DMUS_SYNTHSTATS8
206 DWORD dwSize;
207 DWORD dwValidStats;
208 DWORD dwVoices;
209 DWORD dwTotalCPU;
210 DWORD dwCPUPerVoice;
211 DWORD dwLostNotes;
212 DWORD dwFreeMemory;
213 long lPeakVolume;
214 DWORD dwSynthMemUse;
215 } DMUS_SYNTHSTATS8, *LPDMUS_SYNTHSTATS8;
217 #define DMUS_SYNTHSTATS_VOICES 1
218 #define DMUS_SYNTHSTATS_TOTAL_CPU 2
219 #define DMUS_SYNTHSTATS_CPU_PER_VOICE 4
220 #define DMUS_SYNTHSTATS_LOST_NOTES 8
221 #define DMUS_SYNTHSTATS_PEAK_VOLUME 16
222 #define DMUS_SYNTHSTATS_FREE_MEMORY 32
224 #define DMUS_SYNTHSTATS_SYSTEMMEMORY DMUS_PC_SYSTEMMEMORY
226 typedef struct _DMUS_WAVES_REVERB_PARAMS
228 float fInGain;
229 float fReverbMix;
230 float fReverbTime;
231 float fHighFreqRTRatio;
232 } DMUS_WAVES_REVERB_PARAMS;
234 typedef enum
236 DMUS_CLOCK_SYSTEM = 0,
237 DMUS_CLOCK_WAVE = 1
238 } DMUS_CLOCKTYPE;
240 #define DMUS_CLOCKF_GLOBAL 0x00000001
242 typedef struct _DMUS_CLOCKINFO7
244 DWORD dwSize;
245 DMUS_CLOCKTYPE ctType;
246 GUID guidClock;
247 WCHAR wszDescription[DMUS_MAX_DESCRIPTION];
248 } DMUS_CLOCKINFO7, *LPDMUS_CLOCKINFO7;
250 typedef struct _DMUS_CLOCKINFO8
252 DWORD dwSize;
253 DMUS_CLOCKTYPE ctType;
254 GUID guidClock;
255 WCHAR wszDescription[DMUS_MAX_DESCRIPTION];
256 DWORD dwFlags;
257 } DMUS_CLOCKINFO8, *LPDMUS_CLOCKINFO8, DMUS_CLOCKINFO, *LPDMUS_CLOCKINFO;
259 #define DSBUSID_FIRST_SPKR_LOC 0
260 #define DSBUSID_FRONT_LEFT 0
261 #define DSBUSID_LEFT 0
262 #define DSBUSID_FRONT_RIGHT 1
263 #define DSBUSID_RIGHT 1
264 #define DSBUSID_FRONT_CENTER 2
265 #define DSBUSID_LOW_FREQUENCY 3
266 #define DSBUSID_BACK_LEFT 4
267 #define DSBUSID_BACK_RIGHT 5
268 #define DSBUSID_FRONT_LEFT_OF_CENTER 6
269 #define DSBUSID_FRONT_RIGHT_OF_CENTER 7
270 #define DSBUSID_BACK_CENTER 8
271 #define DSBUSID_SIDE_LEFT 9
272 #define DSBUSID_SIDE_RIGHT 10
273 #define DSBUSID_TOP_CENTER 11
274 #define DSBUSID_TOP_FRONT_LEFT 12
275 #define DSBUSID_TOP_FRONT_CENTER 13
276 #define DSBUSID_TOP_FRONT_RIGHT 14
277 #define DSBUSID_TOP_BACK_LEFT 15
278 #define DSBUSID_TOP_BACK_CENTER 16
279 #define DSBUSID_TOP_BACK_RIGHT 17
280 #define DSBUSID_LAST_SPKR_LOC 17
281 #define DSBUSID_IS_SPKR_LOC(id) ( ((id) >= DSBUSID_FIRST_SPKR_LOC) && ((id) <= DSBUSID_LAST_SPKR_LOC) )
282 #define DSBUSID_REVERB_SEND 64
283 #define DSBUSID_CHORUS_SEND 65
284 #define DSBUSID_DYNAMIC_0 512
285 #define DSBUSID_NULL 0xFFFFFFFF
288 /*****************************************************************************
289 * IDirectMusic interface
291 #undef INTERFACE
292 #define INTERFACE IDirectMusic
293 #define IDirectMusic_METHODS \
294 IUnknown_METHODS \
295 STDMETHOD(EnumPort)(THIS_ DWORD dwIndex, LPDMUS_PORTCAPS pPortCaps) PURE; \
296 STDMETHOD(CreateMusicBuffer)(THIS_ LPDMUS_BUFFERDESC pBufferDesc, LPDIRECTMUSICBUFFER **ppBuffer, LPUNKNOWN pUnkOuter) PURE; \
297 STDMETHOD(CreatePort)(THIS_ REFCLSID rclsidPort, LPDMUS_PORTPARAMS pPortParams, LPDIRECTMUSICPORT *ppPort, LPUNKNOWN pUnkOuter) PURE; \
298 STDMETHOD(EnumMasterClock)(THIS_ DWORD dwIndex, LPDMUS_CLOCKINFO lpClockInfo) PURE; \
299 STDMETHOD(GetMasterClock)(THIS_ LPGUID pguidClock, IReferenceClock **ppReferenceClock) PURE; \
300 STDMETHOD(SetMasterClock)(THIS_ REFGUID rguidClock) PURE; \
301 STDMETHOD(Activate)(THIS_ BOOL fEnable) PURE; \
302 STDMETHOD(GetDefaultPort)(THIS_ LPGUID pguidPort) PURE; \
303 STDMETHOD(SetDirectSound)(THIS_ LPDIRECTSOUND pDirectSound, HWND hWnd) PURE;
304 ICOM_DEFINE(IDirectMusic,IUnknown)
305 #undef INTERFACE
307 #ifdef COBJMACROS
308 /*** IUnknown methods ***/
309 #define IDirectMusic_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
310 #define IDirectMusic_AddRef(p) (p)->lpVtbl->AddRef(p)
311 #define IDirectMusic_Release(p) (p)->lpVtbl->Release(p)
312 /*** IDirectMusic methods ***/
313 #define IDirectMusic_EnumPort(p,a,b) (p)->lpVtbl->EnumPort(p,a,b)
314 #define IDirectMusic_CreateMusicBuffer(p,a,b,c) (p)->lpVtbl->CreateMusicBuffer(p,a,b,c)
315 #define IDirectMusic_CreatePort(p,a,b,c,d) (p)->lpVtbl->CreatePort(p,a,b,c,d)
316 #define IDirectMusic_EnumMasterClock(p,a,b) (p)->lpVtbl->EnumMasterClock(p,a,b)
317 #define IDirectMusic_GetMasterClock(p,a,b) (p)->lpVtbl->GetMasterClock(p,a,b)
318 #define IDirectMusic_SetMasterClock(p,a) (p)->lpVtbl->SetMasterClock(p,a)
319 #define IDirectMusic_Activate(p,a) (p)->lpVtbl->Activate(p,a)
320 #define IDirectMusic_GetDefaultPort(p,a) (p)->lpVtbl->GetDefaultPort(p,a)
321 #define IDirectMusic_SetDirectSound(p,a,b) (p)->lpVtbl->SetDirectSound(p,a,b)
322 #endif
325 /*****************************************************************************
326 * IDirectMusic8 interface
328 #undef INTERFACE
329 #define INTERFACE IDirectMusic8
330 #define IDirectMusic8_METHODS \
331 IDirectMusic_METHODS \
332 STDMETHOD(SetExternalMasterClock)(THIS_ IReferenceClock *pClock) PURE;
333 ICOM_DEFINE(IDirectMusic8,IDirectMusic)
334 #undef INTERFACE
336 #ifdef COBJMACROS
337 /*** IUnknown methods ***/
338 #define IDirectMusic8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
339 #define IDirectMusic8_AddRef(p) (p)->lpVtbl->AddRef(p)
340 #define IDirectMusic8_Release(p) (p)->lpVtbl->Release(p)
341 /*** IDirectMusic methods ***/
342 #define IDirectMusic8_EnumPort(p,a,b) (p)->lpVtbl->EnumPort(p,a,b)
343 #define IDirectMusic8_CreateMusicBuffer(p,a,b,c) (p)->lpVtbl->CreateMusicBuffer(p,a,b,c)
344 #define IDirectMusic8_CreatePort(p,a,b,c,d) (p)->lpVtbl->CreatePort(p,a,b,c,d)
345 #define IDirectMusic8_EnumMasterClock(p,a,b) (p)->lpVtbl->EnumMasterClock(p,a,b)
346 #define IDirectMusic8_GetMasterClock(p,a,b) (p)->lpVtbl->GetMasterClock(p,a,b)
347 #define IDirectMusic8_SetMasterClock(p,a) (p)->lpVtbl->SetMasterClock(p,a)
348 #define IDirectMusic8_Activate(p,a) (p)->lpVtbl->Activate(p,a)
349 #define IDirectMusic8_GetDefaultPort(p,a) (p)->lpVtbl->GetDefaultPort(p,a)
350 #define IDirectMusic8_SetDirectSound(p,a,b) (p)->lpVtbl->SetDirectSound(p,a,b)
351 /*** IDirectMusic8 methods ***/
352 #define IDirectMusic8_SetExternalMasterClock(p,a) (p)->lpVtbl->SetExternalMasterClock(p,a)
353 #endif
356 /*****************************************************************************
357 * IDirectMusicBuffer interface
359 #undef INTERFACE
360 #define INTERFACE IDirectMusicBuffer
361 #define IDirectMusicBuffer_METHODS \
362 IUnknown_METHODS \
363 STDMETHOD(Flush)(THIS) PURE; \
364 STDMETHOD(TotalTime)(THIS_ LPREFERENCE_TIME prtTime) PURE; \
365 STDMETHOD(PackStructured)(THIS_ REFERENCE_TIME rt, DWORD dwChannelGroup, DWORD dwChannelMessage) PURE; \
366 STDMETHOD(PackUnstructured)(THIS_ REFERENCE_TIME rt, DWORD dwChannelGroup, DWORD cb, LPBYTE lpb) PURE; \
367 STDMETHOD(ResetReadPtr)(THIS) PURE; \
368 STDMETHOD(GetNextEvent)(THIS_ LPREFERENCE_TIME prt, LPDWORD pdwChannelGroup, LPDWORD pdwLength, LPBYTE *ppData) PURE; \
369 STDMETHOD(GetRawBufferPtr)(THIS_ LPBYTE *ppData) PURE; \
370 STDMETHOD(GetStartTime)(THIS_ LPREFERENCE_TIME prt) PURE; \
371 STDMETHOD(GetUsedBytes)(THIS_ LPDWORD pcb) PURE; \
372 STDMETHOD(GetMaxBytes)(THIS_ LPDWORD pcb) PURE; \
373 STDMETHOD(GetBufferFormat)(THIS_ LPGUID pGuidFormat) PURE; \
374 STDMETHOD(SetStartTime)(THIS_ REFERENCE_TIME rt) PURE; \
375 STDMETHOD(SetUsedBytes)(THIS_ DWORD cb) PURE;
376 ICOM_DEFINE(IDirectMusicBuffer,IUnknown)
377 #undef INTERFACE
379 #ifdef COBJMACROS
380 /*** IUnknown methods ***/
381 #define IDirectMusicBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
382 #define IDirectMusicBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
383 #define IDirectMusicBuffer_Release(p) (p)->lpVtbl->Release(p)
384 /*** IDirectMusicBuffer methods ***/
385 #define IDirectMusicBuffer_Flush(p) (p)->lpVtbl->Flush(p)
386 #define IDirectMusicBuffer_TotalTime(p,a) (p)->lpVtbl->TotalTime(p,a)
387 #define IDirectMusicBuffer_PackStructured(p,a,b,c) (p)->lpVtbl->PackStructured(p,a,b,c)
388 #define IDirectMusicBuffer_PackUnstructured(p,a,b,c,d) (p)->lpVtbl->PackUnstructured(p,a,b,c,d)
389 #define IDirectMusicBuffer_ResetReadPtr(p) (p)->lpVtbl->ResetReadPtr(p)
390 #define IDirectMusicBuffer_GetNextEvent(p,a,b,c,d) (p)->lpVtbl->GetNextEvent(p,a,b,c,d)
391 #define IDirectMusicBuffer_GetRawBufferPtr(p,a) (p)->lpVtbl->GetRawBufferPtr(p,a)
392 #define IDirectMusicBuffer_GetStartTime(p,a) (p)->lpVtbl->GetStartTime(p,a)
393 #define IDirectMusicBuffer_GetUsedBytes(p,a) (p)->lpVtbl->GetUsedBytes(p,a)
394 #define IDirectMusicBuffer_GetMaxBytes(p,a) (p)->lpVtbl->GetMaxBytes(p,a)
395 #define IDirectMusicBuffer_GetBufferFormat(p,a) (p)->lpVtbl->GetBufferFormat(p,a)
396 #define IDirectMusicBuffer_SetStartTime(p,a) (p)->lpVtbl->SetStartTime(p,a)
397 #define IDirectMusicBuffer_SetUsedBytes(p,a) (p)->lpVtbl->SetUsedBytes(p,a)
398 #endif
400 /*****************************************************************************
401 * IDirectMusicInstrument interface
403 #undef INTERFACE
404 #define INTERFACE IDirectMusicInstrument
405 #define IDirectMusicInstrument_METHODS \
406 IUnknown_METHODS \
407 STDMETHOD(GetPatch)(THIS_ DWORD *pdwPatch) PURE; \
408 STDMETHOD(SetPatch)(THIS_ DWORD dwPatch) PURE;
409 ICOM_DEFINE(IDirectMusicInstrument,IUnknown)
410 #undef INTERFACE
412 #ifdef COBJMACROS
413 /*** IUnknown methods ***/
414 #define IDirectMusicInstrument_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
415 #define IDirectMusicInstrument_AddRef(p) (p)->lpVtbl->AddRef(p)
416 #define IDirectMusicInstrument_Release(p) (p)->lpVtbl->Release(p)
417 /*** IDirectMusicInstrument methods ***/
418 #define IDirectMusicInstrument_GetPatch(p,a) (p)->lpVtbl->GetPatch(p,a)
419 #define IDirectMusicInstrument_SetPatch(p,a) (p)->lpVtbl->SetPatch(p,a)
420 #endif
423 /*****************************************************************************
424 * IDirectMusicDownloadedInstrument interface
426 #undef INTERFACE
427 #define INTERFACE IDirectMusicDownloadedInstrument
428 #define IDirectMusicDownloadedInstrument_METHODS \
429 IUnknown_METHODS \
430 /* no IDirectMusicDownloadedInstrument methods at this time */
431 ICOM_DEFINE(IDirectMusicDownloadedInstrument,IUnknown)
432 #undef INTERFACE
434 #ifdef COBJMACROS
435 /*** IUnknown methods ***/
436 #define IDirectMusicDownloadedInstrument_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
437 #define IDirectMusicDownloadedInstrument_AddRef(p) (p)->lpVtbl->AddRef(p)
438 #define IDirectMusicDownloadedInstrument_Release(p) (p)->lpVtbl->Release(p)
439 /*** IDirectMusicDownloadedInstrument methods ***/
440 /* none at this time */
441 #endif
444 /*****************************************************************************
445 * IDirectMusicCollection interface
447 #undef INTERFACE
448 #define INTERFACE IDirectMusicCollection
449 #define IDirectMusicCollection_METHODS \
450 IUnknown_METHODS \
451 STDMETHOD(GetInstrument)(THIS_ DWORD dwPatch, IDirectMusicInstrument **ppInstrument) PURE; \
452 STDMETHOD(EnumInstrument)(THIS_ DWORD dwIndex, DWORD *pdwPatch, LPWSTR pwszName, DWORD dwNameLen) PURE;
453 ICOM_DEFINE(IDirectMusicCollection,IUnknown)
454 #undef INTERFACE
456 #ifdef COBJMACROS
457 /*** IUnknown methods ***/
458 #define IDirectMusicCollection_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
459 #define IDirectMusicCollection_AddRef(p) (p)->lpVtbl->AddRef(p)
460 #define IDirectMusicCollection_Release(p) (p)->lpVtbl->Release(p)
461 /*** IDirectMusicCollection methods ***/
462 #define IDirectMusicCollection_GetInstrument(p,a,b) (p)->lpVtbl->GetInstrument(p,a,b)
463 #define IDirectMusicCollection_EnumInstrument(p,a,b,c) (p)->lpVtbl->EnumInstrument(p,a,b,c)
464 #endif
467 /*****************************************************************************
468 * IDirectMusicDownload interface
470 #undef INTERFACE
471 #define INTERFACE IDirectMusicDownload
472 #define IDirectMusicDownload_METHODS \
473 IUnknown_METHODS \
474 STDMETHOD(GetBuffer)(THIS_ void **ppvBuffer, DWORD *pdwSize) PURE;
475 ICOM_DEFINE(IDirectMusicDownload,IUnknown)
476 #undef INTERFACE
478 #ifdef COBJMACROS
479 /*** IUnknown methods ***/
480 #define IDirectMusicDownload_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
481 #define IDirectMusicDownload_AddRef(p) (p)->lpVtbl->AddRef(p)
482 #define IDirectMusicDownload_Release(p) (p)->lpVtbl->Release(p)
483 /*** IDirectMusicDownload methods ***/
484 #define IDirectMusicDownload_GetBuffer(p,a,b) (p)->lpVtbl->GetBuffer(p,a,b)
485 #endif
488 /*****************************************************************************
489 * IDirectMusicPortDownload interface
491 #undef INTERFACE
492 #define INTERFACE IDirectMusicPortDownload
493 #define IDirectMusicPortDownload_METHODS \
494 IUnknown_METHODS \
495 STDMETHOD(GetBuffer)(THIS_ DWORD dwDLId, IDirectMusicDownload **ppIDMDownload) PURE; \
496 STDMETHOD(AllocateBuffer)(THIS_ DWORD dwSize, IDirectMusicDownload **ppIDMDownload) PURE; \
497 STDMETHOD(GetDLId)(THIS_ DWORD *pdwStartDLId, DWORD dwCount) PURE; \
498 STDMETHOD(GetAppend)(THIS_ DWORD *pdwAppend) PURE; \
499 STDMETHOD(Download)(THIS_ IDirectMusicDownload *pIDMDownload) PURE; \
500 STDMETHOD(Unload)(THIS_ IDirectMusicDownload *pIDMDownload) PURE;
501 ICOM_DEFINE(IDirectMusicPortDownload,IUnknown)
502 #undef INTERFACE
504 #ifdef COBJMACROS
505 /*** IUnknown methods ***/
506 #define IDirectMusicPortDownload_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
507 #define IDirectMusicPortDownload_AddRef(p) (p)->lpVtbl->AddRef(p)
508 #define IDirectMusicPortDownload_Release(p) (p)->lpVtbl->Release(p)
509 /*** IDirectMusicPortDownload methods ***/
510 #define IDirectMusicPortDownload_GetBuffer(p,a,b) (p)->lpVtbl->GetBuffer(p,a,b)
511 #define IDirectMusicPortDownload_AllocateBuffer(p,a,b) (p)->lpVtbl->AllocateBuffer(p,a,b)
512 #define IDirectMusicPortDownload_GetDLId(p,a,b) (p)->lpVtbl->GetDLId(p,a,b)
513 #define IDirectMusicPortDownload_GetAppend(p,a) (p)->lpVtbl->GetAppend(p,a)
514 #define IDirectMusicPortDownload_Download(p,a) (p)->lpVtbl->Download(p,a)
515 #define IDirectMusicPortDownload_Unload(p,a) (p)->lpVtbl->GetBuffer(p,a)
516 #endif
519 #ifndef __WINE_DIRECTAUDIO_PRIORITIES_DEFINED
520 #define __WINE_DIRECTAUDIO_PRIORITIES_DEFINED
522 #define DAUD_CRITICAL_VOICE_PRIORITY (0xF0000000)
523 #define DAUD_HIGH_VOICE_PRIORITY (0xC0000000)
524 #define DAUD_STANDARD_VOICE_PRIORITY (0x80000000)
525 #define DAUD_LOW_VOICE_PRIORITY (0x40000000)
526 #define DAUD_PERSIST_VOICE_PRIORITY (0x10000000)
528 #define DAUD_CHAN1_VOICE_PRIORITY_OFFSET (0x0000000E)
529 #define DAUD_CHAN2_VOICE_PRIORITY_OFFSET (0x0000000D)
530 #define DAUD_CHAN3_VOICE_PRIORITY_OFFSET (0x0000000C)
531 #define DAUD_CHAN4_VOICE_PRIORITY_OFFSET (0x0000000B)
532 #define DAUD_CHAN5_VOICE_PRIORITY_OFFSET (0x0000000A)
533 #define DAUD_CHAN6_VOICE_PRIORITY_OFFSET (0x00000009)
534 #define DAUD_CHAN7_VOICE_PRIORITY_OFFSET (0x00000008)
535 #define DAUD_CHAN8_VOICE_PRIORITY_OFFSET (0x00000007)
536 #define DAUD_CHAN9_VOICE_PRIORITY_OFFSET (0x00000006)
537 #define DAUD_CHAN10_VOICE_PRIORITY_OFFSET (0x0000000F)
538 #define DAUD_CHAN11_VOICE_PRIORITY_OFFSET (0x00000005)
539 #define DAUD_CHAN12_VOICE_PRIORITY_OFFSET (0x00000004)
540 #define DAUD_CHAN13_VOICE_PRIORITY_OFFSET (0x00000003)
541 #define DAUD_CHAN14_VOICE_PRIORITY_OFFSET (0x00000002)
542 #define DAUD_CHAN15_VOICE_PRIORITY_OFFSET (0x00000001)
543 #define DAUD_CHAN16_VOICE_PRIORITY_OFFSET (0x00000000)
545 #define DAUD_CHAN1_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN1_VOICE_PRIORITY_OFFSET)
546 #define DAUD_CHAN2_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN2_VOICE_PRIORITY_OFFSET)
547 #define DAUD_CHAN3_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN3_VOICE_PRIORITY_OFFSET)
548 #define DAUD_CHAN4_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN4_VOICE_PRIORITY_OFFSET)
549 #define DAUD_CHAN5_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN5_VOICE_PRIORITY_OFFSET)
550 #define DAUD_CHAN6_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN6_VOICE_PRIORITY_OFFSET)
551 #define DAUD_CHAN7_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN7_VOICE_PRIORITY_OFFSET)
552 #define DAUD_CHAN8_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN8_VOICE_PRIORITY_OFFSET)
553 #define DAUD_CHAN9_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN9_VOICE_PRIORITY_OFFSET)
554 #define DAUD_CHAN10_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN10_VOICE_PRIORITY_OFFSET)
555 #define DAUD_CHAN11_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN11_VOICE_PRIORITY_OFFSET)
556 #define DAUD_CHAN12_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN12_VOICE_PRIORITY_OFFSET)
557 #define DAUD_CHAN13_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN13_VOICE_PRIORITY_OFFSET)
558 #define DAUD_CHAN14_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN14_VOICE_PRIORITY_OFFSET)
559 #define DAUD_CHAN15_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN15_VOICE_PRIORITY_OFFSET)
560 #define DAUD_CHAN16_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN16_VOICE_PRIORITY_OFFSET)
562 #endif /* __WINE_DIRECTAUDIO_PRIORITIES_DEFINED */
565 /*****************************************************************************
566 * IDirectMusicPort interface
568 #undef INTERFACE
569 #define INTERFACE IDirectMusicPort
570 #define IDirectMusicPort_METHODS \
571 IUnknown_METHODS \
572 STDMETHOD(PlayBuffer)(THIS_ LPDIRECTMUSICBUFFER pBuffer) PURE; \
573 STDMETHOD(SetReadNotificationHandle)(THIS_ HANDLE hEvent) PURE; \
574 STDMETHOD(Read)(THIS_ LPDIRECTMUSICBUFFER pBuffer) PURE; \
575 STDMETHOD(DownloadInstrument)(THIS_ IDirectMusicInstrument *pInstrument, IDirectMusicDownloadedInstrument **ppDownloadedInstrument, DMUS_NOTERANGE *pNoteRanges, DWORD dwNumNoteRanges) PURE; \
576 STDMETHOD(UnloadInstrument)(THIS_ IDirectMusicDownloadedInstrument *pDownloadedInstrument) PURE; \
577 STDMETHOD(GetLatencyClock)(THIS_ IReferenceClock **ppClock) PURE; \
578 STDMETHOD(GetRunningStats)(THIS_ LPDMUS_SYNTHSTATS pStats) PURE; \
579 STDMETHOD(GetCaps)(THIS_ LPDMUS_PORTCAPS pPortCaps) PURE; \
580 STDMETHOD(DeviceIoControl)(THIS_ DWORD dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped) PURE; \
581 STDMETHOD(SetNumChannelGroups)(THIS_ DWORD dwChannelGroups) PURE; \
582 STDMETHOD(GetNumChannelGroups)(THIS_ LPDWORD pdwChannelGroups) PURE; \
583 STDMETHOD(Activate)(THIS_ BOOL fActive) PURE; \
584 STDMETHOD(SetChannelPriority)(THIS_ DWORD dwChannelGroup, DWORD dwChannel, DWORD dwPriority) PURE; \
585 STDMETHOD(GetChannelPriority)(THIS_ DWORD dwChannelGroup, DWORD dwChannel, LPDWORD pdwPriority) PURE; \
586 STDMETHOD(SetDirectSound)(THIS_ LPDIRECTSOUND pDirectSound, LPDIRECTSOUNDBUFFER pDirectSoundBuffer) PURE; \
587 STDMETHOD(GetFormat)(THIS_ LPWAVEFORMATEX pWaveFormatEx, LPDWORD pdwWaveFormatExSize, LPDWORD pdwBufferSize) PURE;
588 ICOM_DEFINE(IDirectMusicPort,IUnknown)
589 #undef INTERFACE
591 #ifdef COBJMACROS
592 /*** IUnknown methods ***/
593 #define IDirectMusicPort_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
594 #define IDirectMusicPort_AddRef(p) (p)->lpVtbl->AddRef(p)
595 #define IDirectMusicPort_Release(p) (p)->lpVtbl->Release(p)
596 /*** IDirectMusicPort methods ***/
597 #define IDirectMusicPort_PlayBuffer(p,a) (p)->lpVtbl->PlayBuffer(p,a)
598 #define IDirectMusicPort_SetReadNotificationHandle(p,a) (p)->lpVtbl->SetReadNotificationHandle(p,a)
599 #define IDirectMusicPort_Read(p,a) (p)->lpVtbl->Read(p,a)
600 #define IDirectMusicPort_DownloadInstrument(p,a,b,c,d) (p)->lpVtbl->DownloadInstrument(p,a,b,c,d)
601 #define IDirectMusicPort_UnloadInstrument(p,a) (p)->lpVtbl->UnloadInstrument(p,a)
602 #define IDirectMusicPort_GetLatencyClock(p,a) (p)->lpVtbl->GetLatencyClock(p,a)
603 #define IDirectMusicPort_GetRunningStats(p,a) (p)->lpVtbl->GetRunningStats(p,a)
604 #define IDirectMusicPort_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
605 #define IDirectMusicPort_DeviceIoControl(p,a,b,c,d,e,f,g) (p)->lpVtbl->DeviceIoControl(p,a,b,c,d,e,f,g)
606 #define IDirectMusicPort_SetNumChannelGroups(p,a) (p)->lpVtbl->SetNumChannelGroups(p,a)
607 #define IDirectMusicPort_GetNumChannelGroups(p,a) (p)->lpVtbl->GetNumChannelGroups(p,a)
608 #define IDirectMusicPort_Activate(p,a) (p)->lpVtbl->Activate(p,a)
609 #define IDirectMusicPort_SetChannelPriority(p,a,b,c) (p)->lpVtbl->SetChannelPriority(p,a,b,c)
610 #define IDirectMusicPort_GetChannelPriority(p,a,b,c) (p)->lpVtbl->GetChannelPriority(p,a,b,c)
611 #define IDirectMusicPort_SetDirectSound(p,a,b) (p)->lpVtbl->SetDirectSound(p,a,b)
612 #define IDirectMusicPort_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c)
613 #endif
616 /*****************************************************************************
617 * IDirectMusicThru interface
619 #undef INTERFACE
620 #define INTERFACE IDirectMusicThru
621 #define IDirectMusicThru_METHODS \
622 IUnknown_METHODS \
623 STDMETHOD(ThruChannel)(THIS_ DWORD dwSourceChannelGroup, DWORD dwSourceChannel, DWORD dwDestinationChannelGroup, DWORD dwDestinationChannel, LPDIRECTMUSICPORT pDestinationPort) PURE;
624 ICOM_DEFINE(IDirectMusicThru,IUnknown)
625 #undef INTERFACE
627 #ifdef COBJMACROS
628 /*** IUnknown methods ***/
629 #define IDirectMusicThru_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
630 #define IDirectMusicThru_AddRef(p) (p)->lpVtbl->AddRef(p)
631 #define IDirectMusicThru_Release(p) (p)->lpVtbl->Release(p)
632 /*** IDirectMusicThru methods ***/
633 #define IDirectMusicThru_ThruChannel(p,a,b,c,d,e) (p)->lpVtbl->ThruChannel(p,a,b,c,d,e)
634 #endif
637 /* this one should be defined in dsound.h too, but it's ok if it's here */
638 #ifndef __IReferenceClock_INTERFACE_DEFINED__
639 #define __IReferenceClock_INTERFACE_DEFINED__
641 DEFINE_GUID(IID_IReferenceClock, 0x56a86897,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70);
643 /*****************************************************************************
644 * IReferenceClock interface
646 #undef INTERFACE
647 #define INTERFACE IReferenceClock
648 #define IReferenceClock_METHODS \
649 IUnknown_METHODS \
650 STDMETHOD(GetTime)(THIS_ REFERENCE_TIME *pTime) PURE; \
651 STDMETHOD(AdviseTime)(THIS_ REFERENCE_TIME baseTime, REFERENCE_TIME streamTime, HANDLE hEvent, DWORD *pdwAdviseCookie) PURE; \
652 STDMETHOD(AdvisePeriodic)(THIS_ REFERENCE_TIME startTime, REFERENCE_TIME periodTime, HANDLE hSemaphore, DWORD *pdwAdviseCookie) PURE; \
653 STDMETHOD(Unadvise)(THIS_ DWORD dwAdviseCookie) PURE;
654 ICOM_DEFINE(IReferenceClock,IUnknown)
655 #undef INTERFACE
657 #ifdef COBJMACROS
658 /*** IUnknown methods ***/
659 #define IReferenceClock_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
660 #define IReferenceClock_AddRef(p) (p)->lpVtbl->AddRef(p)
661 #define IReferenceClock_Release(p) (p)->lpVtbl->Release(p)
662 /*** IReferenceClock methods ***/
663 #define IReferenceClock_GetTime(p,a) (p)->lpVtbl->GetTime(p,a)
664 #define IReferenceClock_AdviseTime(p,a,b,c,d) (p)->lpVtbl->AdviseTime(p,a,b,c,d)
665 #define IReferenceClock_AdvisePeriodic(p,a,b,c,d) (p)->lpVtbl->AdvisePeriodic(p,a,b,c,d)
666 #define IReferenceClock_Unadvise(p,a) (p)->lpVtbl->Unadvise(p,a)
667 #endif
669 #endif /* __IReferenceClock_INTERFACE_DEFINED__ */
671 #define DMUS_VOLUME_MAX 2000
672 #define DMUS_VOLUME_MIN -20000
674 #ifdef __cplusplus
675 } /* extern "C" */
676 #endif /* __cplusplus */
678 /*#include <poppack.h> */
680 #endif /* __WINE_DMUSIC_CORE_H */