VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/dmusicc.h@ 78046

Last change on this file since 78046 was 53206, checked in by vboxsync, 10 years ago

Devices/vmsvga: header fixes

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette