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