annotate lib/legacy_dx/dmusicc.h @ 2056:a35d173cd99c

Merge
author Ritor1
date Sat, 30 Nov 2013 20:09:04 +0600
parents 9c0607679772
children
rev   line source
0
Ritor1
parents:
diff changeset
1 /************************************************************************
Ritor1
parents:
diff changeset
2 * *
Ritor1
parents:
diff changeset
3 * dmusicc.h -- This module defines the DirectMusic core API's *
Ritor1
parents:
diff changeset
4 * *
Ritor1
parents:
diff changeset
5 * Copyright (c) Microsoft Corporation. All rights reserved. *
Ritor1
parents:
diff changeset
6 * *
Ritor1
parents:
diff changeset
7 ************************************************************************/
Ritor1
parents:
diff changeset
8
Ritor1
parents:
diff changeset
9 #ifndef _DMUSICC_
Ritor1
parents:
diff changeset
10 #define _DMUSICC_
Ritor1
parents:
diff changeset
11
Ritor1
parents:
diff changeset
12 #include <windows.h>
Ritor1
parents:
diff changeset
13
Ritor1
parents:
diff changeset
14 #define COM_NO_WINDOWS_H
Ritor1
parents:
diff changeset
15 #include <objbase.h>
Ritor1
parents:
diff changeset
16
Ritor1
parents:
diff changeset
17 #include <mmsystem.h>
Ritor1
parents:
diff changeset
18
Ritor1
parents:
diff changeset
19 #include "dls1.h"
Ritor1
parents:
diff changeset
20 #include "dmerror.h"
Ritor1
parents:
diff changeset
21 #include "dmdls.h"
Ritor1
parents:
diff changeset
22 #include "dsound.h"
Ritor1
parents:
diff changeset
23 #include "dmusbuff.h"
Ritor1
parents:
diff changeset
24
Ritor1
parents:
diff changeset
25 #include <pshpack8.h>
Ritor1
parents:
diff changeset
26
Ritor1
parents:
diff changeset
27 #ifdef __cplusplus
Ritor1
parents:
diff changeset
28 extern "C" {
Ritor1
parents:
diff changeset
29 #endif
Ritor1
parents:
diff changeset
30
Ritor1
parents:
diff changeset
31 typedef ULONGLONG SAMPLE_TIME;
Ritor1
parents:
diff changeset
32 typedef ULONGLONG SAMPLE_POSITION;
Ritor1
parents:
diff changeset
33 typedef SAMPLE_TIME *LPSAMPLE_TIME;
Ritor1
parents:
diff changeset
34
Ritor1
parents:
diff changeset
35 #define DMUS_MAX_DESCRIPTION 128
Ritor1
parents:
diff changeset
36 #define DMUS_MAX_DRIVER 128
Ritor1
parents:
diff changeset
37
Ritor1
parents:
diff changeset
38 typedef struct _DMUS_BUFFERDESC *LPDMUS_BUFFERDESC;
Ritor1
parents:
diff changeset
39 typedef struct _DMUS_BUFFERDESC
Ritor1
parents:
diff changeset
40 {
Ritor1
parents:
diff changeset
41 DWORD dwSize;
Ritor1
parents:
diff changeset
42 DWORD dwFlags;
Ritor1
parents:
diff changeset
43 GUID guidBufferFormat;
Ritor1
parents:
diff changeset
44 DWORD cbBuffer;
Ritor1
parents:
diff changeset
45 } DMUS_BUFFERDESC;
Ritor1
parents:
diff changeset
46
Ritor1
parents:
diff changeset
47 /* DMUS_EFFECT_ flags are used in the dwEffectFlags fields of both DMUS_PORTCAPS
Ritor1
parents:
diff changeset
48 * and DMUS_PORTPARAMS.
Ritor1
parents:
diff changeset
49 */
Ritor1
parents:
diff changeset
50 #define DMUS_EFFECT_NONE 0x00000000
Ritor1
parents:
diff changeset
51 #define DMUS_EFFECT_REVERB 0x00000001
Ritor1
parents:
diff changeset
52 #define DMUS_EFFECT_CHORUS 0x00000002
Ritor1
parents:
diff changeset
53 #define DMUS_EFFECT_DELAY 0x00000004
Ritor1
parents:
diff changeset
54
Ritor1
parents:
diff changeset
55 /* For DMUS_PORTCAPS dwClass
Ritor1
parents:
diff changeset
56 */
Ritor1
parents:
diff changeset
57 #define DMUS_PC_INPUTCLASS (0)
Ritor1
parents:
diff changeset
58 #define DMUS_PC_OUTPUTCLASS (1)
Ritor1
parents:
diff changeset
59
Ritor1
parents:
diff changeset
60 /* For DMUS_PORTCAPS dwFlags
Ritor1
parents:
diff changeset
61 */
Ritor1
parents:
diff changeset
62 #define DMUS_PC_DLS (0x00000001) // Supports DLS downloading and DLS level 1.
Ritor1
parents:
diff changeset
63 #define DMUS_PC_EXTERNAL (0x00000002) // External MIDI module.
Ritor1
parents:
diff changeset
64 #define DMUS_PC_SOFTWARESYNTH (0x00000004) // Software synthesizer.
Ritor1
parents:
diff changeset
65 #define DMUS_PC_MEMORYSIZEFIXED (0x00000008) // Memory size is fixed.
Ritor1
parents:
diff changeset
66 #define DMUS_PC_GMINHARDWARE (0x00000010) // GM sound set is built in, no need to download.
Ritor1
parents:
diff changeset
67 #define DMUS_PC_GSINHARDWARE (0x00000020) // GS sound set is built in.
Ritor1
parents:
diff changeset
68 #define DMUS_PC_XGINHARDWARE (0x00000040) // XG sound set is built in.
Ritor1
parents:
diff changeset
69 #define DMUS_PC_DIRECTSOUND (0x00000080) // Connects to DirectSound via a DirectSound buffer.
Ritor1
parents:
diff changeset
70 #define DMUS_PC_SHAREABLE (0x00000100) // Synth can be actively shared by multiple apps at once.
Ritor1
parents:
diff changeset
71 #define DMUS_PC_DLS2 (0x00000200) // Supports DLS2 instruments.
Ritor1
parents:
diff changeset
72 #define DMUS_PC_AUDIOPATH (0x00000400) // Multiple outputs can be connected to DirectSound for audiopaths.
Ritor1
parents:
diff changeset
73 #define DMUS_PC_WAVE (0x00000800) // Supports streaming and one shot waves.
Ritor1
parents:
diff changeset
74
Ritor1
parents:
diff changeset
75 #define DMUS_PC_SYSTEMMEMORY (0x7FFFFFFF) // Sample memory is system memory.
Ritor1
parents:
diff changeset
76
Ritor1
parents:
diff changeset
77
Ritor1
parents:
diff changeset
78 typedef struct _DMUS_PORTCAPS
Ritor1
parents:
diff changeset
79 {
Ritor1
parents:
diff changeset
80 DWORD dwSize;
Ritor1
parents:
diff changeset
81 DWORD dwFlags;
Ritor1
parents:
diff changeset
82 GUID guidPort;
Ritor1
parents:
diff changeset
83 DWORD dwClass;
Ritor1
parents:
diff changeset
84 DWORD dwType;
Ritor1
parents:
diff changeset
85 DWORD dwMemorySize;
Ritor1
parents:
diff changeset
86 DWORD dwMaxChannelGroups;
Ritor1
parents:
diff changeset
87 DWORD dwMaxVoices;
Ritor1
parents:
diff changeset
88 DWORD dwMaxAudioChannels;
Ritor1
parents:
diff changeset
89 DWORD dwEffectFlags;
Ritor1
parents:
diff changeset
90 WCHAR wszDescription[DMUS_MAX_DESCRIPTION];
Ritor1
parents:
diff changeset
91 } DMUS_PORTCAPS;
Ritor1
parents:
diff changeset
92
Ritor1
parents:
diff changeset
93 typedef DMUS_PORTCAPS *LPDMUS_PORTCAPS;
Ritor1
parents:
diff changeset
94
Ritor1
parents:
diff changeset
95 /* Values for DMUS_PORTCAPS dwType. This field indicates the underlying
Ritor1
parents:
diff changeset
96 * driver type of the port.
Ritor1
parents:
diff changeset
97 */
Ritor1
parents:
diff changeset
98 #define DMUS_PORT_WINMM_DRIVER (0)
Ritor1
parents:
diff changeset
99 #define DMUS_PORT_USER_MODE_SYNTH (1)
Ritor1
parents:
diff changeset
100 #define DMUS_PORT_KERNEL_MODE (2)
Ritor1
parents:
diff changeset
101
Ritor1
parents:
diff changeset
102 /* These flags (set in dwValidParams) indicate which other members of the */
Ritor1
parents:
diff changeset
103 /* DMUS_PORTPARAMS are valid. */
Ritor1
parents:
diff changeset
104 /* */
Ritor1
parents:
diff changeset
105 #define DMUS_PORTPARAMS_VOICES 0x00000001
Ritor1
parents:
diff changeset
106 #define DMUS_PORTPARAMS_CHANNELGROUPS 0x00000002
Ritor1
parents:
diff changeset
107 #define DMUS_PORTPARAMS_AUDIOCHANNELS 0x00000004
Ritor1
parents:
diff changeset
108 #define DMUS_PORTPARAMS_SAMPLERATE 0x00000008
Ritor1
parents:
diff changeset
109 #define DMUS_PORTPARAMS_EFFECTS 0x00000020
Ritor1
parents:
diff changeset
110 #define DMUS_PORTPARAMS_SHARE 0x00000040
Ritor1
parents:
diff changeset
111 #define DMUS_PORTPARAMS_FEATURES 0x00000080 /* DirectX 8.0 and above */
Ritor1
parents:
diff changeset
112
Ritor1
parents:
diff changeset
113 typedef struct _DMUS_PORTPARAMS
Ritor1
parents:
diff changeset
114 {
Ritor1
parents:
diff changeset
115 DWORD dwSize;
Ritor1
parents:
diff changeset
116 DWORD dwValidParams;
Ritor1
parents:
diff changeset
117 DWORD dwVoices;
Ritor1
parents:
diff changeset
118 DWORD dwChannelGroups;
Ritor1
parents:
diff changeset
119 DWORD dwAudioChannels;
Ritor1
parents:
diff changeset
120 DWORD dwSampleRate;
Ritor1
parents:
diff changeset
121 DWORD dwEffectFlags;
Ritor1
parents:
diff changeset
122 BOOL fShare;
Ritor1
parents:
diff changeset
123 } DMUS_PORTPARAMS7;
Ritor1
parents:
diff changeset
124
Ritor1
parents:
diff changeset
125 typedef struct _DMUS_PORTPARAMS8
Ritor1
parents:
diff changeset
126 {
Ritor1
parents:
diff changeset
127 DWORD dwSize;
Ritor1
parents:
diff changeset
128 DWORD dwValidParams;
Ritor1
parents:
diff changeset
129 DWORD dwVoices;
Ritor1
parents:
diff changeset
130 DWORD dwChannelGroups;
Ritor1
parents:
diff changeset
131 DWORD dwAudioChannels;
Ritor1
parents:
diff changeset
132 DWORD dwSampleRate;
Ritor1
parents:
diff changeset
133 DWORD dwEffectFlags;
Ritor1
parents:
diff changeset
134 BOOL fShare;
Ritor1
parents:
diff changeset
135 DWORD dwFeatures;
Ritor1
parents:
diff changeset
136 } DMUS_PORTPARAMS8;
Ritor1
parents:
diff changeset
137
Ritor1
parents:
diff changeset
138 #define DMUS_PORT_FEATURE_AUDIOPATH 0x00000001 /* Supports audiopath connection to DirectSound buffers. */
Ritor1
parents:
diff changeset
139 #define DMUS_PORT_FEATURE_STREAMING 0x00000002 /* Supports streaming waves through the synth. */
Ritor1
parents:
diff changeset
140
Ritor1
parents:
diff changeset
141
Ritor1
parents:
diff changeset
142 typedef DMUS_PORTPARAMS8 DMUS_PORTPARAMS;
Ritor1
parents:
diff changeset
143 typedef DMUS_PORTPARAMS *LPDMUS_PORTPARAMS;
Ritor1
parents:
diff changeset
144
Ritor1
parents:
diff changeset
145 typedef struct _DMUS_SYNTHSTATS *LPDMUS_SYNTHSTATS;
Ritor1
parents:
diff changeset
146 typedef struct _DMUS_SYNTHSTATS8 *LPDMUS_SYNTHSTATS8;
Ritor1
parents:
diff changeset
147 typedef struct _DMUS_SYNTHSTATS
Ritor1
parents:
diff changeset
148 {
Ritor1
parents:
diff changeset
149 DWORD dwSize; /* Size in bytes of the structure */
Ritor1
parents:
diff changeset
150 DWORD dwValidStats; /* Flags indicating which fields below are valid. */
Ritor1
parents:
diff changeset
151 DWORD dwVoices; /* Average number of voices playing. */
Ritor1
parents:
diff changeset
152 DWORD dwTotalCPU; /* Total CPU usage as percent * 100. */
Ritor1
parents:
diff changeset
153 DWORD dwCPUPerVoice; /* CPU per voice as percent * 100. */
Ritor1
parents:
diff changeset
154 DWORD dwLostNotes; /* Number of notes lost in 1 second. */
Ritor1
parents:
diff changeset
155 DWORD dwFreeMemory; /* Free memory in bytes */
Ritor1
parents:
diff changeset
156 long lPeakVolume; /* Decibel level * 100. */
Ritor1
parents:
diff changeset
157 } DMUS_SYNTHSTATS;
Ritor1
parents:
diff changeset
158
Ritor1
parents:
diff changeset
159 typedef struct _DMUS_SYNTHSTATS8
Ritor1
parents:
diff changeset
160 {
Ritor1
parents:
diff changeset
161 DWORD dwSize; /* Size in bytes of the structure */
Ritor1
parents:
diff changeset
162 DWORD dwValidStats; /* Flags indicating which fields below are valid. */
Ritor1
parents:
diff changeset
163 DWORD dwVoices; /* Average number of voices playing. */
Ritor1
parents:
diff changeset
164 DWORD dwTotalCPU; /* Total CPU usage as percent * 100. */
Ritor1
parents:
diff changeset
165 DWORD dwCPUPerVoice; /* CPU per voice as percent * 100. */
Ritor1
parents:
diff changeset
166 DWORD dwLostNotes; /* Number of notes lost in 1 second. */
Ritor1
parents:
diff changeset
167 DWORD dwFreeMemory; /* Free memory in bytes */
Ritor1
parents:
diff changeset
168 long lPeakVolume; /* Decibel level * 100. */
Ritor1
parents:
diff changeset
169 DWORD dwSynthMemUse; /* Memory used by synth wave data */
Ritor1
parents:
diff changeset
170 } DMUS_SYNTHSTATS8;
Ritor1
parents:
diff changeset
171
Ritor1
parents:
diff changeset
172 #define DMUS_SYNTHSTATS_VOICES (1 << 0)
Ritor1
parents:
diff changeset
173 #define DMUS_SYNTHSTATS_TOTAL_CPU (1 << 1)
Ritor1
parents:
diff changeset
174 #define DMUS_SYNTHSTATS_CPU_PER_VOICE (1 << 2)
Ritor1
parents:
diff changeset
175 #define DMUS_SYNTHSTATS_LOST_NOTES (1 << 3)
Ritor1
parents:
diff changeset
176 #define DMUS_SYNTHSTATS_PEAK_VOLUME (1 << 4)
Ritor1
parents:
diff changeset
177 #define DMUS_SYNTHSTATS_FREE_MEMORY (1 << 5)
Ritor1
parents:
diff changeset
178
Ritor1
parents:
diff changeset
179 #define DMUS_SYNTHSTATS_SYSTEMMEMORY DMUS_PC_SYSTEMMEMORY
Ritor1
parents:
diff changeset
180
Ritor1
parents:
diff changeset
181 typedef struct _DMUS_WAVES_REVERB_PARAMS
Ritor1
parents:
diff changeset
182 {
Ritor1
parents:
diff changeset
183 float fInGain; /* Input gain in dB (to avoid output overflows) */
Ritor1
parents:
diff changeset
184 float fReverbMix; /* Reverb mix in dB. 0dB means 100% wet reverb (no direct signal)
Ritor1
parents:
diff changeset
185 Negative values gives less wet signal.
Ritor1
parents:
diff changeset
186 The coeficients are calculated so that the overall output level stays
Ritor1
parents:
diff changeset
187 (approximately) constant regardless of the ammount of reverb mix. */
Ritor1
parents:
diff changeset
188 float fReverbTime; /* The reverb decay time, in milliseconds. */
Ritor1
parents:
diff changeset
189 float fHighFreqRTRatio; /* The ratio of the high frequencies to the global reverb time.
Ritor1
parents:
diff changeset
190 Unless very 'splashy-bright' reverbs are wanted, this should be set to
Ritor1
parents:
diff changeset
191 a value < 1.0.
Ritor1
parents:
diff changeset
192 For example if dRevTime==1000ms and dHighFreqRTRatio=0.1 than the
Ritor1
parents:
diff changeset
193 decay time for high frequencies will be 100ms.*/
Ritor1
parents:
diff changeset
194
Ritor1
parents:
diff changeset
195 } DMUS_WAVES_REVERB_PARAMS;
Ritor1
parents:
diff changeset
196
Ritor1
parents:
diff changeset
197 /* Note: Default values for Reverb are:
Ritor1
parents:
diff changeset
198 fInGain = 0.0dB (no change in level)
Ritor1
parents:
diff changeset
199 fReverbMix = -10.0dB (a reasonable reverb mix)
Ritor1
parents:
diff changeset
200 fReverbTime = 1000.0ms (one second global reverb time)
Ritor1
parents:
diff changeset
201 fHighFreqRTRatio = 0.001 (the ratio of the high frequencies to the global reverb time)
Ritor1
parents:
diff changeset
202 */
Ritor1
parents:
diff changeset
203
Ritor1
parents:
diff changeset
204 typedef enum
Ritor1
parents:
diff changeset
205 {
Ritor1
parents:
diff changeset
206 DMUS_CLOCK_SYSTEM = 0,
Ritor1
parents:
diff changeset
207 DMUS_CLOCK_WAVE = 1
Ritor1
parents:
diff changeset
208 } DMUS_CLOCKTYPE;
Ritor1
parents:
diff changeset
209
Ritor1
parents:
diff changeset
210 #define DMUS_CLOCKF_GLOBAL 0x00000001
Ritor1
parents:
diff changeset
211
Ritor1
parents:
diff changeset
212 typedef struct _DMUS_CLOCKINFO7 *LPDMUS_CLOCKINFO7;
Ritor1
parents:
diff changeset
213 typedef struct _DMUS_CLOCKINFO7
Ritor1
parents:
diff changeset
214 {
Ritor1
parents:
diff changeset
215 DWORD dwSize;
Ritor1
parents:
diff changeset
216 DMUS_CLOCKTYPE ctType;
Ritor1
parents:
diff changeset
217 GUID guidClock; /* Identifies this time source */
Ritor1
parents:
diff changeset
218 WCHAR wszDescription[DMUS_MAX_DESCRIPTION];
Ritor1
parents:
diff changeset
219 } DMUS_CLOCKINFO7;
Ritor1
parents:
diff changeset
220
Ritor1
parents:
diff changeset
221 typedef struct _DMUS_CLOCKINFO8 *LPDMUS_CLOCKINFO8;
Ritor1
parents:
diff changeset
222 typedef struct _DMUS_CLOCKINFO8
Ritor1
parents:
diff changeset
223 {
Ritor1
parents:
diff changeset
224 DWORD dwSize;
Ritor1
parents:
diff changeset
225 DMUS_CLOCKTYPE ctType;
Ritor1
parents:
diff changeset
226 GUID guidClock; /* Identifies this time source */
Ritor1
parents:
diff changeset
227 WCHAR wszDescription[DMUS_MAX_DESCRIPTION];
Ritor1
parents:
diff changeset
228 DWORD dwFlags;
Ritor1
parents:
diff changeset
229 } DMUS_CLOCKINFO8;
Ritor1
parents:
diff changeset
230
Ritor1
parents:
diff changeset
231 typedef DMUS_CLOCKINFO8 DMUS_CLOCKINFO;
Ritor1
parents:
diff changeset
232 typedef DMUS_CLOCKINFO *LPDMUS_CLOCKINFO;
Ritor1
parents:
diff changeset
233
Ritor1
parents:
diff changeset
234 /* Default bus identifiers
Ritor1
parents:
diff changeset
235 *
Ritor1
parents:
diff changeset
236 * The first 17 are direct mappings to the destinations defined in both
Ritor1
parents:
diff changeset
237 * the MMA DLS Level 2 specification and the Microsoft Multi-Channel audio
Ritor1
parents:
diff changeset
238 * specification.
Ritor1
parents:
diff changeset
239 */
Ritor1
parents:
diff changeset
240 #define DSBUSID_FIRST_SPKR_LOC 0
Ritor1
parents:
diff changeset
241 #define DSBUSID_FRONT_LEFT 0
Ritor1
parents:
diff changeset
242 #define DSBUSID_LEFT 0 /* Front left is also just left */
Ritor1
parents:
diff changeset
243 #define DSBUSID_FRONT_RIGHT 1
Ritor1
parents:
diff changeset
244 #define DSBUSID_RIGHT 1 /* Ditto front right */
Ritor1
parents:
diff changeset
245 #define DSBUSID_FRONT_CENTER 2
Ritor1
parents:
diff changeset
246 #define DSBUSID_LOW_FREQUENCY 3
Ritor1
parents:
diff changeset
247 #define DSBUSID_BACK_LEFT 4
Ritor1
parents:
diff changeset
248 #define DSBUSID_BACK_RIGHT 5
Ritor1
parents:
diff changeset
249 #define DSBUSID_FRONT_LEFT_OF_CENTER 6
Ritor1
parents:
diff changeset
250 #define DSBUSID_FRONT_RIGHT_OF_CENTER 7
Ritor1
parents:
diff changeset
251 #define DSBUSID_BACK_CENTER 8
Ritor1
parents:
diff changeset
252 #define DSBUSID_SIDE_LEFT 9
Ritor1
parents:
diff changeset
253 #define DSBUSID_SIDE_RIGHT 10
Ritor1
parents:
diff changeset
254 #define DSBUSID_TOP_CENTER 11
Ritor1
parents:
diff changeset
255 #define DSBUSID_TOP_FRONT_LEFT 12
Ritor1
parents:
diff changeset
256 #define DSBUSID_TOP_FRONT_CENTER 13
Ritor1
parents:
diff changeset
257 #define DSBUSID_TOP_FRONT_RIGHT 14
Ritor1
parents:
diff changeset
258 #define DSBUSID_TOP_BACK_LEFT 15
Ritor1
parents:
diff changeset
259 #define DSBUSID_TOP_BACK_CENTER 16
Ritor1
parents:
diff changeset
260 #define DSBUSID_TOP_BACK_RIGHT 17
Ritor1
parents:
diff changeset
261 #define DSBUSID_LAST_SPKR_LOC 17
Ritor1
parents:
diff changeset
262
Ritor1
parents:
diff changeset
263 #define DSBUSID_IS_SPKR_LOC(id) ( ((id) >= DSBUSID_FIRST_SPKR_LOC) && ((id) <= DSBUSID_LAST_SPKR_LOC) )
Ritor1
parents:
diff changeset
264
Ritor1
parents:
diff changeset
265 /* These bus identifiers are for the standard DLS effect sends
Ritor1
parents:
diff changeset
266 */
Ritor1
parents:
diff changeset
267 #define DSBUSID_REVERB_SEND 64
Ritor1
parents:
diff changeset
268 #define DSBUSID_CHORUS_SEND 65
Ritor1
parents:
diff changeset
269
Ritor1
parents:
diff changeset
270 /* Dynamic bus identifiers start here. See the documentation for how
Ritor1
parents:
diff changeset
271 * synthesizers map the output of voices to static and dynamic
Ritor1
parents:
diff changeset
272 * bus identifiers.
Ritor1
parents:
diff changeset
273 */
Ritor1
parents:
diff changeset
274 #define DSBUSID_DYNAMIC_0 512
Ritor1
parents:
diff changeset
275
Ritor1
parents:
diff changeset
276 /* Null bus, used to identify busses that have no function mapping.
Ritor1
parents:
diff changeset
277 */
Ritor1
parents:
diff changeset
278 #define DSBUSID_NULL 0xFFFFFFFF
Ritor1
parents:
diff changeset
279
Ritor1
parents:
diff changeset
280 interface IDirectMusic;
Ritor1
parents:
diff changeset
281 interface IDirectMusic8;
Ritor1
parents:
diff changeset
282 interface IDirectMusicBuffer;
Ritor1
parents:
diff changeset
283 interface IDirectMusicPort;
Ritor1
parents:
diff changeset
284 interface IDirectMusicThru;
Ritor1
parents:
diff changeset
285 interface IReferenceClock;
Ritor1
parents:
diff changeset
286
Ritor1
parents:
diff changeset
287 #ifndef __cplusplus
Ritor1
parents:
diff changeset
288
Ritor1
parents:
diff changeset
289 typedef interface IDirectMusic IDirectMusic;
Ritor1
parents:
diff changeset
290 typedef interface IDirectMusic8 IDirectMusic8;
Ritor1
parents:
diff changeset
291 typedef interface IDirectMusicPort IDirectMusicPort;
Ritor1
parents:
diff changeset
292 typedef interface IDirectMusicBuffer IDirectMusicBuffer;
Ritor1
parents:
diff changeset
293 typedef interface IDirectMusicThru IDirectMusicThru;
Ritor1
parents:
diff changeset
294 typedef interface IReferenceClock IReferenceClock;
Ritor1
parents:
diff changeset
295
Ritor1
parents:
diff changeset
296 #endif /* C++ */
Ritor1
parents:
diff changeset
297
Ritor1
parents:
diff changeset
298 typedef IDirectMusic *LPDIRECTMUSIC;
Ritor1
parents:
diff changeset
299 typedef IDirectMusic8 *LPDIRECTMUSIC8;
Ritor1
parents:
diff changeset
300 typedef IDirectMusicPort *LPDIRECTMUSICPORT;
Ritor1
parents:
diff changeset
301 typedef IDirectMusicBuffer *LPDIRECTMUSICBUFFER;
Ritor1
parents:
diff changeset
302
Ritor1
parents:
diff changeset
303 #undef INTERFACE
Ritor1
parents:
diff changeset
304 #define INTERFACE IDirectMusic
Ritor1
parents:
diff changeset
305 DECLARE_INTERFACE_(IDirectMusic, IUnknown)
Ritor1
parents:
diff changeset
306 {
Ritor1
parents:
diff changeset
307 /* IUnknown */
Ritor1
parents:
diff changeset
308 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
309 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
310 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
311
Ritor1
parents:
diff changeset
312 /* IDirectMusic */
Ritor1
parents:
diff changeset
313 STDMETHOD(EnumPort) (THIS_ DWORD dwIndex,
Ritor1
parents:
diff changeset
314 LPDMUS_PORTCAPS pPortCaps) PURE;
Ritor1
parents:
diff changeset
315 STDMETHOD(CreateMusicBuffer) (THIS_ LPDMUS_BUFFERDESC pBufferDesc,
Ritor1
parents:
diff changeset
316 LPDIRECTMUSICBUFFER *ppBuffer,
Ritor1
parents:
diff changeset
317 LPUNKNOWN pUnkOuter) PURE;
Ritor1
parents:
diff changeset
318 STDMETHOD(CreatePort) (THIS_ REFCLSID rclsidPort,
Ritor1
parents:
diff changeset
319 LPDMUS_PORTPARAMS pPortParams,
Ritor1
parents:
diff changeset
320 LPDIRECTMUSICPORT *ppPort,
Ritor1
parents:
diff changeset
321 LPUNKNOWN pUnkOuter) PURE;
Ritor1
parents:
diff changeset
322 STDMETHOD(EnumMasterClock) (THIS_ DWORD dwIndex,
Ritor1
parents:
diff changeset
323 LPDMUS_CLOCKINFO lpClockInfo) PURE;
Ritor1
parents:
diff changeset
324 STDMETHOD(GetMasterClock) (THIS_ LPGUID pguidClock,
Ritor1
parents:
diff changeset
325 IReferenceClock **ppReferenceClock) PURE;
Ritor1
parents:
diff changeset
326 STDMETHOD(SetMasterClock) (THIS_ REFGUID rguidClock) PURE;
Ritor1
parents:
diff changeset
327 STDMETHOD(Activate) (THIS_ BOOL fEnable) PURE;
Ritor1
parents:
diff changeset
328 STDMETHOD(GetDefaultPort) (THIS_ LPGUID pguidPort) PURE;
Ritor1
parents:
diff changeset
329 STDMETHOD(SetDirectSound) (THIS_ LPDIRECTSOUND pDirectSound,
Ritor1
parents:
diff changeset
330 HWND hWnd) PURE;
Ritor1
parents:
diff changeset
331 };
Ritor1
parents:
diff changeset
332
Ritor1
parents:
diff changeset
333 #undef INTERFACE
Ritor1
parents:
diff changeset
334 #define INTERFACE IDirectMusic8
Ritor1
parents:
diff changeset
335 DECLARE_INTERFACE_(IDirectMusic8, IDirectMusic)
Ritor1
parents:
diff changeset
336 {
Ritor1
parents:
diff changeset
337 /* IUnknown */
Ritor1
parents:
diff changeset
338 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
339 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
340 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
341
Ritor1
parents:
diff changeset
342 /* IDirectMusic */
Ritor1
parents:
diff changeset
343 STDMETHOD(EnumPort) (THIS_ DWORD dwIndex,
Ritor1
parents:
diff changeset
344 LPDMUS_PORTCAPS pPortCaps) PURE;
Ritor1
parents:
diff changeset
345 STDMETHOD(CreateMusicBuffer) (THIS_ LPDMUS_BUFFERDESC pBufferDesc,
Ritor1
parents:
diff changeset
346 LPDIRECTMUSICBUFFER *ppBuffer,
Ritor1
parents:
diff changeset
347 LPUNKNOWN pUnkOuter) PURE;
Ritor1
parents:
diff changeset
348 STDMETHOD(CreatePort) (THIS_ REFCLSID rclsidPort,
Ritor1
parents:
diff changeset
349 LPDMUS_PORTPARAMS pPortParams,
Ritor1
parents:
diff changeset
350 LPDIRECTMUSICPORT *ppPort,
Ritor1
parents:
diff changeset
351 LPUNKNOWN pUnkOuter) PURE;
Ritor1
parents:
diff changeset
352 STDMETHOD(EnumMasterClock) (THIS_ DWORD dwIndex,
Ritor1
parents:
diff changeset
353 LPDMUS_CLOCKINFO lpClockInfo) PURE;
Ritor1
parents:
diff changeset
354 STDMETHOD(GetMasterClock) (THIS_ LPGUID pguidClock,
Ritor1
parents:
diff changeset
355 IReferenceClock **ppReferenceClock) PURE;
Ritor1
parents:
diff changeset
356 STDMETHOD(SetMasterClock) (THIS_ REFGUID rguidClock) PURE;
Ritor1
parents:
diff changeset
357 STDMETHOD(Activate) (THIS_ BOOL fEnable) PURE;
Ritor1
parents:
diff changeset
358 STDMETHOD(GetDefaultPort) (THIS_ LPGUID pguidPort) PURE;
Ritor1
parents:
diff changeset
359 STDMETHOD(SetDirectSound) (THIS_ LPDIRECTSOUND pDirectSound,
Ritor1
parents:
diff changeset
360 HWND hWnd) PURE;
Ritor1
parents:
diff changeset
361 /* IDirectMusic8 */
Ritor1
parents:
diff changeset
362 STDMETHOD(SetExternalMasterClock)
Ritor1
parents:
diff changeset
363 (THIS_ IReferenceClock *pClock) PURE;
Ritor1
parents:
diff changeset
364 };
Ritor1
parents:
diff changeset
365
Ritor1
parents:
diff changeset
366 #undef INTERFACE
Ritor1
parents:
diff changeset
367 #define INTERFACE IDirectMusicBuffer
Ritor1
parents:
diff changeset
368 DECLARE_INTERFACE_(IDirectMusicBuffer, IUnknown)
Ritor1
parents:
diff changeset
369 {
Ritor1
parents:
diff changeset
370 /* IUnknown */
Ritor1
parents:
diff changeset
371 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
372 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
373 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
374
Ritor1
parents:
diff changeset
375 /* IDirectMusicBuffer */
Ritor1
parents:
diff changeset
376 STDMETHOD(Flush) (THIS) PURE;
Ritor1
parents:
diff changeset
377 STDMETHOD(TotalTime) (THIS_ LPREFERENCE_TIME prtTime) PURE;
Ritor1
parents:
diff changeset
378
Ritor1
parents:
diff changeset
379 STDMETHOD(PackStructured) (THIS_ REFERENCE_TIME rt,
Ritor1
parents:
diff changeset
380 DWORD dwChannelGroup,
Ritor1
parents:
diff changeset
381 DWORD dwChannelMessage) PURE;
Ritor1
parents:
diff changeset
382
Ritor1
parents:
diff changeset
383 STDMETHOD(PackUnstructured) (THIS_ REFERENCE_TIME rt,
Ritor1
parents:
diff changeset
384 DWORD dwChannelGroup,
Ritor1
parents:
diff changeset
385 DWORD cb,
Ritor1
parents:
diff changeset
386 LPBYTE lpb) PURE;
Ritor1
parents:
diff changeset
387
Ritor1
parents:
diff changeset
388 STDMETHOD(ResetReadPtr) (THIS) PURE;
Ritor1
parents:
diff changeset
389 STDMETHOD(GetNextEvent) (THIS_ LPREFERENCE_TIME prt,
Ritor1
parents:
diff changeset
390 LPDWORD pdwChannelGroup,
Ritor1
parents:
diff changeset
391 LPDWORD pdwLength,
Ritor1
parents:
diff changeset
392 LPBYTE *ppData) PURE;
Ritor1
parents:
diff changeset
393
Ritor1
parents:
diff changeset
394 STDMETHOD(GetRawBufferPtr) (THIS_ LPBYTE *ppData) PURE;
Ritor1
parents:
diff changeset
395 STDMETHOD(GetStartTime) (THIS_ LPREFERENCE_TIME prt) PURE;
Ritor1
parents:
diff changeset
396 STDMETHOD(GetUsedBytes) (THIS_ LPDWORD pcb) PURE;
Ritor1
parents:
diff changeset
397 STDMETHOD(GetMaxBytes) (THIS_ LPDWORD pcb) PURE;
Ritor1
parents:
diff changeset
398 STDMETHOD(GetBufferFormat) (THIS_ LPGUID pGuidFormat) PURE;
Ritor1
parents:
diff changeset
399
Ritor1
parents:
diff changeset
400 STDMETHOD(SetStartTime) (THIS_ REFERENCE_TIME rt) PURE;
Ritor1
parents:
diff changeset
401 STDMETHOD(SetUsedBytes) (THIS_ DWORD cb) PURE;
Ritor1
parents:
diff changeset
402 };
Ritor1
parents:
diff changeset
403
Ritor1
parents:
diff changeset
404 typedef IDirectMusicBuffer IDirectMusicBuffer8;
Ritor1
parents:
diff changeset
405 typedef IDirectMusicBuffer8 *LPDIRECTMUSICBUFFER8;
Ritor1
parents:
diff changeset
406
Ritor1
parents:
diff changeset
407 #undef INTERFACE
Ritor1
parents:
diff changeset
408 #define INTERFACE IDirectMusicInstrument
Ritor1
parents:
diff changeset
409 DECLARE_INTERFACE_(IDirectMusicInstrument, IUnknown)
Ritor1
parents:
diff changeset
410 {
Ritor1
parents:
diff changeset
411 /* IUnknown */
Ritor1
parents:
diff changeset
412 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
413 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
414 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
415
Ritor1
parents:
diff changeset
416 /* IDirectMusicInstrument */
Ritor1
parents:
diff changeset
417 STDMETHOD(GetPatch) (THIS_ DWORD* pdwPatch) PURE;
Ritor1
parents:
diff changeset
418 STDMETHOD(SetPatch) (THIS_ DWORD dwPatch) PURE;
Ritor1
parents:
diff changeset
419 };
Ritor1
parents:
diff changeset
420
Ritor1
parents:
diff changeset
421 typedef IDirectMusicInstrument IDirectMusicInstrument8;
Ritor1
parents:
diff changeset
422 typedef IDirectMusicInstrument8 *LPDIRECTMUSICINSTRUMENT8;
Ritor1
parents:
diff changeset
423
Ritor1
parents:
diff changeset
424 #undef INTERFACE
Ritor1
parents:
diff changeset
425 #define INTERFACE IDirectMusicDownloadedInstrument
Ritor1
parents:
diff changeset
426 DECLARE_INTERFACE_(IDirectMusicDownloadedInstrument, IUnknown)
Ritor1
parents:
diff changeset
427 {
Ritor1
parents:
diff changeset
428 /* IUnknown */
Ritor1
parents:
diff changeset
429 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
430 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
431 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
432
Ritor1
parents:
diff changeset
433 /* IDirectMusicDownloadedInstrument */
Ritor1
parents:
diff changeset
434 /* None at this time */
Ritor1
parents:
diff changeset
435 };
Ritor1
parents:
diff changeset
436
Ritor1
parents:
diff changeset
437 typedef IDirectMusicDownloadedInstrument IDirectMusicDownloadedInstrument8;
Ritor1
parents:
diff changeset
438 typedef IDirectMusicDownloadedInstrument8 *LPDIRECTMUSICDOWNLOADEDINSTRUMENT8;
Ritor1
parents:
diff changeset
439
Ritor1
parents:
diff changeset
440 #undef INTERFACE
Ritor1
parents:
diff changeset
441 #define INTERFACE IDirectMusicCollection
Ritor1
parents:
diff changeset
442 DECLARE_INTERFACE_(IDirectMusicCollection, IUnknown)
Ritor1
parents:
diff changeset
443 {
Ritor1
parents:
diff changeset
444 /* IUnknown */
Ritor1
parents:
diff changeset
445 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
446 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
447 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
448
Ritor1
parents:
diff changeset
449 /* IDirectMusicCollection */
Ritor1
parents:
diff changeset
450 STDMETHOD(GetInstrument) (THIS_ DWORD dwPatch,
Ritor1
parents:
diff changeset
451 IDirectMusicInstrument** ppInstrument) PURE;
Ritor1
parents:
diff changeset
452 STDMETHOD(EnumInstrument) (THIS_ DWORD dwIndex,
Ritor1
parents:
diff changeset
453 DWORD* pdwPatch,
Ritor1
parents:
diff changeset
454 LPWSTR pwszName,
Ritor1
parents:
diff changeset
455 DWORD dwNameLen) PURE;
Ritor1
parents:
diff changeset
456 };
Ritor1
parents:
diff changeset
457
Ritor1
parents:
diff changeset
458 typedef IDirectMusicCollection IDirectMusicCollection8;
Ritor1
parents:
diff changeset
459 typedef IDirectMusicCollection8 *LPDIRECTMUSICCOLLECTION8;
Ritor1
parents:
diff changeset
460
Ritor1
parents:
diff changeset
461 #undef INTERFACE
Ritor1
parents:
diff changeset
462 #define INTERFACE IDirectMusicDownload
Ritor1
parents:
diff changeset
463 DECLARE_INTERFACE_(IDirectMusicDownload , IUnknown)
Ritor1
parents:
diff changeset
464 {
Ritor1
parents:
diff changeset
465 /* IUnknown */
Ritor1
parents:
diff changeset
466 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
467 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
468 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
469
Ritor1
parents:
diff changeset
470 /* IDirectMusicDownload */
Ritor1
parents:
diff changeset
471 STDMETHOD(GetBuffer) (THIS_ void** ppvBuffer,
Ritor1
parents:
diff changeset
472 DWORD* pdwSize) PURE;
Ritor1
parents:
diff changeset
473 };
Ritor1
parents:
diff changeset
474
Ritor1
parents:
diff changeset
475 typedef IDirectMusicDownload IDirectMusicDownload8;
Ritor1
parents:
diff changeset
476 typedef IDirectMusicDownload8 *LPDIRECTMUSICDOWNLOAD8;
Ritor1
parents:
diff changeset
477
Ritor1
parents:
diff changeset
478 #undef INTERFACE
Ritor1
parents:
diff changeset
479 #define INTERFACE IDirectMusicPortDownload
Ritor1
parents:
diff changeset
480 DECLARE_INTERFACE_(IDirectMusicPortDownload, IUnknown)
Ritor1
parents:
diff changeset
481 {
Ritor1
parents:
diff changeset
482 /* IUnknown */
Ritor1
parents:
diff changeset
483 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
484 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
485 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
486
Ritor1
parents:
diff changeset
487 /* IDirectMusicPortDownload */
Ritor1
parents:
diff changeset
488 STDMETHOD(GetBuffer) (THIS_ DWORD dwDLId,
Ritor1
parents:
diff changeset
489 IDirectMusicDownload** ppIDMDownload) PURE;
Ritor1
parents:
diff changeset
490 STDMETHOD(AllocateBuffer) (THIS_ DWORD dwSize,
Ritor1
parents:
diff changeset
491 IDirectMusicDownload** ppIDMDownload) PURE;
Ritor1
parents:
diff changeset
492 STDMETHOD(GetDLId) (THIS_ DWORD* pdwStartDLId,
Ritor1
parents:
diff changeset
493 DWORD dwCount) PURE;
Ritor1
parents:
diff changeset
494 STDMETHOD(GetAppend) (THIS_ DWORD* pdwAppend) PURE;
Ritor1
parents:
diff changeset
495 STDMETHOD(Download) (THIS_ IDirectMusicDownload* pIDMDownload) PURE;
Ritor1
parents:
diff changeset
496 STDMETHOD(Unload) (THIS_ IDirectMusicDownload* pIDMDownload) PURE;
Ritor1
parents:
diff changeset
497 };
Ritor1
parents:
diff changeset
498
Ritor1
parents:
diff changeset
499 typedef IDirectMusicPortDownload IDirectMusicPortDownload8;
Ritor1
parents:
diff changeset
500 typedef IDirectMusicPortDownload8 *LPDIRECTMUSICPORTDOWNLOAD8;
Ritor1
parents:
diff changeset
501
Ritor1
parents:
diff changeset
502 /* Standard values for voice priorities. Numerically higher priorities are higher in priority.
Ritor1
parents:
diff changeset
503 * These priorities are used to set the voice priority for all voices on a channel. They are
Ritor1
parents:
diff changeset
504 * used in the dwPriority parameter of IDirectMusicPort::GetPriority and returned in the
Ritor1
parents:
diff changeset
505 * lpwPriority parameter of pdwPriority.
Ritor1
parents:
diff changeset
506 *
Ritor1
parents:
diff changeset
507 * These priorities are shared with DirectSound.
Ritor1
parents:
diff changeset
508 */
Ritor1
parents:
diff changeset
509
Ritor1
parents:
diff changeset
510 #ifndef _DIRECTAUDIO_PRIORITIES_DEFINED_
Ritor1
parents:
diff changeset
511 #define _DIRECTAUDIO_PRIORITIES_DEFINED_
Ritor1
parents:
diff changeset
512
Ritor1
parents:
diff changeset
513 #define DAUD_CRITICAL_VOICE_PRIORITY (0xF0000000)
Ritor1
parents:
diff changeset
514 #define DAUD_HIGH_VOICE_PRIORITY (0xC0000000)
Ritor1
parents:
diff changeset
515 #define DAUD_STANDARD_VOICE_PRIORITY (0x80000000)
Ritor1
parents:
diff changeset
516 #define DAUD_LOW_VOICE_PRIORITY (0x40000000)
Ritor1
parents:
diff changeset
517 #define DAUD_PERSIST_VOICE_PRIORITY (0x10000000)
Ritor1
parents:
diff changeset
518
Ritor1
parents:
diff changeset
519 /* These are the default priorities assigned if not overridden. By default priorities are
Ritor1
parents:
diff changeset
520 * equal across channel groups (e.g. channel 5 on channel group 1 has the same priority as
Ritor1
parents:
diff changeset
521 * channel 5 on channel group 2).
Ritor1
parents:
diff changeset
522 *
Ritor1
parents:
diff changeset
523 * In accordance with DLS level 1, channel 10 has the highest priority, followed by 1 through 16
Ritor1
parents:
diff changeset
524 * except for 10.
Ritor1
parents:
diff changeset
525 */
Ritor1
parents:
diff changeset
526 #define DAUD_CHAN1_VOICE_PRIORITY_OFFSET (0x0000000E)
Ritor1
parents:
diff changeset
527 #define DAUD_CHAN2_VOICE_PRIORITY_OFFSET (0x0000000D)
Ritor1
parents:
diff changeset
528 #define DAUD_CHAN3_VOICE_PRIORITY_OFFSET (0x0000000C)
Ritor1
parents:
diff changeset
529 #define DAUD_CHAN4_VOICE_PRIORITY_OFFSET (0x0000000B)
Ritor1
parents:
diff changeset
530 #define DAUD_CHAN5_VOICE_PRIORITY_OFFSET (0x0000000A)
Ritor1
parents:
diff changeset
531 #define DAUD_CHAN6_VOICE_PRIORITY_OFFSET (0x00000009)
Ritor1
parents:
diff changeset
532 #define DAUD_CHAN7_VOICE_PRIORITY_OFFSET (0x00000008)
Ritor1
parents:
diff changeset
533 #define DAUD_CHAN8_VOICE_PRIORITY_OFFSET (0x00000007)
Ritor1
parents:
diff changeset
534 #define DAUD_CHAN9_VOICE_PRIORITY_OFFSET (0x00000006)
Ritor1
parents:
diff changeset
535 #define DAUD_CHAN10_VOICE_PRIORITY_OFFSET (0x0000000F)
Ritor1
parents:
diff changeset
536 #define DAUD_CHAN11_VOICE_PRIORITY_OFFSET (0x00000005)
Ritor1
parents:
diff changeset
537 #define DAUD_CHAN12_VOICE_PRIORITY_OFFSET (0x00000004)
Ritor1
parents:
diff changeset
538 #define DAUD_CHAN13_VOICE_PRIORITY_OFFSET (0x00000003)
Ritor1
parents:
diff changeset
539 #define DAUD_CHAN14_VOICE_PRIORITY_OFFSET (0x00000002)
Ritor1
parents:
diff changeset
540 #define DAUD_CHAN15_VOICE_PRIORITY_OFFSET (0x00000001)
Ritor1
parents:
diff changeset
541 #define DAUD_CHAN16_VOICE_PRIORITY_OFFSET (0x00000000)
Ritor1
parents:
diff changeset
542
Ritor1
parents:
diff changeset
543
Ritor1
parents:
diff changeset
544 #define DAUD_CHAN1_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN1_VOICE_PRIORITY_OFFSET)
Ritor1
parents:
diff changeset
545 #define DAUD_CHAN2_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN2_VOICE_PRIORITY_OFFSET)
Ritor1
parents:
diff changeset
546 #define DAUD_CHAN3_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN3_VOICE_PRIORITY_OFFSET)
Ritor1
parents:
diff changeset
547 #define DAUD_CHAN4_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN4_VOICE_PRIORITY_OFFSET)
Ritor1
parents:
diff changeset
548 #define DAUD_CHAN5_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN5_VOICE_PRIORITY_OFFSET)
Ritor1
parents:
diff changeset
549 #define DAUD_CHAN6_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN6_VOICE_PRIORITY_OFFSET)
Ritor1
parents:
diff changeset
550 #define DAUD_CHAN7_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN7_VOICE_PRIORITY_OFFSET)
Ritor1
parents:
diff changeset
551 #define DAUD_CHAN8_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN8_VOICE_PRIORITY_OFFSET)
Ritor1
parents:
diff changeset
552 #define DAUD_CHAN9_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN9_VOICE_PRIORITY_OFFSET)
Ritor1
parents:
diff changeset
553 #define DAUD_CHAN10_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN10_VOICE_PRIORITY_OFFSET)
Ritor1
parents:
diff changeset
554 #define DAUD_CHAN11_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN11_VOICE_PRIORITY_OFFSET)
Ritor1
parents:
diff changeset
555 #define DAUD_CHAN12_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN12_VOICE_PRIORITY_OFFSET)
Ritor1
parents:
diff changeset
556 #define DAUD_CHAN13_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN13_VOICE_PRIORITY_OFFSET)
Ritor1
parents:
diff changeset
557 #define DAUD_CHAN14_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN14_VOICE_PRIORITY_OFFSET)
Ritor1
parents:
diff changeset
558 #define DAUD_CHAN15_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN15_VOICE_PRIORITY_OFFSET)
Ritor1
parents:
diff changeset
559 #define DAUD_CHAN16_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN16_VOICE_PRIORITY_OFFSET)
Ritor1
parents:
diff changeset
560
Ritor1
parents:
diff changeset
561 #endif /* _DIRECTAUDIO_PRIORITIES_DEFINED_ */
Ritor1
parents:
diff changeset
562
Ritor1
parents:
diff changeset
563
Ritor1
parents:
diff changeset
564 #undef INTERFACE
Ritor1
parents:
diff changeset
565 #define INTERFACE IDirectMusicPort
Ritor1
parents:
diff changeset
566 DECLARE_INTERFACE_(IDirectMusicPort, IUnknown)
Ritor1
parents:
diff changeset
567 {
Ritor1
parents:
diff changeset
568 /* IUnknown */
Ritor1
parents:
diff changeset
569 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
570 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
571 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
572
Ritor1
parents:
diff changeset
573 /* IDirectMusicPort */
Ritor1
parents:
diff changeset
574 /* */
Ritor1
parents:
diff changeset
575 STDMETHOD(PlayBuffer) (THIS_ LPDIRECTMUSICBUFFER pBuffer) PURE;
Ritor1
parents:
diff changeset
576 STDMETHOD(SetReadNotificationHandle) (THIS_ HANDLE hEvent) PURE;
Ritor1
parents:
diff changeset
577 STDMETHOD(Read) (THIS_ LPDIRECTMUSICBUFFER pBuffer) PURE;
Ritor1
parents:
diff changeset
578 STDMETHOD(DownloadInstrument) (THIS_ IDirectMusicInstrument *pInstrument,
Ritor1
parents:
diff changeset
579 IDirectMusicDownloadedInstrument **ppDownloadedInstrument,
Ritor1
parents:
diff changeset
580 DMUS_NOTERANGE *pNoteRanges,
Ritor1
parents:
diff changeset
581 DWORD dwNumNoteRanges) PURE;
Ritor1
parents:
diff changeset
582 STDMETHOD(UnloadInstrument) (THIS_ IDirectMusicDownloadedInstrument *pDownloadedInstrument) PURE;
Ritor1
parents:
diff changeset
583 STDMETHOD(GetLatencyClock) (THIS_ IReferenceClock **ppClock) PURE;
Ritor1
parents:
diff changeset
584 STDMETHOD(GetRunningStats) (THIS_ LPDMUS_SYNTHSTATS pStats) PURE;
Ritor1
parents:
diff changeset
585 STDMETHOD(Compact) (THIS) PURE;
Ritor1
parents:
diff changeset
586 STDMETHOD(GetCaps) (THIS_ LPDMUS_PORTCAPS pPortCaps) PURE;
Ritor1
parents:
diff changeset
587 STDMETHOD(DeviceIoControl) (THIS_ DWORD dwIoControlCode,
Ritor1
parents:
diff changeset
588 LPVOID lpInBuffer,
Ritor1
parents:
diff changeset
589 DWORD nInBufferSize,
Ritor1
parents:
diff changeset
590 LPVOID lpOutBuffer,
Ritor1
parents:
diff changeset
591 DWORD nOutBufferSize,
Ritor1
parents:
diff changeset
592 LPDWORD lpBytesReturned,
Ritor1
parents:
diff changeset
593 LPOVERLAPPED lpOverlapped) PURE;
Ritor1
parents:
diff changeset
594 STDMETHOD(SetNumChannelGroups) (THIS_ DWORD dwChannelGroups) PURE;
Ritor1
parents:
diff changeset
595 STDMETHOD(GetNumChannelGroups) (THIS_ LPDWORD pdwChannelGroups) PURE;
Ritor1
parents:
diff changeset
596 STDMETHOD(Activate) (THIS_ BOOL fActive) PURE;
Ritor1
parents:
diff changeset
597 STDMETHOD(SetChannelPriority) (THIS_ DWORD dwChannelGroup, DWORD dwChannel, DWORD dwPriority) PURE;
Ritor1
parents:
diff changeset
598 STDMETHOD(GetChannelPriority) (THIS_ DWORD dwChannelGroup, DWORD dwChannel, LPDWORD pdwPriority) PURE;
Ritor1
parents:
diff changeset
599 STDMETHOD(SetDirectSound) (THIS_ LPDIRECTSOUND pDirectSound, LPDIRECTSOUNDBUFFER pDirectSoundBuffer) PURE;
Ritor1
parents:
diff changeset
600 STDMETHOD(GetFormat) (THIS_ LPWAVEFORMATEX pWaveFormatEx, LPDWORD pdwWaveFormatExSize, LPDWORD pdwBufferSize) PURE;
Ritor1
parents:
diff changeset
601 };
Ritor1
parents:
diff changeset
602
Ritor1
parents:
diff changeset
603 typedef IDirectMusicPort IDirectMusicPort8;
Ritor1
parents:
diff changeset
604 typedef IDirectMusicPort8 *LPDIRECTMUSICPORT8;
Ritor1
parents:
diff changeset
605
Ritor1
parents:
diff changeset
606 #undef INTERFACE
Ritor1
parents:
diff changeset
607 #define INTERFACE IDirectMusicThru
Ritor1
parents:
diff changeset
608 DECLARE_INTERFACE_(IDirectMusicThru, IUnknown)
Ritor1
parents:
diff changeset
609 {
Ritor1
parents:
diff changeset
610 /* IUnknown */
Ritor1
parents:
diff changeset
611 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
612 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
613 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
614
Ritor1
parents:
diff changeset
615 /* IDirectMusicThru
Ritor1
parents:
diff changeset
616 */
Ritor1
parents:
diff changeset
617 STDMETHOD(ThruChannel) (THIS_ DWORD dwSourceChannelGroup,
Ritor1
parents:
diff changeset
618 DWORD dwSourceChannel,
Ritor1
parents:
diff changeset
619 DWORD dwDestinationChannelGroup,
Ritor1
parents:
diff changeset
620 DWORD dwDestinationChannel,
Ritor1
parents:
diff changeset
621 LPDIRECTMUSICPORT pDestinationPort) PURE;
Ritor1
parents:
diff changeset
622 };
Ritor1
parents:
diff changeset
623
Ritor1
parents:
diff changeset
624 typedef IDirectMusicThru IDirectMusicThru8;
Ritor1
parents:
diff changeset
625 typedef IDirectMusicThru8 *LPDIRECTMUSICTHRU8;
Ritor1
parents:
diff changeset
626
Ritor1
parents:
diff changeset
627 #ifndef __IReferenceClock_INTERFACE_DEFINED__
Ritor1
parents:
diff changeset
628 #define __IReferenceClock_INTERFACE_DEFINED__
Ritor1
parents:
diff changeset
629
Ritor1
parents:
diff changeset
630 DEFINE_GUID(IID_IReferenceClock,0x56a86897,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70);
Ritor1
parents:
diff changeset
631
Ritor1
parents:
diff changeset
632 #undef INTERFACE
Ritor1
parents:
diff changeset
633 #define INTERFACE IReferenceClock
Ritor1
parents:
diff changeset
634 DECLARE_INTERFACE_(IReferenceClock, IUnknown)
Ritor1
parents:
diff changeset
635 {
Ritor1
parents:
diff changeset
636 /* IUnknown */
Ritor1
parents:
diff changeset
637 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
638 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
639 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
640
Ritor1
parents:
diff changeset
641 /* IReferenceClock */
Ritor1
parents:
diff changeset
642 /* */
Ritor1
parents:
diff changeset
643
Ritor1
parents:
diff changeset
644 /* get the time now */
Ritor1
parents:
diff changeset
645 STDMETHOD(GetTime) (THIS_ REFERENCE_TIME *pTime) PURE;
Ritor1
parents:
diff changeset
646
Ritor1
parents:
diff changeset
647 /* ask for an async notification that a time has elapsed */
Ritor1
parents:
diff changeset
648 STDMETHOD(AdviseTime) (THIS_ REFERENCE_TIME baseTime, /* base time */
Ritor1
parents:
diff changeset
649 REFERENCE_TIME streamTime, /* stream offset time */
Ritor1
parents:
diff changeset
650 HANDLE hEvent, /* advise via this event */
Ritor1
parents:
diff changeset
651 DWORD * pdwAdviseCookie) PURE; /* where your cookie goes */
Ritor1
parents:
diff changeset
652
Ritor1
parents:
diff changeset
653 /* ask for an async periodic notification that a time has elapsed */
Ritor1
parents:
diff changeset
654 STDMETHOD(AdvisePeriodic) (THIS_ REFERENCE_TIME startTime, /* starting at this time */
Ritor1
parents:
diff changeset
655 REFERENCE_TIME periodTime, /* time between notifications */
Ritor1
parents:
diff changeset
656 HANDLE hSemaphore, /* advise via a semaphore */
Ritor1
parents:
diff changeset
657 DWORD * pdwAdviseCookie) PURE; /* where your cookie goes */
Ritor1
parents:
diff changeset
658
Ritor1
parents:
diff changeset
659 /* cancel a request for notification */
Ritor1
parents:
diff changeset
660 STDMETHOD(Unadvise) (THIS_ DWORD dwAdviseCookie) PURE;
Ritor1
parents:
diff changeset
661 };
Ritor1
parents:
diff changeset
662
Ritor1
parents:
diff changeset
663 #endif /* __IReferenceClock_INTERFACE_DEFINED__ */
Ritor1
parents:
diff changeset
664
Ritor1
parents:
diff changeset
665 DEFINE_GUID(CLSID_DirectMusic,0x636b9f10,0x0c7d,0x11d1,0x95,0xb2,0x00,0x20,0xaf,0xdc,0x74,0x21);
Ritor1
parents:
diff changeset
666 DEFINE_GUID(CLSID_DirectMusicCollection,0x480ff4b0, 0x28b2, 0x11d1, 0xbe, 0xf7, 0x0, 0xc0, 0x4f, 0xbf, 0x8f, 0xef);
Ritor1
parents:
diff changeset
667 DEFINE_GUID(CLSID_DirectMusicSynth,0x58C2B4D0,0x46E7,0x11D1,0x89,0xAC,0x00,0xA0,0xC9,0x05,0x41,0x29);
Ritor1
parents:
diff changeset
668
Ritor1
parents:
diff changeset
669 DEFINE_GUID(IID_IDirectMusic,0x6536115a,0x7b2d,0x11d2,0xba,0x18,0x00,0x00,0xf8,0x75,0xac,0x12);
Ritor1
parents:
diff changeset
670 DEFINE_GUID(IID_IDirectMusicBuffer,0xd2ac2878, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
671 DEFINE_GUID(IID_IDirectMusicPort, 0x08f2d8c9,0x37c2,0x11d2,0xb9,0xf9,0x00,0x00,0xf8,0x75,0xac,0x12);
Ritor1
parents:
diff changeset
672 DEFINE_GUID(IID_IDirectMusicThru, 0xced153e7, 0x3606, 0x11d2, 0xb9, 0xf9, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12);
Ritor1
parents:
diff changeset
673 DEFINE_GUID(IID_IDirectMusicPortDownload,0xd2ac287a, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
674 DEFINE_GUID(IID_IDirectMusicDownload,0xd2ac287b, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
675 DEFINE_GUID(IID_IDirectMusicCollection,0xd2ac287c, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
676 DEFINE_GUID(IID_IDirectMusicInstrument,0xd2ac287d, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
677 DEFINE_GUID(IID_IDirectMusicDownloadedInstrument,0xd2ac287e, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
678
Ritor1
parents:
diff changeset
679
Ritor1
parents:
diff changeset
680 /* Alternate interface ID for IID_IDirectMusic, available in DX7 release and after. */
Ritor1
parents:
diff changeset
681 DEFINE_GUID(IID_IDirectMusic2,0x6fc2cae1, 0xbc78, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6);
Ritor1
parents:
diff changeset
682
Ritor1
parents:
diff changeset
683 DEFINE_GUID(IID_IDirectMusic8,0x2d3629f7,0x813d,0x4939,0x85,0x08,0xf0,0x5c,0x6b,0x75,0xfd,0x97);
Ritor1
parents:
diff changeset
684
Ritor1
parents:
diff changeset
685 #define IID_IDirectMusicThru8 IID_IDirectMusicThru
Ritor1
parents:
diff changeset
686 #define IID_IDirectMusicPortDownload8 IID_IDirectMusicPortDownload
Ritor1
parents:
diff changeset
687 #define IID_IDirectMusicDownload8 IID_IDirectMusicDownload
Ritor1
parents:
diff changeset
688 #define IID_IDirectMusicCollection8 IID_IDirectMusicCollection
Ritor1
parents:
diff changeset
689 #define IID_IDirectMusicInstrument8 IID_IDirectMusicInstrument
Ritor1
parents:
diff changeset
690 #define IID_IDirectMusicDownloadedInstrument8 IID_IDirectMusicDownloadedInstrument
Ritor1
parents:
diff changeset
691 #define IID_IDirectMusicPort8 IID_IDirectMusicPort
Ritor1
parents:
diff changeset
692
Ritor1
parents:
diff changeset
693
Ritor1
parents:
diff changeset
694 /* Property Query GUID_DMUS_PROP_GM_Hardware - Local GM set, no need to download
Ritor1
parents:
diff changeset
695 * Property Query GUID_DMUS_PROP_GS_Hardware - Local GS set, no need to download
Ritor1
parents:
diff changeset
696 * Property Query GUID_DMUS_PROP_XG_Hardware - Local XG set, no need to download
Ritor1
parents:
diff changeset
697 * Property Query GUID_DMUS_PROP_DLS1 - Support DLS level 1
Ritor1
parents:
diff changeset
698 * Property Query GUID_DMUS_PROP_INSTRUMENT2 - Support new INSTRUMENT2 download format
Ritor1
parents:
diff changeset
699 * Property Query GUID_DMUS_PROP_XG_Capable - Support minimum requirements of XG
Ritor1
parents:
diff changeset
700 * Property Query GUID_DMUS_PROP_GS_Capable - Support minimum requirements of GS
Ritor1
parents:
diff changeset
701 * Property Query GUID_DMUS_PROP_SynthSink_DSOUND - Synthsink talks to DirectSound
Ritor1
parents:
diff changeset
702 * Property Query GUID_DMUS_PROP_SynthSink_WAVE - Synthsink talks to Wave device
Ritor1
parents:
diff changeset
703 *
Ritor1
parents:
diff changeset
704 * Item 0: Supported
Ritor1
parents:
diff changeset
705 * Returns a DWORD which is non-zero if the feature is supported
Ritor1
parents:
diff changeset
706 */
Ritor1
parents:
diff changeset
707 DEFINE_GUID(GUID_DMUS_PROP_GM_Hardware, 0x178f2f24, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12);
Ritor1
parents:
diff changeset
708 DEFINE_GUID(GUID_DMUS_PROP_GS_Hardware, 0x178f2f25, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12);
Ritor1
parents:
diff changeset
709 DEFINE_GUID(GUID_DMUS_PROP_XG_Hardware, 0x178f2f26, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12);
Ritor1
parents:
diff changeset
710 DEFINE_GUID(GUID_DMUS_PROP_XG_Capable, 0x6496aba1, 0x61b0, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6);
Ritor1
parents:
diff changeset
711 DEFINE_GUID(GUID_DMUS_PROP_GS_Capable, 0x6496aba2, 0x61b0, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6);
Ritor1
parents:
diff changeset
712 DEFINE_GUID(GUID_DMUS_PROP_DLS1, 0x178f2f27, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12);
Ritor1
parents:
diff changeset
713 DEFINE_GUID(GUID_DMUS_PROP_DLS2, 0xf14599e5, 0x4689, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6);
Ritor1
parents:
diff changeset
714 DEFINE_GUID(GUID_DMUS_PROP_INSTRUMENT2, 0x865fd372, 0x9f67, 0x11d2, 0x87, 0x2a, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
715 DEFINE_GUID(GUID_DMUS_PROP_SynthSink_DSOUND,0xaa97844, 0xc877, 0x11d1, 0x87, 0xc, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
716 DEFINE_GUID(GUID_DMUS_PROP_SynthSink_WAVE,0xaa97845, 0xc877, 0x11d1, 0x87, 0xc, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
717 DEFINE_GUID(GUID_DMUS_PROP_SampleMemorySize, 0x178f2f28, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12);
Ritor1
parents:
diff changeset
718 DEFINE_GUID(GUID_DMUS_PROP_SamplePlaybackRate, 0x2a91f713, 0xa4bf, 0x11d2, 0xbb, 0xdf, 0x0, 0x60, 0x8, 0x33, 0xdb, 0xd8);
Ritor1
parents:
diff changeset
719
Ritor1
parents:
diff changeset
720 /* Property Get/Set GUID_DMUS_PROP_WriteLatency
Ritor1
parents:
diff changeset
721 *
Ritor1
parents:
diff changeset
722 * Item 0: Synth buffer write latency, in milliseconds
Ritor1
parents:
diff changeset
723 * Get/Set SynthSink latency, the average time after the play head that the next buffer gets written.
Ritor1
parents:
diff changeset
724 */
Ritor1
parents:
diff changeset
725 DEFINE_GUID(GUID_DMUS_PROP_WriteLatency,0x268a0fa0, 0x60f2, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6);
Ritor1
parents:
diff changeset
726
Ritor1
parents:
diff changeset
727 /* Property Get/Set GUID_DMUS_PROP_WritePeriod
Ritor1
parents:
diff changeset
728 *
Ritor1
parents:
diff changeset
729 * Item 0: Synth buffer write period, in milliseconds
Ritor1
parents:
diff changeset
730 * Get/Set SynthSink buffer write period, time span between successive writes.
Ritor1
parents:
diff changeset
731 */
Ritor1
parents:
diff changeset
732 DEFINE_GUID(GUID_DMUS_PROP_WritePeriod,0x268a0fa1, 0x60f2, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6);
Ritor1
parents:
diff changeset
733
Ritor1
parents:
diff changeset
734 /* Property Get GUID_DMUS_PROP_MemorySize
Ritor1
parents:
diff changeset
735 *
Ritor1
parents:
diff changeset
736 * Item 0: Memory size
Ritor1
parents:
diff changeset
737 * Returns a DWORD containing the total number of bytes of sample RAM
Ritor1
parents:
diff changeset
738 */
Ritor1
parents:
diff changeset
739 DEFINE_GUID(GUID_DMUS_PROP_MemorySize, 0x178f2f28, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12);
Ritor1
parents:
diff changeset
740
Ritor1
parents:
diff changeset
741 /* Property Set GUID_DMUS_PROP_WavesReverb
Ritor1
parents:
diff changeset
742 *
Ritor1
parents:
diff changeset
743 * Item 0: DMUS_WAVES_REVERB structure
Ritor1
parents:
diff changeset
744 * Sets reverb parameters
Ritor1
parents:
diff changeset
745 */
Ritor1
parents:
diff changeset
746 DEFINE_GUID(GUID_DMUS_PROP_WavesReverb,0x4cb5622, 0x32e5, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6);
Ritor1
parents:
diff changeset
747
Ritor1
parents:
diff changeset
748 /* Property Set GUID_DMUS_PROP_Effects
Ritor1
parents:
diff changeset
749 *
Ritor1
parents:
diff changeset
750 * Item 0: DWORD with effects flags.
Ritor1
parents:
diff changeset
751 * Get/Set effects bits, same as dwEffectFlags in DMUS_PORTPARAMS and DMUS_PORTCAPS:
Ritor1
parents:
diff changeset
752 * DMUS_EFFECT_NONE
Ritor1
parents:
diff changeset
753 * DMUS_EFFECT_REVERB
Ritor1
parents:
diff changeset
754 * DMUS_EFFECT_CHORUS
Ritor1
parents:
diff changeset
755 */
Ritor1
parents:
diff changeset
756 DEFINE_GUID(GUID_DMUS_PROP_Effects, 0xcda8d611, 0x684a, 0x11d2, 0x87, 0x1e, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
757
Ritor1
parents:
diff changeset
758 /* Property Set GUID_DMUS_PROP_LegacyCaps
Ritor1
parents:
diff changeset
759 *
Ritor1
parents:
diff changeset
760 * Item 0: The MIDINCAPS or MIDIOUTCAPS which describes the port's underlying WinMM device. This property is only supported
Ritor1
parents:
diff changeset
761 * by ports which wrap WinMM devices.
Ritor1
parents:
diff changeset
762 */
Ritor1
parents:
diff changeset
763
Ritor1
parents:
diff changeset
764 DEFINE_GUID(GUID_DMUS_PROP_LegacyCaps,0xcfa7cdc2, 0x00a1, 0x11d2, 0xaa, 0xd5, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12);
Ritor1
parents:
diff changeset
765
Ritor1
parents:
diff changeset
766 /* Property Set GUID_DMUS_PROP_Volume
Ritor1
parents:
diff changeset
767 *
Ritor1
parents:
diff changeset
768 * Item 0: A long which contains an offset, in 1/100 dB, to be added to the final volume
Ritor1
parents:
diff changeset
769 *
Ritor1
parents:
diff changeset
770 */
Ritor1
parents:
diff changeset
771 DEFINE_GUID(GUID_DMUS_PROP_Volume, 0xfedfae25L, 0xe46e, 0x11d1, 0xaa, 0xce, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12);
Ritor1
parents:
diff changeset
772
Ritor1
parents:
diff changeset
773 /* Min and Max values for setting volume with GUID_DMUS_PROP_Volume */
Ritor1
parents:
diff changeset
774
Ritor1
parents:
diff changeset
775 #define DMUS_VOLUME_MAX 2000 /* +20 dB */
Ritor1
parents:
diff changeset
776 #define DMUS_VOLUME_MIN -20000 /* -200 dB */
Ritor1
parents:
diff changeset
777
Ritor1
parents:
diff changeset
778 #ifdef __cplusplus
Ritor1
parents:
diff changeset
779 }; /* extern "C" */
Ritor1
parents:
diff changeset
780 #endif
Ritor1
parents:
diff changeset
781
Ritor1
parents:
diff changeset
782 #include <poppack.h>
Ritor1
parents:
diff changeset
783
Ritor1
parents:
diff changeset
784 #endif /* #ifndef _DMUSICC_ */