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