annotate lib/legacy_dx/dmusicc.h @ 155:2cc68f234b29

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