annotate lib/legacy_dx/dmusici.h @ 1708:f8414042db1f

Moving NZIArray to a separate class, fixing a few inventory bugs
author Grumpy7
date Mon, 23 Sep 2013 07:07:06 +0200
parents 9c0607679772
children
rev   line source
0
Ritor1
parents:
diff changeset
1 /************************************************************************
Ritor1
parents:
diff changeset
2 * *
Ritor1
parents:
diff changeset
3 * dmusici.h -- This module contains the API for the *
Ritor1
parents:
diff changeset
4 * DirectMusic performance layer *
Ritor1
parents:
diff changeset
5 * *
Ritor1
parents:
diff changeset
6 * Copyright (c) Microsoft Corporation. All rights reserved. *
Ritor1
parents:
diff changeset
7 * *
Ritor1
parents:
diff changeset
8 ************************************************************************/
Ritor1
parents:
diff changeset
9
Ritor1
parents:
diff changeset
10 #ifndef _DMUSICI_
Ritor1
parents:
diff changeset
11 #define _DMUSICI_
Ritor1
parents:
diff changeset
12
Ritor1
parents:
diff changeset
13 #include <windows.h>
Ritor1
parents:
diff changeset
14
Ritor1
parents:
diff changeset
15 #define COM_NO_WINDOWS_H
Ritor1
parents:
diff changeset
16 #include <objbase.h>
Ritor1
parents:
diff changeset
17
Ritor1
parents:
diff changeset
18 #include <mmsystem.h>
Ritor1
parents:
diff changeset
19 #include <dmusicc.h>
Ritor1
parents:
diff changeset
20 /* plugin (track and tool) interfaces. This #include will eventually go away. */
Ritor1
parents:
diff changeset
21 #include <dmplugin.h>
Ritor1
parents:
diff changeset
22
Ritor1
parents:
diff changeset
23 #include <pshpack8.h>
Ritor1
parents:
diff changeset
24
Ritor1
parents:
diff changeset
25 #ifdef __cplusplus
Ritor1
parents:
diff changeset
26 extern "C" {
Ritor1
parents:
diff changeset
27 #endif
Ritor1
parents:
diff changeset
28
Ritor1
parents:
diff changeset
29 typedef WORD TRANSITION_TYPE;
Ritor1
parents:
diff changeset
30 typedef __int64 REFERENCE_TIME;
Ritor1
parents:
diff changeset
31 typedef long MUSIC_TIME;
Ritor1
parents:
diff changeset
32
Ritor1
parents:
diff changeset
33 #define MT_MIN 0x80000000 /* Minimum music time value. */
Ritor1
parents:
diff changeset
34 #define MT_MAX 0x7FFFFFFF /* Maximum music time value. */
Ritor1
parents:
diff changeset
35
Ritor1
parents:
diff changeset
36 #define DMUS_PPQ 768 /* parts per quarter note */
Ritor1
parents:
diff changeset
37
Ritor1
parents:
diff changeset
38 interface IDirectMusicTrack;
Ritor1
parents:
diff changeset
39 interface IDirectMusicPerformance;
Ritor1
parents:
diff changeset
40 interface IDirectMusicPerformance8;
Ritor1
parents:
diff changeset
41 interface IDirectMusicTool;
Ritor1
parents:
diff changeset
42 interface IDirectMusicSegment;
Ritor1
parents:
diff changeset
43 interface IDirectMusicSegment8;
Ritor1
parents:
diff changeset
44 interface IDirectMusicSegmentState;
Ritor1
parents:
diff changeset
45 interface IDirectMusicSegmentState8;
Ritor1
parents:
diff changeset
46 interface IDirectMusicGraph;
Ritor1
parents:
diff changeset
47 interface IDirectMusicBuffer;
Ritor1
parents:
diff changeset
48 interface IDirectMusicInstrument;
Ritor1
parents:
diff changeset
49 interface IDirectMusicDownloadedInstrument;
Ritor1
parents:
diff changeset
50 interface IDirectMusicBand;
Ritor1
parents:
diff changeset
51 interface IDirectMusicChordMap;
Ritor1
parents:
diff changeset
52 interface IDirectMusicLoader;
Ritor1
parents:
diff changeset
53 interface IDirectMusicLoader8;
Ritor1
parents:
diff changeset
54 interface IDirectMusicScript;
Ritor1
parents:
diff changeset
55 interface IDirectMusicObject;
Ritor1
parents:
diff changeset
56 interface IDirectMusicStyle8;
Ritor1
parents:
diff changeset
57 interface IDirectMusicPatternTrack;
Ritor1
parents:
diff changeset
58 interface IDirectMusicContainer;
Ritor1
parents:
diff changeset
59 interface IDirectMusicTool8;
Ritor1
parents:
diff changeset
60 interface IDirectMusicTrack8;
Ritor1
parents:
diff changeset
61 interface IDirectMusicAudioPath;
Ritor1
parents:
diff changeset
62 #ifndef __cplusplus
Ritor1
parents:
diff changeset
63 typedef interface IDirectMusicTrack IDirectMusicTrack;
Ritor1
parents:
diff changeset
64 typedef interface IDirectMusicPerformance IDirectMusicPerformance;
Ritor1
parents:
diff changeset
65 typedef interface IDirectMusicPerformance8 IDirectMusicPerformance8;
Ritor1
parents:
diff changeset
66 typedef interface IDirectMusicTool IDirectMusicTool;
Ritor1
parents:
diff changeset
67 typedef interface IDirectMusicSegment IDirectMusicSegment;
Ritor1
parents:
diff changeset
68 typedef interface IDirectMusicSegment8 IDirectMusicSegment8;
Ritor1
parents:
diff changeset
69 typedef interface IDirectMusicSegmentState IDirectMusicSegmentState;
Ritor1
parents:
diff changeset
70 typedef interface IDirectMusicSegmentState8 IDirectMusicSegmentState8;
Ritor1
parents:
diff changeset
71 typedef interface IDirectMusicGraph IDirectMusicGraph;
Ritor1
parents:
diff changeset
72 typedef interface IDirectMusicBuffer IDirectMusicBuffer;
Ritor1
parents:
diff changeset
73 typedef interface IDirectMusicInstrument IDirectMusicInstrument;
Ritor1
parents:
diff changeset
74 typedef interface IDirectMusicDownloadedInstrument IDirectMusicDownloadedInstrument;
Ritor1
parents:
diff changeset
75 typedef interface IDirectMusicBand IDirectMusicBand;
Ritor1
parents:
diff changeset
76 typedef interface IDirectMusicChordMap IDirectMusicChordMap;
Ritor1
parents:
diff changeset
77 typedef interface IDirectMusicObject IDirectMusicObject;
Ritor1
parents:
diff changeset
78 typedef interface IDirectMusicLoader IDirectMusicLoader;
Ritor1
parents:
diff changeset
79 typedef interface IDirectMusicLoader8 IDirectMusicLoader8;
Ritor1
parents:
diff changeset
80 typedef interface IDirectMusicScript IDirectMusicScript;
Ritor1
parents:
diff changeset
81 typedef interface IDirectMusicStyle8 IDirectMusicStyle8;
Ritor1
parents:
diff changeset
82 typedef interface IDirectMusicPatternTrack IDirectMusicPatternTrack;
Ritor1
parents:
diff changeset
83 typedef interface IDirectMusicContainer IDirectMusicContainer;
Ritor1
parents:
diff changeset
84 typedef interface IDirectMusicTool8 IDirectMusicTool8;
Ritor1
parents:
diff changeset
85 typedef interface IDirectMusicTrack8 IDirectMusicTrack8;
Ritor1
parents:
diff changeset
86 typedef interface IDirectMusicAudioPath IDirectMusicAudioPath;
Ritor1
parents:
diff changeset
87 #endif
Ritor1
parents:
diff changeset
88
Ritor1
parents:
diff changeset
89 typedef enum enumDMUS_STYLET_TYPES
Ritor1
parents:
diff changeset
90 {
Ritor1
parents:
diff changeset
91 DMUS_STYLET_PATTERN = 0,
Ritor1
parents:
diff changeset
92 DMUS_STYLET_MOTIF = 1,
Ritor1
parents:
diff changeset
93 } DMUS_STYLET_TYPES;
Ritor1
parents:
diff changeset
94
Ritor1
parents:
diff changeset
95
Ritor1
parents:
diff changeset
96 typedef enum enumDMUS_COMMANDT_TYPES
Ritor1
parents:
diff changeset
97 {
Ritor1
parents:
diff changeset
98 DMUS_COMMANDT_GROOVE = 0,
Ritor1
parents:
diff changeset
99 DMUS_COMMANDT_FILL = 1,
Ritor1
parents:
diff changeset
100 DMUS_COMMANDT_INTRO = 2,
Ritor1
parents:
diff changeset
101 DMUS_COMMANDT_BREAK = 3,
Ritor1
parents:
diff changeset
102 DMUS_COMMANDT_END = 4,
Ritor1
parents:
diff changeset
103 DMUS_COMMANDT_ENDANDINTRO = 5
Ritor1
parents:
diff changeset
104 } DMUS_COMMANDT_TYPES;
Ritor1
parents:
diff changeset
105
Ritor1
parents:
diff changeset
106 typedef enum enumDMUS_SHAPET_TYPES
Ritor1
parents:
diff changeset
107 {
Ritor1
parents:
diff changeset
108 DMUS_SHAPET_FALLING = 0,
Ritor1
parents:
diff changeset
109 DMUS_SHAPET_LEVEL = 1,
Ritor1
parents:
diff changeset
110 DMUS_SHAPET_LOOPABLE = 2,
Ritor1
parents:
diff changeset
111 DMUS_SHAPET_LOUD = 3,
Ritor1
parents:
diff changeset
112 DMUS_SHAPET_QUIET = 4,
Ritor1
parents:
diff changeset
113 DMUS_SHAPET_PEAKING = 5,
Ritor1
parents:
diff changeset
114 DMUS_SHAPET_RANDOM = 6,
Ritor1
parents:
diff changeset
115 DMUS_SHAPET_RISING = 7,
Ritor1
parents:
diff changeset
116 DMUS_SHAPET_SONG = 8
Ritor1
parents:
diff changeset
117 } DMUS_SHAPET_TYPES;
Ritor1
parents:
diff changeset
118
Ritor1
parents:
diff changeset
119 typedef enum enumDMUS_COMPOSEF_FLAGS
Ritor1
parents:
diff changeset
120 {
Ritor1
parents:
diff changeset
121 DMUS_COMPOSEF_NONE = 0,
Ritor1
parents:
diff changeset
122 DMUS_COMPOSEF_ALIGN = 0x1,
Ritor1
parents:
diff changeset
123 DMUS_COMPOSEF_OVERLAP = 0x2,
Ritor1
parents:
diff changeset
124 DMUS_COMPOSEF_IMMEDIATE = 0x4,
Ritor1
parents:
diff changeset
125 DMUS_COMPOSEF_GRID = 0x8,
Ritor1
parents:
diff changeset
126 DMUS_COMPOSEF_BEAT = 0x10,
Ritor1
parents:
diff changeset
127 DMUS_COMPOSEF_MEASURE = 0x20,
Ritor1
parents:
diff changeset
128 DMUS_COMPOSEF_AFTERPREPARETIME = 0x40,
Ritor1
parents:
diff changeset
129 DMUS_COMPOSEF_VALID_START_BEAT = 0x80, /* In conjunction with DMUS_COMPOSEF_ALIGN, allows the switch to occur on any beat. */
Ritor1
parents:
diff changeset
130 DMUS_COMPOSEF_VALID_START_GRID = 0x100, /* In conjunction with DMUS_COMPOSEF_ALIGN, allows the switch to occur on any grid. */
Ritor1
parents:
diff changeset
131 DMUS_COMPOSEF_VALID_START_TICK = 0x200, /* In conjunction with DMUS_COMPOSEF_ALIGN, allows the switch to occur any time. */
Ritor1
parents:
diff changeset
132 DMUS_COMPOSEF_SEGMENTEND = 0x400, /* Play the transition at the end of the current segment. */
Ritor1
parents:
diff changeset
133 DMUS_COMPOSEF_MARKER = 0x800, /* Play the transition at the next marker in the current segment. */
Ritor1
parents:
diff changeset
134 DMUS_COMPOSEF_MODULATE = 0x1000,
Ritor1
parents:
diff changeset
135 DMUS_COMPOSEF_LONG = 0x2000,
Ritor1
parents:
diff changeset
136 DMUS_COMPOSEF_ENTIRE_TRANSITION = 0x4000, /* play the entire transition pattern */
Ritor1
parents:
diff changeset
137 DMUS_COMPOSEF_1BAR_TRANSITION = 0x8000, /* play one bar of the transition pattern */
Ritor1
parents:
diff changeset
138 DMUS_COMPOSEF_ENTIRE_ADDITION = 0x10000, /* play the additional pattern in its entirety */
Ritor1
parents:
diff changeset
139 DMUS_COMPOSEF_1BAR_ADDITION = 0x20000, /* play one bar of the additional pattern */
Ritor1
parents:
diff changeset
140 DMUS_COMPOSEF_VALID_START_MEASURE = 0x40000, /* In conjunction with DMUS_COMPOSEF_ALIGN, allows the switch to occur on any bar. */
Ritor1
parents:
diff changeset
141 DMUS_COMPOSEF_DEFAULT = 0x80000, /* Use segment's default boundary */
Ritor1
parents:
diff changeset
142 DMUS_COMPOSEF_NOINVALIDATE = 0x100000, /* Play without invalidating the currently playing segment(s) */
Ritor1
parents:
diff changeset
143 DMUS_COMPOSEF_USE_AUDIOPATH = 0x200000, /* Uses the audio paths that are embedded in the segments */
Ritor1
parents:
diff changeset
144 DMUS_COMPOSEF_INVALIDATE_PRI = 0x400000 /* Invalidate only the current primary seg state */
Ritor1
parents:
diff changeset
145 } DMUS_COMPOSEF_FLAGS;
Ritor1
parents:
diff changeset
146
Ritor1
parents:
diff changeset
147 #define DMUS_PMSG_PART \
Ritor1
parents:
diff changeset
148 DWORD dwSize; \
Ritor1
parents:
diff changeset
149 REFERENCE_TIME rtTime; /* real time (in 100 nanosecond increments) */ \
Ritor1
parents:
diff changeset
150 MUSIC_TIME mtTime; /* music time */ \
Ritor1
parents:
diff changeset
151 DWORD dwFlags; /* various bits (see DMUS_PMSGF_FLAGS enumeration) */ \
Ritor1
parents:
diff changeset
152 DWORD dwPChannel; /* Performance Channel. The Performance can */ \
Ritor1
parents:
diff changeset
153 /* use this to determine the port/channel. */ \
Ritor1
parents:
diff changeset
154 DWORD dwVirtualTrackID; /* virtual track ID */ \
Ritor1
parents:
diff changeset
155 IDirectMusicTool* pTool; /* tool interface pointer */ \
Ritor1
parents:
diff changeset
156 IDirectMusicGraph* pGraph; /* tool graph interface pointer */ \
Ritor1
parents:
diff changeset
157 DWORD dwType; /* PMSG type (see DMUS_PMSGT_TYPES defines) */ \
Ritor1
parents:
diff changeset
158 DWORD dwVoiceID; /* unique voice id which allows synthesizers to */ \
Ritor1
parents:
diff changeset
159 /* identify a specific event. For DirectX 6.0, */ \
Ritor1
parents:
diff changeset
160 /* this field should always be 0. */ \
Ritor1
parents:
diff changeset
161 DWORD dwGroupID; /* Track group id */ \
Ritor1
parents:
diff changeset
162 IUnknown* punkUser; /* user com pointer, auto released upon PMSG free */
Ritor1
parents:
diff changeset
163
Ritor1
parents:
diff changeset
164 /* every DMUS_PMSG is based off of this structure. The Performance needs
Ritor1
parents:
diff changeset
165 to access these members consistently in every PMSG that goes through it. */
Ritor1
parents:
diff changeset
166 typedef struct _DMUS_PMSG
Ritor1
parents:
diff changeset
167 {
Ritor1
parents:
diff changeset
168 /* begin DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
169 DMUS_PMSG_PART
Ritor1
parents:
diff changeset
170 /* end DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
171
Ritor1
parents:
diff changeset
172 } DMUS_PMSG;
Ritor1
parents:
diff changeset
173
Ritor1
parents:
diff changeset
174 #define DMUS_PCHANNEL_BROADCAST_PERFORMANCE 0xFFFFFFFF /* PMsg is sent on all PChannels of the performance. */
Ritor1
parents:
diff changeset
175 #define DMUS_PCHANNEL_BROADCAST_AUDIOPATH 0xFFFFFFFE /* PMsg is sent on all PChannels of the audio path. */
Ritor1
parents:
diff changeset
176 #define DMUS_PCHANNEL_BROADCAST_SEGMENT 0xFFFFFFFD /* PMsg is sent on all PChannels of the segment. */
Ritor1
parents:
diff changeset
177 #define DMUS_PCHANNEL_BROADCAST_GROUPS 0xFFFFFFFC /* A duplicate PMsg is for each Channels Groups in the performance. */
Ritor1
parents:
diff changeset
178
Ritor1
parents:
diff changeset
179 /* The DMUS_PATH constants are used in conjunction with GetObjectInPath to find a requested
Ritor1
parents:
diff changeset
180 interface at a particular stage in the audio path.
Ritor1
parents:
diff changeset
181 */
Ritor1
parents:
diff changeset
182 #define DMUS_PATH_SEGMENT 0x1000 /* Get the segment itself (from a segment state.) */
Ritor1
parents:
diff changeset
183 #define DMUS_PATH_SEGMENT_TRACK 0x1100 /* Look in Track List of Segment. */
Ritor1
parents:
diff changeset
184 #define DMUS_PATH_SEGMENT_GRAPH 0x1200 /* Get the segment's tool graph. */
Ritor1
parents:
diff changeset
185 #define DMUS_PATH_SEGMENT_TOOL 0x1300 /* Look in Tool Graph of Segment. */
Ritor1
parents:
diff changeset
186 #define DMUS_PATH_AUDIOPATH 0x2000 /* Get the audiopath itself (from a segment state.) */
Ritor1
parents:
diff changeset
187 #define DMUS_PATH_AUDIOPATH_GRAPH 0x2200 /* Get the audiopath's tool graph. */
Ritor1
parents:
diff changeset
188 #define DMUS_PATH_AUDIOPATH_TOOL 0x2300 /* Look in Tool Graph of Audio Path. */
Ritor1
parents:
diff changeset
189 #define DMUS_PATH_PERFORMANCE 0x3000 /* Access the performance. */
Ritor1
parents:
diff changeset
190 #define DMUS_PATH_PERFORMANCE_GRAPH 0x3200 /* Get the performance's tool graph. */
Ritor1
parents:
diff changeset
191 #define DMUS_PATH_PERFORMANCE_TOOL 0x3300 /* Look in Tool Graph of Performance. */
Ritor1
parents:
diff changeset
192 #define DMUS_PATH_PORT 0x4000 /* Access the synth. */
Ritor1
parents:
diff changeset
193 #define DMUS_PATH_BUFFER 0x6000 /* Look in DirectSoundBuffer. */
Ritor1
parents:
diff changeset
194 #define DMUS_PATH_BUFFER_DMO 0x6100 /* Access a DMO in the buffer. */
Ritor1
parents:
diff changeset
195 #define DMUS_PATH_MIXIN_BUFFER 0x7000 /* Look in a global mixin buffer. */
Ritor1
parents:
diff changeset
196 #define DMUS_PATH_MIXIN_BUFFER_DMO 0x7100 /* Access a DMO in a global mixin buffer. */
Ritor1
parents:
diff changeset
197 #define DMUS_PATH_PRIMARY_BUFFER 0x8000 /* Access the primary buffer. */
Ritor1
parents:
diff changeset
198
Ritor1
parents:
diff changeset
199 /* To ignore PChannels when calling GetObjectInPath(), use the DMUS_PCHANNEL_ALL constant. */
Ritor1
parents:
diff changeset
200 #define DMUS_PCHANNEL_ALL 0xFFFFFFFB
Ritor1
parents:
diff changeset
201
Ritor1
parents:
diff changeset
202 /* The DMUS_APATH types are used in conjunction with CreateStandardAudioPath to
Ritor1
parents:
diff changeset
203 build default path types. _SHARED_ means the same buffer is shared across multiple
Ritor1
parents:
diff changeset
204 instantiations of the audiopath type. _DYNAMIC_ means a unique buffer is created
Ritor1
parents:
diff changeset
205 every time.
Ritor1
parents:
diff changeset
206 */
Ritor1
parents:
diff changeset
207
Ritor1
parents:
diff changeset
208 #define DMUS_APATH_SHARED_STEREOPLUSREVERB 1 /* A standard music set up with stereo outs and reverb. */
Ritor1
parents:
diff changeset
209 #define DMUS_APATH_DYNAMIC_3D 6 /* An audio path with one dynamic bus from the synth feeding to a dynamic 3d buffer. Does not send to env reverb. */
Ritor1
parents:
diff changeset
210 #define DMUS_APATH_DYNAMIC_MONO 7 /* An audio path with one dynamic bus from the synth feeding to a dynamic mono buffer. */
Ritor1
parents:
diff changeset
211 #define DMUS_APATH_DYNAMIC_STEREO 8 /* An audio path with two dynamic buses from the synth feeding to a dynamic stereo buffer. */
Ritor1
parents:
diff changeset
212
Ritor1
parents:
diff changeset
213 typedef struct _DMUS_AUDIOPARAMS
Ritor1
parents:
diff changeset
214 {
Ritor1
parents:
diff changeset
215 DWORD dwSize; /* Size of this structure. */
Ritor1
parents:
diff changeset
216 BOOL fInitNow; /* If true, the sink and synth are created immediately and results returned in this structure. */
Ritor1
parents:
diff changeset
217 DWORD dwValidData; /* Flags indicating which fields below are valid. */
Ritor1
parents:
diff changeset
218 DWORD dwFeatures; /* Required DMUS_AUDIOF features. */
Ritor1
parents:
diff changeset
219 DWORD dwVoices; /* Required number of voices. */
Ritor1
parents:
diff changeset
220 DWORD dwSampleRate; /* Sample rate of synths and sink. */
Ritor1
parents:
diff changeset
221 CLSID clsidDefaultSynth; /* Class ID of default synthesizer. */
Ritor1
parents:
diff changeset
222 } DMUS_AUDIOPARAMS;
Ritor1
parents:
diff changeset
223
Ritor1
parents:
diff changeset
224 /* dwFeatures flags. These indicate which features are required for the audio environment. */
Ritor1
parents:
diff changeset
225 #define DMUS_AUDIOF_3D 0x1 /* Require 3D buffers. */
Ritor1
parents:
diff changeset
226 #define DMUS_AUDIOF_ENVIRON 0x2 /* Require environmental modeling. */
Ritor1
parents:
diff changeset
227 #define DMUS_AUDIOF_EAX 0x4 /* Require use of EAX effects. */
Ritor1
parents:
diff changeset
228 #define DMUS_AUDIOF_DMOS 0x8 /* Require use of additional DMOs. */
Ritor1
parents:
diff changeset
229 #define DMUS_AUDIOF_STREAMING 0x10 /* Require support for streaming waves. */
Ritor1
parents:
diff changeset
230 #define DMUS_AUDIOF_BUFFERS 0x20 /* Require support for multiple buffers (all above cases need this.) */
Ritor1
parents:
diff changeset
231 #define DMUS_AUDIOF_ALL 0x3F /* Requires everything. */
Ritor1
parents:
diff changeset
232
Ritor1
parents:
diff changeset
233 /* dwValidData flags. These indicate which fields in DMUS_AUDIOPARAMS have been filled in. If fInitNow is set, these also return what was allocated. */
Ritor1
parents:
diff changeset
234 #define DMUS_AUDIOPARAMS_FEATURES 0x00000001
Ritor1
parents:
diff changeset
235 #define DMUS_AUDIOPARAMS_VOICES 0x00000002
Ritor1
parents:
diff changeset
236 #define DMUS_AUDIOPARAMS_SAMPLERATE 0x00000004
Ritor1
parents:
diff changeset
237 #define DMUS_AUDIOPARAMS_DEFAULTSYNTH 0x00000008
Ritor1
parents:
diff changeset
238
Ritor1
parents:
diff changeset
239 /* DMUS_PMSGF_FLAGS fill the DMUS_PMSG's dwFlags member */
Ritor1
parents:
diff changeset
240 typedef enum enumDMUS_PMSGF_FLAGS
Ritor1
parents:
diff changeset
241 {
Ritor1
parents:
diff changeset
242 DMUS_PMSGF_REFTIME = 1, /* if rtTime is valid */
Ritor1
parents:
diff changeset
243 DMUS_PMSGF_MUSICTIME = 2, /* if mtTime is valid */
Ritor1
parents:
diff changeset
244 DMUS_PMSGF_TOOL_IMMEDIATE = 4, /* if PMSG should be processed immediately */
Ritor1
parents:
diff changeset
245 DMUS_PMSGF_TOOL_QUEUE = 8, /* if PMSG should be processed a little early, at Queue time */
Ritor1
parents:
diff changeset
246 DMUS_PMSGF_TOOL_ATTIME = 0x10, /* if PMSG should be processed at the time stamp */
Ritor1
parents:
diff changeset
247 DMUS_PMSGF_TOOL_FLUSH = 0x20, /* if PMSG is being flushed */
Ritor1
parents:
diff changeset
248 DMUS_PMSGF_LOCKTOREFTIME = 0x40, /* if rtTime can not be overriden by a tempo change. */
Ritor1
parents:
diff changeset
249 DMUS_PMSGF_DX8 = 0x80 /* if the message has DX8 or later extensions. */
Ritor1
parents:
diff changeset
250 /* The values of DMUS_TIME_RESOLVE_FLAGS may also be used inside the */
Ritor1
parents:
diff changeset
251 /* DMUS_PMSG's dwFlags member. */
Ritor1
parents:
diff changeset
252 } DMUS_PMSGF_FLAGS;
Ritor1
parents:
diff changeset
253
Ritor1
parents:
diff changeset
254 /* DMUS_PMSGT_TYPES fill the DMUS_PMSG's dwType member */
Ritor1
parents:
diff changeset
255 typedef enum enumDMUS_PMSGT_TYPES
Ritor1
parents:
diff changeset
256 {
Ritor1
parents:
diff changeset
257 DMUS_PMSGT_MIDI = 0, /* MIDI short message */
Ritor1
parents:
diff changeset
258 DMUS_PMSGT_NOTE = 1, /* Interactive Music Note */
Ritor1
parents:
diff changeset
259 DMUS_PMSGT_SYSEX = 2, /* MIDI long message (system exclusive message) */
Ritor1
parents:
diff changeset
260 DMUS_PMSGT_NOTIFICATION = 3, /* Notification message */
Ritor1
parents:
diff changeset
261 DMUS_PMSGT_TEMPO = 4, /* Tempo message */
Ritor1
parents:
diff changeset
262 DMUS_PMSGT_CURVE = 5, /* Control change / pitch bend, etc. curve */
Ritor1
parents:
diff changeset
263 DMUS_PMSGT_TIMESIG = 6, /* Time signature */
Ritor1
parents:
diff changeset
264 DMUS_PMSGT_PATCH = 7, /* Patch changes */
Ritor1
parents:
diff changeset
265 DMUS_PMSGT_TRANSPOSE = 8, /* Transposition messages */
Ritor1
parents:
diff changeset
266 DMUS_PMSGT_CHANNEL_PRIORITY = 9, /* Channel priority */
Ritor1
parents:
diff changeset
267 DMUS_PMSGT_STOP = 10, /* Stop message */
Ritor1
parents:
diff changeset
268 DMUS_PMSGT_DIRTY = 11, /* Tells Tools that cache GetParam() info to refresh */
Ritor1
parents:
diff changeset
269 DMUS_PMSGT_WAVE = 12, /* Carries control information for playing a wave. */
Ritor1
parents:
diff changeset
270 DMUS_PMSGT_LYRIC = 13, /* Lyric message from lyric track. */
Ritor1
parents:
diff changeset
271 DMUS_PMSGT_SCRIPTLYRIC = 14, /* Lyric message sent by a script with the Trace function. */
Ritor1
parents:
diff changeset
272 DMUS_PMSGT_USER = 255 /* User message */
Ritor1
parents:
diff changeset
273 } DMUS_PMSGT_TYPES;
Ritor1
parents:
diff changeset
274
Ritor1
parents:
diff changeset
275 /* DMUS_SEGF_FLAGS correspond to IDirectMusicPerformance::PlaySegment, and other API */
Ritor1
parents:
diff changeset
276 typedef enum enumDMUS_SEGF_FLAGS
Ritor1
parents:
diff changeset
277 {
Ritor1
parents:
diff changeset
278 DMUS_SEGF_REFTIME = 1<<6, /* 0x40 Time parameter is in reference time */
Ritor1
parents:
diff changeset
279 DMUS_SEGF_SECONDARY = 1<<7, /* 0x80 Secondary segment */
Ritor1
parents:
diff changeset
280 DMUS_SEGF_QUEUE = 1<<8, /* 0x100 Queue at the end of the primary segment queue (primary only) */
Ritor1
parents:
diff changeset
281 DMUS_SEGF_CONTROL = 1<<9, /* 0x200 Play as a control track (secondary segments only) */
Ritor1
parents:
diff changeset
282 DMUS_SEGF_AFTERPREPARETIME = 1<<10, /* 0x400 Play after the prepare time (See IDirectMusicPerformance::GetPrepareTime) */
Ritor1
parents:
diff changeset
283 DMUS_SEGF_GRID = 1<<11, /* 0x800 Play on grid boundary */
Ritor1
parents:
diff changeset
284 DMUS_SEGF_BEAT = 1<<12, /* 0x1000 Play on beat boundary */
Ritor1
parents:
diff changeset
285 DMUS_SEGF_MEASURE = 1<<13, /* 0x2000 Play on measure boundary */
Ritor1
parents:
diff changeset
286 DMUS_SEGF_DEFAULT = 1<<14, /* 0x4000 Use segment's default boundary */
Ritor1
parents:
diff changeset
287 DMUS_SEGF_NOINVALIDATE = 1<<15, /* 0x8000 Play without invalidating the currently playing segment(s) */
Ritor1
parents:
diff changeset
288 DMUS_SEGF_ALIGN = 1<<16, /* 0x10000 Align segment with requested boundary, but switch at first valid point */
Ritor1
parents:
diff changeset
289 DMUS_SEGF_VALID_START_BEAT = 1<<17, /* 0x20000 In conjunction with DMUS_SEGF_ALIGN, allows the switch to occur on any beat. */
Ritor1
parents:
diff changeset
290 DMUS_SEGF_VALID_START_GRID = 1<<18, /* 0x40000 In conjunction with DMUS_SEGF_ALIGN, allows the switch to occur on any grid. */
Ritor1
parents:
diff changeset
291 DMUS_SEGF_VALID_START_TICK = 1<<19, /* 0x80000 In conjunction with DMUS_SEGF_ALIGN, allows the switch to occur any time. */
Ritor1
parents:
diff changeset
292 DMUS_SEGF_AUTOTRANSITION = 1<<20, /* 0x100000 Compose and play a transition segment, using the transition template. */
Ritor1
parents:
diff changeset
293 DMUS_SEGF_AFTERQUEUETIME = 1<<21, /* 0x200000 Make sure to play after the queue time. This is default for primary segments */
Ritor1
parents:
diff changeset
294 DMUS_SEGF_AFTERLATENCYTIME = 1<<22, /* 0x400000 Make sure to play after the latency time. This is true for all segments, so this is a nop */
Ritor1
parents:
diff changeset
295 DMUS_SEGF_SEGMENTEND = 1<<23, /* 0x800000 Play at the next end of segment. */
Ritor1
parents:
diff changeset
296 DMUS_SEGF_MARKER = 1<<24, /* 0x1000000 Play at next marker in the primary segment. If there are no markers, default to any other resolution requests. */
Ritor1
parents:
diff changeset
297 DMUS_SEGF_TIMESIG_ALWAYS = 1<<25, /* 0x2000000 Even if there is no primary segment, align start time with current time signature. */
Ritor1
parents:
diff changeset
298 DMUS_SEGF_USE_AUDIOPATH = 1<<26, /* 0x4000000 Uses the audio path that is embedded in the segment. */
Ritor1
parents:
diff changeset
299 DMUS_SEGF_VALID_START_MEASURE = 1<<27, /* 0x8000000 In conjunction with DMUS_SEGF_ALIGN, allows the switch to occur on any bar. */
Ritor1
parents:
diff changeset
300 DMUS_SEGF_INVALIDATE_PRI = 1<<28 /* 0x10000000 invalidate only the current primary seg state */
Ritor1
parents:
diff changeset
301 } DMUS_SEGF_FLAGS;
Ritor1
parents:
diff changeset
302
Ritor1
parents:
diff changeset
303 #define DMUS_SEG_REPEAT_INFINITE 0xFFFFFFFF /* For IDirectMusicSegment::SetRepeat*/
Ritor1
parents:
diff changeset
304 #define DMUS_SEG_ALLTRACKS 0x80000000 /* For IDirectMusicSegment::SetParam() and SetTrackConfig() - selects all tracks instead on nth index. */
Ritor1
parents:
diff changeset
305 #define DMUS_SEG_ANYTRACK 0x80000000 /* For IDirectMusicSegment::GetParam() - checks each track until it finds one that returns data (not DMUS_E_NOT_FOUND.) */
Ritor1
parents:
diff changeset
306
Ritor1
parents:
diff changeset
307
Ritor1
parents:
diff changeset
308 /* DMUS_TIME_RESOLVE_FLAGS correspond to IDirectMusicPerformance::GetResolvedTime, and can */
Ritor1
parents:
diff changeset
309 /* also be used interchangeably with the corresponding DMUS_SEGF_FLAGS, since their values */
Ritor1
parents:
diff changeset
310 /* are intentionally the same */
Ritor1
parents:
diff changeset
311 typedef enum enumDMUS_TIME_RESOLVE_FLAGS
Ritor1
parents:
diff changeset
312 {
Ritor1
parents:
diff changeset
313 DMUS_TIME_RESOLVE_AFTERPREPARETIME = DMUS_SEGF_AFTERPREPARETIME,
Ritor1
parents:
diff changeset
314 DMUS_TIME_RESOLVE_AFTERQUEUETIME = DMUS_SEGF_AFTERQUEUETIME,
Ritor1
parents:
diff changeset
315 DMUS_TIME_RESOLVE_AFTERLATENCYTIME = DMUS_SEGF_AFTERLATENCYTIME,
Ritor1
parents:
diff changeset
316 DMUS_TIME_RESOLVE_GRID = DMUS_SEGF_GRID,
Ritor1
parents:
diff changeset
317 DMUS_TIME_RESOLVE_BEAT = DMUS_SEGF_BEAT,
Ritor1
parents:
diff changeset
318 DMUS_TIME_RESOLVE_MEASURE = DMUS_SEGF_MEASURE,
Ritor1
parents:
diff changeset
319 DMUS_TIME_RESOLVE_MARKER = DMUS_SEGF_MARKER,
Ritor1
parents:
diff changeset
320 DMUS_TIME_RESOLVE_SEGMENTEND = DMUS_SEGF_SEGMENTEND,
Ritor1
parents:
diff changeset
321 } DMUS_TIME_RESOLVE_FLAGS;
Ritor1
parents:
diff changeset
322
Ritor1
parents:
diff changeset
323 /* The following flags are sent inside the DMUS_CHORD_KEY.dwFlags parameter */
Ritor1
parents:
diff changeset
324 typedef enum enumDMUS_CHORDKEYF_FLAGS
Ritor1
parents:
diff changeset
325 {
Ritor1
parents:
diff changeset
326 DMUS_CHORDKEYF_SILENT = 1, /* is the chord silent? */
Ritor1
parents:
diff changeset
327 } DMUS_CHORDKEYF_FLAGS;
Ritor1
parents:
diff changeset
328
Ritor1
parents:
diff changeset
329 #define DMUS_MAXSUBCHORD 8
Ritor1
parents:
diff changeset
330
Ritor1
parents:
diff changeset
331 typedef struct _DMUS_SUBCHORD
Ritor1
parents:
diff changeset
332 {
Ritor1
parents:
diff changeset
333 DWORD dwChordPattern; /* Notes in the subchord */
Ritor1
parents:
diff changeset
334 DWORD dwScalePattern; /* Notes in the scale */
Ritor1
parents:
diff changeset
335 DWORD dwInversionPoints; /* Where inversions can occur */
Ritor1
parents:
diff changeset
336 DWORD dwLevels; /* Which levels are supported by this subchord */
Ritor1
parents:
diff changeset
337 BYTE bChordRoot; /* Root of the subchord */
Ritor1
parents:
diff changeset
338 BYTE bScaleRoot; /* Root of the scale */
Ritor1
parents:
diff changeset
339 } DMUS_SUBCHORD;
Ritor1
parents:
diff changeset
340
Ritor1
parents:
diff changeset
341 typedef struct _DMUS_CHORD_KEY
Ritor1
parents:
diff changeset
342 {
Ritor1
parents:
diff changeset
343 WCHAR wszName[16]; /* Name of the chord */
Ritor1
parents:
diff changeset
344 WORD wMeasure; /* Measure this falls on */
Ritor1
parents:
diff changeset
345 BYTE bBeat; /* Beat this falls on */
Ritor1
parents:
diff changeset
346 BYTE bSubChordCount; /* Number of chords in the list of subchords */
Ritor1
parents:
diff changeset
347 DMUS_SUBCHORD SubChordList[DMUS_MAXSUBCHORD]; /* List of sub chords */
Ritor1
parents:
diff changeset
348 DWORD dwScale; /* Scale underlying the entire chord */
Ritor1
parents:
diff changeset
349 BYTE bKey; /* Key underlying the entire chord */
Ritor1
parents:
diff changeset
350 BYTE bFlags; /* Miscelaneous flags */
Ritor1
parents:
diff changeset
351 } DMUS_CHORD_KEY;
Ritor1
parents:
diff changeset
352
Ritor1
parents:
diff changeset
353 /* DMUS_NOTE_PMSG */
Ritor1
parents:
diff changeset
354 typedef struct _DMUS_NOTE_PMSG
Ritor1
parents:
diff changeset
355 {
Ritor1
parents:
diff changeset
356 /* begin DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
357 DMUS_PMSG_PART
Ritor1
parents:
diff changeset
358 /* end DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
359
Ritor1
parents:
diff changeset
360 MUSIC_TIME mtDuration; /* duration */
Ritor1
parents:
diff changeset
361 WORD wMusicValue; /* Description of note in chord and key. */
Ritor1
parents:
diff changeset
362 WORD wMeasure; /* Measure in which this note occurs */
Ritor1
parents:
diff changeset
363 short nOffset; /* Offset from grid at which this note occurs */
Ritor1
parents:
diff changeset
364 BYTE bBeat; /* Beat (in measure) at which this note occurs */
Ritor1
parents:
diff changeset
365 BYTE bGrid; /* Grid offset from beat at which this note occurs */
Ritor1
parents:
diff changeset
366 BYTE bVelocity; /* Note velocity */
Ritor1
parents:
diff changeset
367 BYTE bFlags; /* see DMUS_NOTEF_FLAGS */
Ritor1
parents:
diff changeset
368 BYTE bTimeRange; /* Range to randomize time. */
Ritor1
parents:
diff changeset
369 BYTE bDurRange; /* Range to randomize duration. */
Ritor1
parents:
diff changeset
370 BYTE bVelRange; /* Range to randomize velocity. */
Ritor1
parents:
diff changeset
371 BYTE bPlayModeFlags; /* Play mode */
Ritor1
parents:
diff changeset
372 BYTE bSubChordLevel; /* Which subchord level this note uses. */
Ritor1
parents:
diff changeset
373 BYTE bMidiValue; /* The MIDI note value, converted from wMusicValue */
Ritor1
parents:
diff changeset
374 char cTranspose; /* Transposition to add to midi note value after converted from wMusicValue. */
Ritor1
parents:
diff changeset
375 } DMUS_NOTE_PMSG;
Ritor1
parents:
diff changeset
376
Ritor1
parents:
diff changeset
377 typedef enum enumDMUS_NOTEF_FLAGS
Ritor1
parents:
diff changeset
378 {
Ritor1
parents:
diff changeset
379 DMUS_NOTEF_NOTEON = 1, /* Set if this is a MIDI Note On. Otherwise, it is MIDI Note Off */
Ritor1
parents:
diff changeset
380 /* DX8 flags: */
Ritor1
parents:
diff changeset
381 DMUS_NOTEF_NOINVALIDATE = 2, /* Don't invalidate this note off. */
Ritor1
parents:
diff changeset
382 DMUS_NOTEF_NOINVALIDATE_INSCALE = 4,/* Don't invalidate if still within the scale. */
Ritor1
parents:
diff changeset
383 DMUS_NOTEF_NOINVALIDATE_INCHORD = 8,/* Don't invalidate if still within the chord. */
Ritor1
parents:
diff changeset
384 DMUS_NOTEF_REGENERATE = 0x10, /* Regenerate the note on an invalidate. */
Ritor1
parents:
diff changeset
385 } DMUS_NOTEF_FLAGS;
Ritor1
parents:
diff changeset
386
Ritor1
parents:
diff changeset
387 /* The DMUS_PLAYMODE_FLAGS are used to determine how to convert wMusicValue
Ritor1
parents:
diff changeset
388 into the appropriate bMidiValue.
Ritor1
parents:
diff changeset
389 */
Ritor1
parents:
diff changeset
390
Ritor1
parents:
diff changeset
391 typedef enum enumDMUS_PLAYMODE_FLAGS
Ritor1
parents:
diff changeset
392 {
Ritor1
parents:
diff changeset
393 DMUS_PLAYMODE_KEY_ROOT = 1, /* Transpose on top of the key root. */
Ritor1
parents:
diff changeset
394 DMUS_PLAYMODE_CHORD_ROOT = 2, /* Transpose on top of the chord root. */
Ritor1
parents:
diff changeset
395 DMUS_PLAYMODE_SCALE_INTERVALS = 4, /* Use scale intervals from scale pattern. */
Ritor1
parents:
diff changeset
396 DMUS_PLAYMODE_CHORD_INTERVALS = 8, /* Use chord intervals from chord pattern. */
Ritor1
parents:
diff changeset
397 DMUS_PLAYMODE_NONE = 16, /* No mode. Indicates the parent part's mode should be used. */
Ritor1
parents:
diff changeset
398 } DMUS_PLAYMODE_FLAGS;
Ritor1
parents:
diff changeset
399
Ritor1
parents:
diff changeset
400 /* The following are playback modes that can be created by combining the DMUS_PLAYMODE_FLAGS
Ritor1
parents:
diff changeset
401 in various ways:
Ritor1
parents:
diff changeset
402 */
Ritor1
parents:
diff changeset
403
Ritor1
parents:
diff changeset
404 /* Fixed. wMusicValue holds final MIDI note value. This is used for drums, sound effects, and sequenced
Ritor1
parents:
diff changeset
405 notes that should not be transposed by the chord or scale.
Ritor1
parents:
diff changeset
406 */
Ritor1
parents:
diff changeset
407 #define DMUS_PLAYMODE_FIXED 0
Ritor1
parents:
diff changeset
408 /* In fixed to key, the musicvalue is again a fixed MIDI value, but it
Ritor1
parents:
diff changeset
409 is transposed on top of the key root.
Ritor1
parents:
diff changeset
410 */
Ritor1
parents:
diff changeset
411 #define DMUS_PLAYMODE_FIXEDTOKEY DMUS_PLAYMODE_KEY_ROOT
Ritor1
parents:
diff changeset
412 /* In fixed to chord, the musicvalue is also a fixed MIDI value, but it
Ritor1
parents:
diff changeset
413 is transposed on top of the chord root.
Ritor1
parents:
diff changeset
414 */
Ritor1
parents:
diff changeset
415 #define DMUS_PLAYMODE_FIXEDTOCHORD DMUS_PLAYMODE_CHORD_ROOT
Ritor1
parents:
diff changeset
416 /* In Pedalpoint, the key root is used and the notes only track the intervals in
Ritor1
parents:
diff changeset
417 the scale. The chord root and intervals are completely ignored. This is useful
Ritor1
parents:
diff changeset
418 for melodic lines that play relative to the key root.
Ritor1
parents:
diff changeset
419 */
Ritor1
parents:
diff changeset
420 #define DMUS_PLAYMODE_PEDALPOINT (DMUS_PLAYMODE_KEY_ROOT | DMUS_PLAYMODE_SCALE_INTERVALS)
Ritor1
parents:
diff changeset
421 /* In the Melodic mode, the chord root is used but the notes only track the intervals in
Ritor1
parents:
diff changeset
422 the scale. The key root and chord intervals are completely ignored. This is useful
Ritor1
parents:
diff changeset
423 for melodic lines that play relative to the chord root.
Ritor1
parents:
diff changeset
424 */
Ritor1
parents:
diff changeset
425 #define DMUS_PLAYMODE_MELODIC (DMUS_PLAYMODE_CHORD_ROOT | DMUS_PLAYMODE_SCALE_INTERVALS)
Ritor1
parents:
diff changeset
426 /* Normal chord mode is the prevalent playback mode.
Ritor1
parents:
diff changeset
427 The notes track the intervals in the chord, which is based on the chord root.
Ritor1
parents:
diff changeset
428 If there is a scale component to the MusicValue, the additional intervals
Ritor1
parents:
diff changeset
429 are pulled from the scale and added.
Ritor1
parents:
diff changeset
430 If the chord does not have an interval to match the chord component of
Ritor1
parents:
diff changeset
431 the MusicValue, the note is silent.
Ritor1
parents:
diff changeset
432 */
Ritor1
parents:
diff changeset
433 #define DMUS_PLAYMODE_NORMALCHORD (DMUS_PLAYMODE_CHORD_ROOT | DMUS_PLAYMODE_CHORD_INTERVALS)
Ritor1
parents:
diff changeset
434 /* If it is desirable to play a note that is above the top of the chord, the
Ritor1
parents:
diff changeset
435 always play mode (known as "purpleized" in a former life) finds a position
Ritor1
parents:
diff changeset
436 for the note by using intervals from the scale. Essentially, this mode is
Ritor1
parents:
diff changeset
437 a combination of the Normal and Melodic playback modes, where a failure
Ritor1
parents:
diff changeset
438 in Normal causes a second try in Melodic mode.
Ritor1
parents:
diff changeset
439 */
Ritor1
parents:
diff changeset
440 #define DMUS_PLAYMODE_ALWAYSPLAY (DMUS_PLAYMODE_MELODIC | DMUS_PLAYMODE_NORMALCHORD)
Ritor1
parents:
diff changeset
441
Ritor1
parents:
diff changeset
442 /* These playmodes are new for dx8. */
Ritor1
parents:
diff changeset
443 /* In PedalpointChord, the key root is used and the notes only track the intervals in
Ritor1
parents:
diff changeset
444 the chord. The chord root and scale intervals are completely ignored. This is useful
Ritor1
parents:
diff changeset
445 for chordal lines that play relative to the key root.
Ritor1
parents:
diff changeset
446 */
Ritor1
parents:
diff changeset
447 #define DMUS_PLAYMODE_PEDALPOINTCHORD (DMUS_PLAYMODE_KEY_ROOT | DMUS_PLAYMODE_CHORD_INTERVALS)
Ritor1
parents:
diff changeset
448
Ritor1
parents:
diff changeset
449 /* For completeness, here's a mode that tries for pedalpointchord, but if it fails
Ritor1
parents:
diff changeset
450 uses scale intervals
Ritor1
parents:
diff changeset
451 */
Ritor1
parents:
diff changeset
452 #define DMUS_PLAYMODE_PEDALPOINTALWAYS (DMUS_PLAYMODE_PEDALPOINT | DMUS_PLAYMODE_PEDALPOINTCHORD)
Ritor1
parents:
diff changeset
453
Ritor1
parents:
diff changeset
454
Ritor1
parents:
diff changeset
455 /* Legacy names for modes... */
Ritor1
parents:
diff changeset
456 #define DMUS_PLAYMODE_PURPLEIZED DMUS_PLAYMODE_ALWAYSPLAY
Ritor1
parents:
diff changeset
457 #define DMUS_PLAYMODE_SCALE_ROOT DMUS_PLAYMODE_KEY_ROOT
Ritor1
parents:
diff changeset
458 #define DMUS_PLAYMODE_FIXEDTOSCALE DMUS_PLAYMODE_FIXEDTOKEY
Ritor1
parents:
diff changeset
459
Ritor1
parents:
diff changeset
460
Ritor1
parents:
diff changeset
461 /* DMUS_MIDI_PMSG */
Ritor1
parents:
diff changeset
462 typedef struct _DMUS_MIDI_PMSG
Ritor1
parents:
diff changeset
463 {
Ritor1
parents:
diff changeset
464 /* begin DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
465 DMUS_PMSG_PART
Ritor1
parents:
diff changeset
466 /* end DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
467
Ritor1
parents:
diff changeset
468 BYTE bStatus;
Ritor1
parents:
diff changeset
469 BYTE bByte1;
Ritor1
parents:
diff changeset
470 BYTE bByte2;
Ritor1
parents:
diff changeset
471 BYTE bPad[1];
Ritor1
parents:
diff changeset
472 } DMUS_MIDI_PMSG;
Ritor1
parents:
diff changeset
473
Ritor1
parents:
diff changeset
474 /* DMUS_PATCH_PMSG */
Ritor1
parents:
diff changeset
475 typedef struct _DMUS_PATCH_PMSG
Ritor1
parents:
diff changeset
476 {
Ritor1
parents:
diff changeset
477 /* begin DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
478 DMUS_PMSG_PART
Ritor1
parents:
diff changeset
479 /* end DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
480
Ritor1
parents:
diff changeset
481 BYTE byInstrument;
Ritor1
parents:
diff changeset
482 BYTE byMSB;
Ritor1
parents:
diff changeset
483 BYTE byLSB;
Ritor1
parents:
diff changeset
484 BYTE byPad[1];
Ritor1
parents:
diff changeset
485 } DMUS_PATCH_PMSG;
Ritor1
parents:
diff changeset
486
Ritor1
parents:
diff changeset
487 /* DMUS_TRANSPOSE_PMSG */
Ritor1
parents:
diff changeset
488 typedef struct _DMUS_TRANSPOSE_PMSG
Ritor1
parents:
diff changeset
489 {
Ritor1
parents:
diff changeset
490 /* begin DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
491 DMUS_PMSG_PART
Ritor1
parents:
diff changeset
492 /* end DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
493
Ritor1
parents:
diff changeset
494 short nTranspose;
Ritor1
parents:
diff changeset
495 /* Following exists only under DX8 and on (check dwFlags for DMUS_PMSGF_DX8) */
Ritor1
parents:
diff changeset
496 WORD wMergeIndex; /* Allows multiple parameters to be merged (pitchbend, volume, and expression.)*/
Ritor1
parents:
diff changeset
497 } DMUS_TRANSPOSE_PMSG;
Ritor1
parents:
diff changeset
498
Ritor1
parents:
diff changeset
499 /* DMUS_CHANNEL_PRIORITY_PMSG */
Ritor1
parents:
diff changeset
500 typedef struct _DMUS_CHANNEL_PRIORITY_PMSG
Ritor1
parents:
diff changeset
501 {
Ritor1
parents:
diff changeset
502 /* begin DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
503 DMUS_PMSG_PART
Ritor1
parents:
diff changeset
504 /* end DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
505
Ritor1
parents:
diff changeset
506 DWORD dwChannelPriority;
Ritor1
parents:
diff changeset
507 } DMUS_CHANNEL_PRIORITY_PMSG;
Ritor1
parents:
diff changeset
508
Ritor1
parents:
diff changeset
509 /* DMUS_TEMPO_PMSG */
Ritor1
parents:
diff changeset
510 typedef struct _DMUS_TEMPO_PMSG
Ritor1
parents:
diff changeset
511 {
Ritor1
parents:
diff changeset
512 /* begin DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
513 DMUS_PMSG_PART
Ritor1
parents:
diff changeset
514 /* end DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
515
Ritor1
parents:
diff changeset
516 double dblTempo; /* the tempo */
Ritor1
parents:
diff changeset
517 } DMUS_TEMPO_PMSG;
Ritor1
parents:
diff changeset
518
Ritor1
parents:
diff changeset
519 #define DMUS_TEMPO_MAX 1000
Ritor1
parents:
diff changeset
520 #define DMUS_TEMPO_MIN 1
Ritor1
parents:
diff changeset
521
Ritor1
parents:
diff changeset
522 #define DMUS_MASTERTEMPO_MAX 100.0f
Ritor1
parents:
diff changeset
523 #define DMUS_MASTERTEMPO_MIN 0.01f
Ritor1
parents:
diff changeset
524
Ritor1
parents:
diff changeset
525 /* DMUS_SYSEX_PMSG */
Ritor1
parents:
diff changeset
526 typedef struct _DMUS_SYSEX_PMSG
Ritor1
parents:
diff changeset
527 {
Ritor1
parents:
diff changeset
528 /* begin DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
529 DMUS_PMSG_PART
Ritor1
parents:
diff changeset
530 /* end DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
531
Ritor1
parents:
diff changeset
532 DWORD dwLen; /* length of the data */
Ritor1
parents:
diff changeset
533 BYTE abData[1]; /* array of data, length equal to dwLen */
Ritor1
parents:
diff changeset
534 } DMUS_SYSEX_PMSG;
Ritor1
parents:
diff changeset
535
Ritor1
parents:
diff changeset
536 /* DMUS_CURVE_PMSG */
Ritor1
parents:
diff changeset
537 typedef struct _DMUS_CURVE_PMSG
Ritor1
parents:
diff changeset
538 {
Ritor1
parents:
diff changeset
539 /* begin DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
540 DMUS_PMSG_PART
Ritor1
parents:
diff changeset
541 /* end DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
542
Ritor1
parents:
diff changeset
543 MUSIC_TIME mtDuration; /* how long this curve lasts */
Ritor1
parents:
diff changeset
544 MUSIC_TIME mtOriginalStart; /* must be set to either zero when this PMSG is created or to the original mtTime of the curve */
Ritor1
parents:
diff changeset
545 MUSIC_TIME mtResetDuration; /* how long after the curve is finished to allow a flush or
Ritor1
parents:
diff changeset
546 invalidation to reset to the reset value, nResetValue */
Ritor1
parents:
diff changeset
547 short nStartValue; /* curve's start value */
Ritor1
parents:
diff changeset
548 short nEndValue; /* curve's end value */
Ritor1
parents:
diff changeset
549 short nResetValue; /* curve's reset value, set when a flush or invalidation
Ritor1
parents:
diff changeset
550 occurs within mtDuration + mtResetDuration */
Ritor1
parents:
diff changeset
551 WORD wMeasure; /* Measure in which this curve occurs */
Ritor1
parents:
diff changeset
552 short nOffset; /* Offset from grid at which this curve occurs */
Ritor1
parents:
diff changeset
553 BYTE bBeat; /* Beat (in measure) at which this curve occurs */
Ritor1
parents:
diff changeset
554 BYTE bGrid; /* Grid offset from beat at which this curve occurs */
Ritor1
parents:
diff changeset
555 BYTE bType; /* type of curve */
Ritor1
parents:
diff changeset
556 BYTE bCurveShape; /* shape of curve */
Ritor1
parents:
diff changeset
557 BYTE bCCData; /* CC# if this is a control change type */
Ritor1
parents:
diff changeset
558 BYTE bFlags; /* Curve reset and start from current value flags. */
Ritor1
parents:
diff changeset
559 /* Following exists only under DX8 and on (check dwFlags for DMUS_PMSGF_DX8) */
Ritor1
parents:
diff changeset
560 WORD wParamType; /* RPN or NRPN parameter number. */
Ritor1
parents:
diff changeset
561 WORD wMergeIndex; /* Allows multiple parameters to be merged (pitchbend, volume, and expression.)*/
Ritor1
parents:
diff changeset
562 } DMUS_CURVE_PMSG;
Ritor1
parents:
diff changeset
563
Ritor1
parents:
diff changeset
564 typedef enum enumDMUS_CURVE_FLAGS
Ritor1
parents:
diff changeset
565 {
Ritor1
parents:
diff changeset
566 DMUS_CURVE_RESET = 1, /* When set, the nResetValue must be sent when the
Ritor1
parents:
diff changeset
567 time is reached or an invalidate occurs because
Ritor1
parents:
diff changeset
568 of a transition. If not set, the curve stays
Ritor1
parents:
diff changeset
569 permanently stuck at the new value. */
Ritor1
parents:
diff changeset
570 DMUS_CURVE_START_FROM_CURRENT = 2/* Ignore Start, start the curve at the current value.
Ritor1
parents:
diff changeset
571 This only works for volume, expression, and pitchbend. */
Ritor1
parents:
diff changeset
572 } DMUS_CURVE_FLAGS;
Ritor1
parents:
diff changeset
573
Ritor1
parents:
diff changeset
574
Ritor1
parents:
diff changeset
575 #define DMUS_CURVE_RESET 1
Ritor1
parents:
diff changeset
576
Ritor1
parents:
diff changeset
577 /* Curve shapes */
Ritor1
parents:
diff changeset
578 enum
Ritor1
parents:
diff changeset
579 {
Ritor1
parents:
diff changeset
580 DMUS_CURVES_LINEAR = 0,
Ritor1
parents:
diff changeset
581 DMUS_CURVES_INSTANT = 1,
Ritor1
parents:
diff changeset
582 DMUS_CURVES_EXP = 2,
Ritor1
parents:
diff changeset
583 DMUS_CURVES_LOG = 3,
Ritor1
parents:
diff changeset
584 DMUS_CURVES_SINE = 4
Ritor1
parents:
diff changeset
585 };
Ritor1
parents:
diff changeset
586 /* curve types */
Ritor1
parents:
diff changeset
587 #define DMUS_CURVET_PBCURVE 0x03 /* Pitch bend curve. */
Ritor1
parents:
diff changeset
588 #define DMUS_CURVET_CCCURVE 0x04 /* Control change curve. */
Ritor1
parents:
diff changeset
589 #define DMUS_CURVET_MATCURVE 0x05 /* Mono aftertouch curve. */
Ritor1
parents:
diff changeset
590 #define DMUS_CURVET_PATCURVE 0x06 /* Poly aftertouch curve. */
Ritor1
parents:
diff changeset
591 #define DMUS_CURVET_RPNCURVE 0x07 /* RPN curve with curve type in wParamType. */
Ritor1
parents:
diff changeset
592 #define DMUS_CURVET_NRPNCURVE 0x08 /* NRPN curve with curve type in wParamType. */
Ritor1
parents:
diff changeset
593
Ritor1
parents:
diff changeset
594 /* DMUS_TIMESIG_PMSG */
Ritor1
parents:
diff changeset
595 typedef struct _DMUS_TIMESIG_PMSG
Ritor1
parents:
diff changeset
596 {
Ritor1
parents:
diff changeset
597 /* begin DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
598 DMUS_PMSG_PART
Ritor1
parents:
diff changeset
599 /* end DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
600
Ritor1
parents:
diff changeset
601 /* Time signatures define how many beats per measure, which note receives */
Ritor1
parents:
diff changeset
602 /* the beat, and the grid resolution. */
Ritor1
parents:
diff changeset
603 BYTE bBeatsPerMeasure; /* beats per measure (top of time sig) */
Ritor1
parents:
diff changeset
604 BYTE bBeat; /* what note receives the beat (bottom of time sig.) */
Ritor1
parents:
diff changeset
605 /* we can assume that 0 means 256th note */
Ritor1
parents:
diff changeset
606 WORD wGridsPerBeat; /* grids per beat */
Ritor1
parents:
diff changeset
607 } DMUS_TIMESIG_PMSG;
Ritor1
parents:
diff changeset
608
Ritor1
parents:
diff changeset
609
Ritor1
parents:
diff changeset
610
Ritor1
parents:
diff changeset
611 /* notification type values */
Ritor1
parents:
diff changeset
612 /* The following correspond to GUID_NOTIFICATION_SEGMENT */
Ritor1
parents:
diff changeset
613 #define DMUS_NOTIFICATION_SEGSTART 0
Ritor1
parents:
diff changeset
614 #define DMUS_NOTIFICATION_SEGEND 1
Ritor1
parents:
diff changeset
615 #define DMUS_NOTIFICATION_SEGALMOSTEND 2
Ritor1
parents:
diff changeset
616 #define DMUS_NOTIFICATION_SEGLOOP 3
Ritor1
parents:
diff changeset
617 #define DMUS_NOTIFICATION_SEGABORT 4
Ritor1
parents:
diff changeset
618 /* The following correspond to GUID_NOTIFICATION_PERFORMANCE */
Ritor1
parents:
diff changeset
619 #define DMUS_NOTIFICATION_MUSICSTARTED 0
Ritor1
parents:
diff changeset
620 #define DMUS_NOTIFICATION_MUSICSTOPPED 1
Ritor1
parents:
diff changeset
621 #define DMUS_NOTIFICATION_MUSICALMOSTEND 2
Ritor1
parents:
diff changeset
622 /* The following corresponds to GUID_NOTIFICATION_MEASUREANDBEAT */
Ritor1
parents:
diff changeset
623 #define DMUS_NOTIFICATION_MEASUREBEAT 0
Ritor1
parents:
diff changeset
624 /* The following corresponds to GUID_NOTIFICATION_CHORD */
Ritor1
parents:
diff changeset
625 #define DMUS_NOTIFICATION_CHORD 0
Ritor1
parents:
diff changeset
626 /* The following correspond to GUID_NOTIFICATION_COMMAND */
Ritor1
parents:
diff changeset
627 #define DMUS_NOTIFICATION_GROOVE 0
Ritor1
parents:
diff changeset
628 #define DMUS_NOTIFICATION_EMBELLISHMENT 1
Ritor1
parents:
diff changeset
629 /* The following corresponds to GUID_NOTIFICATION_RECOMPOSE */
Ritor1
parents:
diff changeset
630 #define DMUS_NOTIFICATION_RECOMPOSE 0
Ritor1
parents:
diff changeset
631
Ritor1
parents:
diff changeset
632 /* DMUS_NOTIFICATION_PMSG */
Ritor1
parents:
diff changeset
633 typedef struct _DMUS_NOTIFICATION_PMSG
Ritor1
parents:
diff changeset
634 {
Ritor1
parents:
diff changeset
635 /* begin DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
636 DMUS_PMSG_PART
Ritor1
parents:
diff changeset
637 /* end DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
638
Ritor1
parents:
diff changeset
639 GUID guidNotificationType;
Ritor1
parents:
diff changeset
640 DWORD dwNotificationOption;
Ritor1
parents:
diff changeset
641 DWORD dwField1;
Ritor1
parents:
diff changeset
642 DWORD dwField2;
Ritor1
parents:
diff changeset
643 } DMUS_NOTIFICATION_PMSG;
Ritor1
parents:
diff changeset
644
Ritor1
parents:
diff changeset
645 /* DMUS_WAVE_PMSG */
Ritor1
parents:
diff changeset
646 typedef struct _DMUS_WAVE_PMSG
Ritor1
parents:
diff changeset
647 {
Ritor1
parents:
diff changeset
648 /* begin DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
649 DMUS_PMSG_PART
Ritor1
parents:
diff changeset
650 /* end DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
651
Ritor1
parents:
diff changeset
652 REFERENCE_TIME rtStartOffset; /* How far into the wave to start, in reference time units only. */
Ritor1
parents:
diff changeset
653 REFERENCE_TIME rtDuration; /* Duration of the wave, in either reference time or music time. */
Ritor1
parents:
diff changeset
654 long lOffset; /* Offset from actual time to logical time, in music or ref time. */
Ritor1
parents:
diff changeset
655 long lVolume; /* Initial volume, in 100ths of a dB. */
Ritor1
parents:
diff changeset
656 long lPitch; /* Initial pitch, in 100ths of a semitone. */
Ritor1
parents:
diff changeset
657 BYTE bFlags; /* Flags, including DMUS_WAVEF_OFF... */
Ritor1
parents:
diff changeset
658 } DMUS_WAVE_PMSG;
Ritor1
parents:
diff changeset
659
Ritor1
parents:
diff changeset
660 #define DMUS_WAVEF_OFF 1 /* If wave is playing and this is the off message. */
Ritor1
parents:
diff changeset
661 #define DMUS_WAVEF_STREAMING 2 /* If wave is streaming. */
Ritor1
parents:
diff changeset
662 #define DMUS_WAVEF_NOINVALIDATE 4 /* Don't invalidate this wave. */
Ritor1
parents:
diff changeset
663 #define DMUS_WAVEF_NOPREROLL 8 /* Don't preroll any wave data. */
Ritor1
parents:
diff changeset
664 #define DMUS_WAVEF_IGNORELOOPS 0x20 /* Ignore segment looping. */
Ritor1
parents:
diff changeset
665
Ritor1
parents:
diff changeset
666 /* DMUS_LYRIC_PMSG */
Ritor1
parents:
diff changeset
667 typedef struct _DMUS_LYRIC_PMSG
Ritor1
parents:
diff changeset
668 {
Ritor1
parents:
diff changeset
669 /* begin DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
670 DMUS_PMSG_PART
Ritor1
parents:
diff changeset
671 /* end DMUS_PMSG_PART */
Ritor1
parents:
diff changeset
672
Ritor1
parents:
diff changeset
673 WCHAR wszString[1]; /* null-terminated Unicode lyric string (structure is actually larger than size 1) */
Ritor1
parents:
diff changeset
674 } DMUS_LYRIC_PMSG;
Ritor1
parents:
diff changeset
675
Ritor1
parents:
diff changeset
676 #define DMUS_MAX_NAME 64 /* Maximum object name length. */
Ritor1
parents:
diff changeset
677 #define DMUS_MAX_CATEGORY 64 /* Maximum object category name length. */
Ritor1
parents:
diff changeset
678 #define DMUS_MAX_FILENAME MAX_PATH
Ritor1
parents:
diff changeset
679
Ritor1
parents:
diff changeset
680 typedef struct _DMUS_VERSION {
Ritor1
parents:
diff changeset
681 DWORD dwVersionMS;
Ritor1
parents:
diff changeset
682 DWORD dwVersionLS;
Ritor1
parents:
diff changeset
683 }DMUS_VERSION, FAR *LPDMUS_VERSION;
Ritor1
parents:
diff changeset
684
Ritor1
parents:
diff changeset
685 /* Time Signature structure, used by IDirectMusicStyle */
Ritor1
parents:
diff changeset
686 /* Also used as a parameter for GetParam() and SetParam */
Ritor1
parents:
diff changeset
687 typedef struct _DMUS_TIMESIGNATURE
Ritor1
parents:
diff changeset
688 {
Ritor1
parents:
diff changeset
689 MUSIC_TIME mtTime;
Ritor1
parents:
diff changeset
690 BYTE bBeatsPerMeasure; /* beats per measure (top of time sig) */
Ritor1
parents:
diff changeset
691 BYTE bBeat; /* what note receives the beat (bottom of time sig.) */
Ritor1
parents:
diff changeset
692 /* we can assume that 0 means 256th note */
Ritor1
parents:
diff changeset
693 WORD wGridsPerBeat; /* grids per beat */
Ritor1
parents:
diff changeset
694 } DMUS_TIMESIGNATURE;
Ritor1
parents:
diff changeset
695
Ritor1
parents:
diff changeset
696 typedef struct _DMUS_VALID_START_PARAM
Ritor1
parents:
diff changeset
697 {
Ritor1
parents:
diff changeset
698 MUSIC_TIME mtTime; /* Time of the first legal start
Ritor1
parents:
diff changeset
699 point after (or including) the requested time.
Ritor1
parents:
diff changeset
700 This is a returned value.
Ritor1
parents:
diff changeset
701 Time format is the relative offset from requested time. */
Ritor1
parents:
diff changeset
702 } DMUS_VALID_START_PARAM;
Ritor1
parents:
diff changeset
703
Ritor1
parents:
diff changeset
704 typedef struct _DMUS_PLAY_MARKER_PARAM
Ritor1
parents:
diff changeset
705 {
Ritor1
parents:
diff changeset
706 MUSIC_TIME mtTime; /* Time of the first legal segment play
Ritor1
parents:
diff changeset
707 marker before (or including) the requested time.
Ritor1
parents:
diff changeset
708 This is a returned value.
Ritor1
parents:
diff changeset
709 Time format is the relative offset from requested time. */
Ritor1
parents:
diff changeset
710 } DMUS_PLAY_MARKER_PARAM;
Ritor1
parents:
diff changeset
711
Ritor1
parents:
diff changeset
712 /* The DMUSOBJECTDESC structure is used to communicate everything you could */
Ritor1
parents:
diff changeset
713 /* possibly use to describe a DirectMusic object. */
Ritor1
parents:
diff changeset
714
Ritor1
parents:
diff changeset
715 typedef struct _DMUS_OBJECTDESC
Ritor1
parents:
diff changeset
716 {
Ritor1
parents:
diff changeset
717 DWORD dwSize; /* Size of this structure. */
Ritor1
parents:
diff changeset
718 DWORD dwValidData; /* Flags indicating which fields below are valid. */
Ritor1
parents:
diff changeset
719 GUID guidObject; /* Unique ID for this object. */
Ritor1
parents:
diff changeset
720 GUID guidClass; /* GUID for the class of object. */
Ritor1
parents:
diff changeset
721 FILETIME ftDate; /* Last edited date of object. */
Ritor1
parents:
diff changeset
722 DMUS_VERSION vVersion; /* Version. */
Ritor1
parents:
diff changeset
723 WCHAR wszName[DMUS_MAX_NAME]; /* Name of object. */
Ritor1
parents:
diff changeset
724 WCHAR wszCategory[DMUS_MAX_CATEGORY]; /* Category for object (optional). */
Ritor1
parents:
diff changeset
725 WCHAR wszFileName[DMUS_MAX_FILENAME]; /* File path. */
Ritor1
parents:
diff changeset
726 LONGLONG llMemLength; /* Size of Memory data. */
Ritor1
parents:
diff changeset
727 LPBYTE pbMemData; /* Memory pointer for data. */
Ritor1
parents:
diff changeset
728 IStream * pStream; /* Stream with data. */
Ritor1
parents:
diff changeset
729 } DMUS_OBJECTDESC;
Ritor1
parents:
diff changeset
730
Ritor1
parents:
diff changeset
731 typedef DMUS_OBJECTDESC *LPDMUS_OBJECTDESC;
Ritor1
parents:
diff changeset
732
Ritor1
parents:
diff changeset
733 /* Flags for dwValidData. When set, a flag indicates that the */
Ritor1
parents:
diff changeset
734 /* corresponding field in DMUSOBJECTDESC holds valid data. */
Ritor1
parents:
diff changeset
735
Ritor1
parents:
diff changeset
736 #define DMUS_OBJ_OBJECT (1 << 0) /* Object GUID is valid. */
Ritor1
parents:
diff changeset
737 #define DMUS_OBJ_CLASS (1 << 1) /* Class GUID is valid. */
Ritor1
parents:
diff changeset
738 #define DMUS_OBJ_NAME (1 << 2) /* Name is valid. */
Ritor1
parents:
diff changeset
739 #define DMUS_OBJ_CATEGORY (1 << 3) /* Category is valid. */
Ritor1
parents:
diff changeset
740 #define DMUS_OBJ_FILENAME (1 << 4) /* File path is valid. */
Ritor1
parents:
diff changeset
741 #define DMUS_OBJ_FULLPATH (1 << 5) /* Path is full path. */
Ritor1
parents:
diff changeset
742 #define DMUS_OBJ_URL (1 << 6) /* Path is URL. */
Ritor1
parents:
diff changeset
743 #define DMUS_OBJ_VERSION (1 << 7) /* Version is valid. */
Ritor1
parents:
diff changeset
744 #define DMUS_OBJ_DATE (1 << 8) /* Date is valid. */
Ritor1
parents:
diff changeset
745 #define DMUS_OBJ_LOADED (1 << 9) /* Object is currently loaded in memory. */
Ritor1
parents:
diff changeset
746 #define DMUS_OBJ_MEMORY (1 << 10) /* Object is pointed to by pbMemData. */
Ritor1
parents:
diff changeset
747 #define DMUS_OBJ_STREAM (1 << 11) /* Object is stored in pStream. */
Ritor1
parents:
diff changeset
748
Ritor1
parents:
diff changeset
749 /* The DMUS_SCRIPT_ERRORINFO structure describes an error that occurred in a script.
Ritor1
parents:
diff changeset
750 It is returned by methods in IDirectMusicScript. */
Ritor1
parents:
diff changeset
751 typedef struct _DMUS_SCRIPT_ERRORINFO
Ritor1
parents:
diff changeset
752 {
Ritor1
parents:
diff changeset
753 DWORD dwSize; /* Size of this structure. */
Ritor1
parents:
diff changeset
754 HRESULT hr;
Ritor1
parents:
diff changeset
755 ULONG ulLineNumber;
Ritor1
parents:
diff changeset
756 LONG ichCharPosition;
Ritor1
parents:
diff changeset
757 WCHAR wszSourceFile[DMUS_MAX_FILENAME];
Ritor1
parents:
diff changeset
758 WCHAR wszSourceComponent[DMUS_MAX_FILENAME];
Ritor1
parents:
diff changeset
759 WCHAR wszDescription[DMUS_MAX_FILENAME];
Ritor1
parents:
diff changeset
760 WCHAR wszSourceLineText[DMUS_MAX_FILENAME];
Ritor1
parents:
diff changeset
761 } DMUS_SCRIPT_ERRORINFO;
Ritor1
parents:
diff changeset
762
Ritor1
parents:
diff changeset
763 /* Track configuration flags, used with IDirectMusicSegment8::SetTrackConfig() */
Ritor1
parents:
diff changeset
764
Ritor1
parents:
diff changeset
765 #define DMUS_TRACKCONFIG_OVERRIDE_ALL 1 /* This track should get parameters from this segment before controlling and primary tracks. */
Ritor1
parents:
diff changeset
766 #define DMUS_TRACKCONFIG_OVERRIDE_PRIMARY 2 /* This track should get parameters from this segment before the primary segment tracks. */
Ritor1
parents:
diff changeset
767 #define DMUS_TRACKCONFIG_FALLBACK 4 /* This track should get parameters from this segment if the primary and controlling segments don't succeed. */
Ritor1
parents:
diff changeset
768 #define DMUS_TRACKCONFIG_CONTROL_ENABLED 8 /* GetParam() enabled for this track. */
Ritor1
parents:
diff changeset
769 #define DMUS_TRACKCONFIG_PLAY_ENABLED 0x10 /* Play() enabled for this track. */
Ritor1
parents:
diff changeset
770 #define DMUS_TRACKCONFIG_NOTIFICATION_ENABLED 0x20 /* Notifications enabled for this track. */
Ritor1
parents:
diff changeset
771 #define DMUS_TRACKCONFIG_PLAY_CLOCKTIME 0x40 /* This track plays in Timer time, not music time. */
Ritor1
parents:
diff changeset
772 #define DMUS_TRACKCONFIG_PLAY_COMPOSE 0x80 /* This track should regenerate data each time it starts playing. */
Ritor1
parents:
diff changeset
773 #define DMUS_TRACKCONFIG_LOOP_COMPOSE 0x100 /* This track should regenerate data each time it repeats. */
Ritor1
parents:
diff changeset
774 #define DMUS_TRACKCONFIG_COMPOSING 0x200 /* This track is used to compose other tracks. */
Ritor1
parents:
diff changeset
775 #define DMUS_TRACKCONFIG_CONTROL_PLAY 0x10000 /* This track, when played in a controlling segment, overrides playback of primary segment tracks. */
Ritor1
parents:
diff changeset
776 #define DMUS_TRACKCONFIG_CONTROL_NOTIFICATION 0x20000 /* This track, when played in a controlling segment, overrides notification of primary segment tracks. */
Ritor1
parents:
diff changeset
777 /* Additional track config flags for composing transitions */
Ritor1
parents:
diff changeset
778 #define DMUS_TRACKCONFIG_TRANS1_FROMSEGSTART 0x400 /* Get track info from start of From segment */
Ritor1
parents:
diff changeset
779 #define DMUS_TRACKCONFIG_TRANS1_FROMSEGCURRENT 0x800 /* Get track info from current place in From segment */
Ritor1
parents:
diff changeset
780 #define DMUS_TRACKCONFIG_TRANS1_TOSEGSTART 0x1000 /* Get track info from start of To segment */
Ritor1
parents:
diff changeset
781 #define DMUS_TRACKCONFIG_DEFAULT (DMUS_TRACKCONFIG_CONTROL_ENABLED | DMUS_TRACKCONFIG_PLAY_ENABLED | DMUS_TRACKCONFIG_NOTIFICATION_ENABLED)
Ritor1
parents:
diff changeset
782
Ritor1
parents:
diff changeset
783 /* Get/SetParam structs for commands */
Ritor1
parents:
diff changeset
784 /* PARAM structures, used by GetParam() and SetParam() */
Ritor1
parents:
diff changeset
785 typedef struct _DMUS_COMMAND_PARAM
Ritor1
parents:
diff changeset
786 {
Ritor1
parents:
diff changeset
787 BYTE bCommand;
Ritor1
parents:
diff changeset
788 BYTE bGrooveLevel;
Ritor1
parents:
diff changeset
789 BYTE bGrooveRange;
Ritor1
parents:
diff changeset
790 BYTE bRepeatMode;
Ritor1
parents:
diff changeset
791 } DMUS_COMMAND_PARAM;
Ritor1
parents:
diff changeset
792
Ritor1
parents:
diff changeset
793 typedef struct _DMUS_COMMAND_PARAM_2
Ritor1
parents:
diff changeset
794 {
Ritor1
parents:
diff changeset
795 MUSIC_TIME mtTime;
Ritor1
parents:
diff changeset
796 BYTE bCommand;
Ritor1
parents:
diff changeset
797 BYTE bGrooveLevel;
Ritor1
parents:
diff changeset
798 BYTE bGrooveRange;
Ritor1
parents:
diff changeset
799 BYTE bRepeatMode;
Ritor1
parents:
diff changeset
800 } DMUS_COMMAND_PARAM_2;
Ritor1
parents:
diff changeset
801
Ritor1
parents:
diff changeset
802 typedef IDirectMusicObject __RPC_FAR *LPDMUS_OBJECT;
Ritor1
parents:
diff changeset
803 typedef IDirectMusicLoader __RPC_FAR *LPDMUS_LOADER;
Ritor1
parents:
diff changeset
804 typedef IDirectMusicBand __RPC_FAR *LPDMUS_BAND;
Ritor1
parents:
diff changeset
805
Ritor1
parents:
diff changeset
806 #define DMUSB_LOADED (1 << 0) /* Set when band has been loaded */
Ritor1
parents:
diff changeset
807 #define DMUSB_DEFAULT (1 << 1) /* Set when band is default band for a style */
Ritor1
parents:
diff changeset
808
Ritor1
parents:
diff changeset
809 /*////////////////////////////////////////////////////////////////////
Ritor1
parents:
diff changeset
810 // IDirectMusicBand */
Ritor1
parents:
diff changeset
811 #undef INTERFACE
Ritor1
parents:
diff changeset
812 #define INTERFACE IDirectMusicBand
Ritor1
parents:
diff changeset
813 DECLARE_INTERFACE_(IDirectMusicBand, IUnknown)
Ritor1
parents:
diff changeset
814 {
Ritor1
parents:
diff changeset
815 /* IUnknown */
Ritor1
parents:
diff changeset
816 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
817 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
818 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
819
Ritor1
parents:
diff changeset
820 /* IDirectMusicBand */
Ritor1
parents:
diff changeset
821 STDMETHOD(CreateSegment) (THIS_ IDirectMusicSegment** ppSegment) PURE;
Ritor1
parents:
diff changeset
822 STDMETHOD(Download) (THIS_ IDirectMusicPerformance* pPerformance) PURE;
Ritor1
parents:
diff changeset
823 STDMETHOD(Unload) (THIS_ IDirectMusicPerformance* pPerformance) PURE;
Ritor1
parents:
diff changeset
824 };
Ritor1
parents:
diff changeset
825
Ritor1
parents:
diff changeset
826 typedef IDirectMusicBand IDirectMusicBand8;
Ritor1
parents:
diff changeset
827
Ritor1
parents:
diff changeset
828 /*////////////////////////////////////////////////////////////////////
Ritor1
parents:
diff changeset
829 // IDirectMusicObject */
Ritor1
parents:
diff changeset
830 #undef INTERFACE
Ritor1
parents:
diff changeset
831 #define INTERFACE IDirectMusicObject
Ritor1
parents:
diff changeset
832 DECLARE_INTERFACE_(IDirectMusicObject, IUnknown)
Ritor1
parents:
diff changeset
833 {
Ritor1
parents:
diff changeset
834 /* IUnknown */
Ritor1
parents:
diff changeset
835 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
836 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
837 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
838
Ritor1
parents:
diff changeset
839 /* IDirectMusicObject */
Ritor1
parents:
diff changeset
840 STDMETHOD(GetDescriptor) (THIS_ LPDMUS_OBJECTDESC pDesc) PURE;
Ritor1
parents:
diff changeset
841 STDMETHOD(SetDescriptor) (THIS_ LPDMUS_OBJECTDESC pDesc) PURE;
Ritor1
parents:
diff changeset
842 STDMETHOD(ParseDescriptor) (THIS_ LPSTREAM pStream,
Ritor1
parents:
diff changeset
843 LPDMUS_OBJECTDESC pDesc) PURE;
Ritor1
parents:
diff changeset
844 };
Ritor1
parents:
diff changeset
845
Ritor1
parents:
diff changeset
846 typedef IDirectMusicObject IDirectMusicObject8;
Ritor1
parents:
diff changeset
847
Ritor1
parents:
diff changeset
848 /*////////////////////////////////////////////////////////////////////
Ritor1
parents:
diff changeset
849 // IDirectMusicLoader */
Ritor1
parents:
diff changeset
850 #undef INTERFACE
Ritor1
parents:
diff changeset
851 #define INTERFACE IDirectMusicLoader
Ritor1
parents:
diff changeset
852 DECLARE_INTERFACE_(IDirectMusicLoader, IUnknown)
Ritor1
parents:
diff changeset
853 {
Ritor1
parents:
diff changeset
854 /* IUnknown */
Ritor1
parents:
diff changeset
855 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
856 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
857 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
858
Ritor1
parents:
diff changeset
859 /* IDirectMusicLoader */
Ritor1
parents:
diff changeset
860 STDMETHOD(GetObject) (THIS_ LPDMUS_OBJECTDESC pDesc,
Ritor1
parents:
diff changeset
861 REFIID riid,
Ritor1
parents:
diff changeset
862 LPVOID FAR *ppv) PURE;
Ritor1
parents:
diff changeset
863 STDMETHOD(SetObject) (THIS_ LPDMUS_OBJECTDESC pDesc) PURE;
Ritor1
parents:
diff changeset
864 STDMETHOD(SetSearchDirectory) (THIS_ REFGUID rguidClass,
Ritor1
parents:
diff changeset
865 WCHAR *pwzPath,
Ritor1
parents:
diff changeset
866 BOOL fClear) PURE;
Ritor1
parents:
diff changeset
867 STDMETHOD(ScanDirectory) (THIS_ REFGUID rguidClass,
Ritor1
parents:
diff changeset
868 WCHAR *pwzFileExtension,
Ritor1
parents:
diff changeset
869 WCHAR *pwzScanFileName) PURE;
Ritor1
parents:
diff changeset
870 STDMETHOD(CacheObject) (THIS_ IDirectMusicObject * pObject) PURE;
Ritor1
parents:
diff changeset
871 STDMETHOD(ReleaseObject) (THIS_ IDirectMusicObject * pObject) PURE;
Ritor1
parents:
diff changeset
872 STDMETHOD(ClearCache) (THIS_ REFGUID rguidClass) PURE;
Ritor1
parents:
diff changeset
873 STDMETHOD(EnableCache) (THIS_ REFGUID rguidClass,
Ritor1
parents:
diff changeset
874 BOOL fEnable) PURE;
Ritor1
parents:
diff changeset
875 STDMETHOD(EnumObject) (THIS_ REFGUID rguidClass,
Ritor1
parents:
diff changeset
876 DWORD dwIndex,
Ritor1
parents:
diff changeset
877 LPDMUS_OBJECTDESC pDesc) PURE;
Ritor1
parents:
diff changeset
878 };
Ritor1
parents:
diff changeset
879
Ritor1
parents:
diff changeset
880 /*////////////////////////////////////////////////////////////////////
Ritor1
parents:
diff changeset
881 // IDirectMusicLoader8 */
Ritor1
parents:
diff changeset
882 #undef INTERFACE
Ritor1
parents:
diff changeset
883 #define INTERFACE IDirectMusicLoader8
Ritor1
parents:
diff changeset
884 DECLARE_INTERFACE_(IDirectMusicLoader8, IDirectMusicLoader)
Ritor1
parents:
diff changeset
885 {
Ritor1
parents:
diff changeset
886 /* IUnknown */
Ritor1
parents:
diff changeset
887 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
888 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
889 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
890
Ritor1
parents:
diff changeset
891 /* IDirectMusicLoader */
Ritor1
parents:
diff changeset
892 STDMETHOD(GetObject) (THIS_ LPDMUS_OBJECTDESC pDesc,
Ritor1
parents:
diff changeset
893 REFIID riid,
Ritor1
parents:
diff changeset
894 LPVOID FAR *ppv) PURE;
Ritor1
parents:
diff changeset
895 STDMETHOD(SetObject) (THIS_ LPDMUS_OBJECTDESC pDesc) PURE;
Ritor1
parents:
diff changeset
896 STDMETHOD(SetSearchDirectory) (THIS_ REFGUID rguidClass,
Ritor1
parents:
diff changeset
897 WCHAR *pwzPath,
Ritor1
parents:
diff changeset
898 BOOL fClear) PURE;
Ritor1
parents:
diff changeset
899 STDMETHOD(ScanDirectory) (THIS_ REFGUID rguidClass,
Ritor1
parents:
diff changeset
900 WCHAR *pwzFileExtension,
Ritor1
parents:
diff changeset
901 WCHAR *pwzScanFileName) PURE;
Ritor1
parents:
diff changeset
902 STDMETHOD(CacheObject) (THIS_ IDirectMusicObject * pObject) PURE;
Ritor1
parents:
diff changeset
903 STDMETHOD(ReleaseObject) (THIS_ IDirectMusicObject * pObject) PURE;
Ritor1
parents:
diff changeset
904 STDMETHOD(ClearCache) (THIS_ REFGUID rguidClass) PURE;
Ritor1
parents:
diff changeset
905 STDMETHOD(EnableCache) (THIS_ REFGUID rguidClass,
Ritor1
parents:
diff changeset
906 BOOL fEnable) PURE;
Ritor1
parents:
diff changeset
907 STDMETHOD(EnumObject) (THIS_ REFGUID rguidClass,
Ritor1
parents:
diff changeset
908 DWORD dwIndex,
Ritor1
parents:
diff changeset
909 LPDMUS_OBJECTDESC pDesc) PURE;
Ritor1
parents:
diff changeset
910
Ritor1
parents:
diff changeset
911 /* IDirectMusicLoader8 */
Ritor1
parents:
diff changeset
912 STDMETHOD_(void, CollectGarbage) (THIS) PURE;
Ritor1
parents:
diff changeset
913 STDMETHOD(ReleaseObjectByUnknown) (THIS_ IUnknown *pObject) PURE;
Ritor1
parents:
diff changeset
914 STDMETHOD(LoadObjectFromFile) (THIS_ REFGUID rguidClassID,
Ritor1
parents:
diff changeset
915 REFIID iidInterfaceID,
Ritor1
parents:
diff changeset
916 WCHAR *pwzFilePath,
Ritor1
parents:
diff changeset
917 void ** ppObject) PURE;
Ritor1
parents:
diff changeset
918 };
Ritor1
parents:
diff changeset
919
Ritor1
parents:
diff changeset
920 /* Stream object supports IDirectMusicGetLoader interface to access loader while file parsing. */
Ritor1
parents:
diff changeset
921
Ritor1
parents:
diff changeset
922 #undef INTERFACE
Ritor1
parents:
diff changeset
923 #define INTERFACE IDirectMusicGetLoader
Ritor1
parents:
diff changeset
924 DECLARE_INTERFACE_(IDirectMusicGetLoader, IUnknown)
Ritor1
parents:
diff changeset
925 {
Ritor1
parents:
diff changeset
926 /* IUnknown */
Ritor1
parents:
diff changeset
927 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
928 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
929 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
930
Ritor1
parents:
diff changeset
931 /* IDirectMusicGetLoader */
Ritor1
parents:
diff changeset
932 STDMETHOD(GetLoader) (THIS_ IDirectMusicLoader ** ppLoader) PURE;
Ritor1
parents:
diff changeset
933 };
Ritor1
parents:
diff changeset
934
Ritor1
parents:
diff changeset
935 typedef IDirectMusicGetLoader IDirectMusicGetLoader8;
Ritor1
parents:
diff changeset
936
Ritor1
parents:
diff changeset
937 /*////////////////////////////////////////////////////////////////////
Ritor1
parents:
diff changeset
938 // IDirectMusicSegment */
Ritor1
parents:
diff changeset
939 #undef INTERFACE
Ritor1
parents:
diff changeset
940 #define INTERFACE IDirectMusicSegment
Ritor1
parents:
diff changeset
941 DECLARE_INTERFACE_(IDirectMusicSegment, IUnknown)
Ritor1
parents:
diff changeset
942 {
Ritor1
parents:
diff changeset
943 /* IUnknown */
Ritor1
parents:
diff changeset
944 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
945 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
946 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
947
Ritor1
parents:
diff changeset
948 /* IDirectMusicSegment */
Ritor1
parents:
diff changeset
949 STDMETHOD(GetLength) (THIS_ MUSIC_TIME* pmtLength) PURE;
Ritor1
parents:
diff changeset
950 STDMETHOD(SetLength) (THIS_ MUSIC_TIME mtLength) PURE;
Ritor1
parents:
diff changeset
951 STDMETHOD(GetRepeats) (THIS_ DWORD* pdwRepeats) PURE;
Ritor1
parents:
diff changeset
952 STDMETHOD(SetRepeats) (THIS_ DWORD dwRepeats) PURE;
Ritor1
parents:
diff changeset
953 STDMETHOD(GetDefaultResolution) (THIS_ DWORD* pdwResolution) PURE;
Ritor1
parents:
diff changeset
954 STDMETHOD(SetDefaultResolution) (THIS_ DWORD dwResolution) PURE;
Ritor1
parents:
diff changeset
955 STDMETHOD(GetTrack) (THIS_ REFGUID rguidType,
Ritor1
parents:
diff changeset
956 DWORD dwGroupBits,
Ritor1
parents:
diff changeset
957 DWORD dwIndex,
Ritor1
parents:
diff changeset
958 IDirectMusicTrack** ppTrack) PURE;
Ritor1
parents:
diff changeset
959 STDMETHOD(GetTrackGroup) (THIS_ IDirectMusicTrack* pTrack,
Ritor1
parents:
diff changeset
960 DWORD* pdwGroupBits) PURE;
Ritor1
parents:
diff changeset
961 STDMETHOD(InsertTrack) (THIS_ IDirectMusicTrack* pTrack,
Ritor1
parents:
diff changeset
962 DWORD dwGroupBits) PURE;
Ritor1
parents:
diff changeset
963 STDMETHOD(RemoveTrack) (THIS_ IDirectMusicTrack* pTrack) PURE;
Ritor1
parents:
diff changeset
964 STDMETHOD(InitPlay) (THIS_ IDirectMusicSegmentState** ppSegState,
Ritor1
parents:
diff changeset
965 IDirectMusicPerformance* pPerformance,
Ritor1
parents:
diff changeset
966 DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
967 STDMETHOD(GetGraph) (THIS_ IDirectMusicGraph** ppGraph) PURE;
Ritor1
parents:
diff changeset
968 STDMETHOD(SetGraph) (THIS_ IDirectMusicGraph* pGraph) PURE;
Ritor1
parents:
diff changeset
969 STDMETHOD(AddNotificationType) (THIS_ REFGUID rguidNotificationType) PURE;
Ritor1
parents:
diff changeset
970 STDMETHOD(RemoveNotificationType) (THIS_ REFGUID rguidNotificationType) PURE;
Ritor1
parents:
diff changeset
971 STDMETHOD(GetParam) (THIS_ REFGUID rguidType,
Ritor1
parents:
diff changeset
972 DWORD dwGroupBits,
Ritor1
parents:
diff changeset
973 DWORD dwIndex,
Ritor1
parents:
diff changeset
974 MUSIC_TIME mtTime,
Ritor1
parents:
diff changeset
975 MUSIC_TIME* pmtNext,
Ritor1
parents:
diff changeset
976 void* pParam) PURE;
Ritor1
parents:
diff changeset
977 STDMETHOD(SetParam) (THIS_ REFGUID rguidType,
Ritor1
parents:
diff changeset
978 DWORD dwGroupBits,
Ritor1
parents:
diff changeset
979 DWORD dwIndex,
Ritor1
parents:
diff changeset
980 MUSIC_TIME mtTime,
Ritor1
parents:
diff changeset
981 void* pParam) PURE;
Ritor1
parents:
diff changeset
982 STDMETHOD(Clone) (THIS_ MUSIC_TIME mtStart,
Ritor1
parents:
diff changeset
983 MUSIC_TIME mtEnd,
Ritor1
parents:
diff changeset
984 IDirectMusicSegment** ppSegment) PURE;
Ritor1
parents:
diff changeset
985 STDMETHOD(SetStartPoint) (THIS_ MUSIC_TIME mtStart) PURE;
Ritor1
parents:
diff changeset
986 STDMETHOD(GetStartPoint) (THIS_ MUSIC_TIME* pmtStart) PURE;
Ritor1
parents:
diff changeset
987 STDMETHOD(SetLoopPoints) (THIS_ MUSIC_TIME mtStart,
Ritor1
parents:
diff changeset
988 MUSIC_TIME mtEnd) PURE;
Ritor1
parents:
diff changeset
989 STDMETHOD(GetLoopPoints) (THIS_ MUSIC_TIME* pmtStart,
Ritor1
parents:
diff changeset
990 MUSIC_TIME* pmtEnd) PURE;
Ritor1
parents:
diff changeset
991 STDMETHOD(SetPChannelsUsed) (THIS_ DWORD dwNumPChannels,
Ritor1
parents:
diff changeset
992 DWORD* paPChannels) PURE;
Ritor1
parents:
diff changeset
993 };
Ritor1
parents:
diff changeset
994
Ritor1
parents:
diff changeset
995 /*////////////////////////////////////////////////////////////////////
Ritor1
parents:
diff changeset
996 // IDirectMusicSegment8 */
Ritor1
parents:
diff changeset
997 #undef INTERFACE
Ritor1
parents:
diff changeset
998 #define INTERFACE IDirectMusicSegment8
Ritor1
parents:
diff changeset
999 DECLARE_INTERFACE_(IDirectMusicSegment8, IDirectMusicSegment)
Ritor1
parents:
diff changeset
1000 {
Ritor1
parents:
diff changeset
1001 /* IUnknown */
Ritor1
parents:
diff changeset
1002 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
1003 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
1004 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
1005
Ritor1
parents:
diff changeset
1006 /* IDirectMusicSegment */
Ritor1
parents:
diff changeset
1007 STDMETHOD(GetLength) (THIS_ MUSIC_TIME* pmtLength) PURE;
Ritor1
parents:
diff changeset
1008 STDMETHOD(SetLength) (THIS_ MUSIC_TIME mtLength) PURE;
Ritor1
parents:
diff changeset
1009 STDMETHOD(GetRepeats) (THIS_ DWORD* pdwRepeats) PURE;
Ritor1
parents:
diff changeset
1010 STDMETHOD(SetRepeats) (THIS_ DWORD dwRepeats) PURE;
Ritor1
parents:
diff changeset
1011 STDMETHOD(GetDefaultResolution) (THIS_ DWORD* pdwResolution) PURE;
Ritor1
parents:
diff changeset
1012 STDMETHOD(SetDefaultResolution) (THIS_ DWORD dwResolution) PURE;
Ritor1
parents:
diff changeset
1013 STDMETHOD(GetTrack) (THIS_ REFGUID rguidType,
Ritor1
parents:
diff changeset
1014 DWORD dwGroupBits,
Ritor1
parents:
diff changeset
1015 DWORD dwIndex,
Ritor1
parents:
diff changeset
1016 IDirectMusicTrack** ppTrack) PURE;
Ritor1
parents:
diff changeset
1017 STDMETHOD(GetTrackGroup) (THIS_ IDirectMusicTrack* pTrack,
Ritor1
parents:
diff changeset
1018 DWORD* pdwGroupBits) PURE;
Ritor1
parents:
diff changeset
1019 STDMETHOD(InsertTrack) (THIS_ IDirectMusicTrack* pTrack,
Ritor1
parents:
diff changeset
1020 DWORD dwGroupBits) PURE;
Ritor1
parents:
diff changeset
1021 STDMETHOD(RemoveTrack) (THIS_ IDirectMusicTrack* pTrack) PURE;
Ritor1
parents:
diff changeset
1022 STDMETHOD(InitPlay) (THIS_ IDirectMusicSegmentState** ppSegState,
Ritor1
parents:
diff changeset
1023 IDirectMusicPerformance* pPerformance,
Ritor1
parents:
diff changeset
1024 DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
1025 STDMETHOD(GetGraph) (THIS_ IDirectMusicGraph** ppGraph) PURE;
Ritor1
parents:
diff changeset
1026 STDMETHOD(SetGraph) (THIS_ IDirectMusicGraph* pGraph) PURE;
Ritor1
parents:
diff changeset
1027 STDMETHOD(AddNotificationType) (THIS_ REFGUID rguidNotificationType) PURE;
Ritor1
parents:
diff changeset
1028 STDMETHOD(RemoveNotificationType) (THIS_ REFGUID rguidNotificationType) PURE;
Ritor1
parents:
diff changeset
1029 STDMETHOD(GetParam) (THIS_ REFGUID rguidType,
Ritor1
parents:
diff changeset
1030 DWORD dwGroupBits,
Ritor1
parents:
diff changeset
1031 DWORD dwIndex,
Ritor1
parents:
diff changeset
1032 MUSIC_TIME mtTime,
Ritor1
parents:
diff changeset
1033 MUSIC_TIME* pmtNext,
Ritor1
parents:
diff changeset
1034 void* pParam) PURE;
Ritor1
parents:
diff changeset
1035 STDMETHOD(SetParam) (THIS_ REFGUID rguidType,
Ritor1
parents:
diff changeset
1036 DWORD dwGroupBits,
Ritor1
parents:
diff changeset
1037 DWORD dwIndex,
Ritor1
parents:
diff changeset
1038 MUSIC_TIME mtTime,
Ritor1
parents:
diff changeset
1039 void* pParam) PURE;
Ritor1
parents:
diff changeset
1040 STDMETHOD(Clone) (THIS_ MUSIC_TIME mtStart,
Ritor1
parents:
diff changeset
1041 MUSIC_TIME mtEnd,
Ritor1
parents:
diff changeset
1042 IDirectMusicSegment** ppSegment) PURE;
Ritor1
parents:
diff changeset
1043 STDMETHOD(SetStartPoint) (THIS_ MUSIC_TIME mtStart) PURE;
Ritor1
parents:
diff changeset
1044 STDMETHOD(GetStartPoint) (THIS_ MUSIC_TIME* pmtStart) PURE;
Ritor1
parents:
diff changeset
1045 STDMETHOD(SetLoopPoints) (THIS_ MUSIC_TIME mtStart,
Ritor1
parents:
diff changeset
1046 MUSIC_TIME mtEnd) PURE;
Ritor1
parents:
diff changeset
1047 STDMETHOD(GetLoopPoints) (THIS_ MUSIC_TIME* pmtStart,
Ritor1
parents:
diff changeset
1048 MUSIC_TIME* pmtEnd) PURE;
Ritor1
parents:
diff changeset
1049 STDMETHOD(SetPChannelsUsed) (THIS_ DWORD dwNumPChannels,
Ritor1
parents:
diff changeset
1050 DWORD* paPChannels) PURE;
Ritor1
parents:
diff changeset
1051 /* IDirectMusicSegment8 */
Ritor1
parents:
diff changeset
1052 STDMETHOD(SetTrackConfig) (THIS_ REFGUID rguidTrackClassID, /* Class ID of the type of track on which to set the configuration flags. */
Ritor1
parents:
diff changeset
1053 DWORD dwGroupBits, /* Group bits. */
Ritor1
parents:
diff changeset
1054 DWORD dwIndex, /* Nth track (or DMUS_SEG_ALLTRACKS) that matches class id and group id. */
Ritor1
parents:
diff changeset
1055 DWORD dwFlagsOn, /* DMUS_TRACKCONFIG_ flags to enable. */
Ritor1
parents:
diff changeset
1056 DWORD dwFlagsOff) PURE; /* DMUS_TRACKCONFIG_ flags to disable. */
Ritor1
parents:
diff changeset
1057 STDMETHOD(GetAudioPathConfig) (THIS_ IUnknown ** ppAudioPathConfig) PURE;
Ritor1
parents:
diff changeset
1058 STDMETHOD(Compose) (THIS_ MUSIC_TIME mtTime,
Ritor1
parents:
diff changeset
1059 IDirectMusicSegment* pFromSegment,
Ritor1
parents:
diff changeset
1060 IDirectMusicSegment* pToSegment,
Ritor1
parents:
diff changeset
1061 IDirectMusicSegment** ppComposedSegment) PURE;
Ritor1
parents:
diff changeset
1062 STDMETHOD(Download) (THIS_ IUnknown *pAudioPath) PURE;
Ritor1
parents:
diff changeset
1063 STDMETHOD(Unload) (THIS_ IUnknown *pAudioPath) PURE;
Ritor1
parents:
diff changeset
1064 };
Ritor1
parents:
diff changeset
1065
Ritor1
parents:
diff changeset
1066 /*/////////////////////////////////////////////////////////////////////
Ritor1
parents:
diff changeset
1067 // IDirectMusicSegmentState */
Ritor1
parents:
diff changeset
1068 #undef INTERFACE
Ritor1
parents:
diff changeset
1069 #define INTERFACE IDirectMusicSegmentState
Ritor1
parents:
diff changeset
1070 DECLARE_INTERFACE_(IDirectMusicSegmentState, IUnknown)
Ritor1
parents:
diff changeset
1071 {
Ritor1
parents:
diff changeset
1072 /* IUnknown */
Ritor1
parents:
diff changeset
1073 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
1074 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
1075 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
1076
Ritor1
parents:
diff changeset
1077 /* IDirectMusicSegmentState */
Ritor1
parents:
diff changeset
1078 STDMETHOD(GetRepeats) (THIS_ DWORD* pdwRepeats) PURE;
Ritor1
parents:
diff changeset
1079 STDMETHOD(GetSegment ) (THIS_ IDirectMusicSegment** ppSegment) PURE;
Ritor1
parents:
diff changeset
1080 STDMETHOD(GetStartTime) (THIS_ MUSIC_TIME* pmtStart) PURE;
Ritor1
parents:
diff changeset
1081 STDMETHOD(GetSeek) (THIS_ MUSIC_TIME* pmtSeek) PURE;
Ritor1
parents:
diff changeset
1082 STDMETHOD(GetStartPoint) (THIS_ MUSIC_TIME* pmtStart) PURE;
Ritor1
parents:
diff changeset
1083 };
Ritor1
parents:
diff changeset
1084
Ritor1
parents:
diff changeset
1085 /*/////////////////////////////////////////////////////////////////////
Ritor1
parents:
diff changeset
1086 // IDirectMusicSegmentState8 */
Ritor1
parents:
diff changeset
1087 #undef INTERFACE
Ritor1
parents:
diff changeset
1088 #define INTERFACE IDirectMusicSegmentState8
Ritor1
parents:
diff changeset
1089 DECLARE_INTERFACE_(IDirectMusicSegmentState8, IDirectMusicSegmentState)
Ritor1
parents:
diff changeset
1090 {
Ritor1
parents:
diff changeset
1091 /* IUnknown */
Ritor1
parents:
diff changeset
1092 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
1093 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
1094 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
1095
Ritor1
parents:
diff changeset
1096 /* IDirectMusicSegmentState */
Ritor1
parents:
diff changeset
1097 STDMETHOD(GetRepeats) (THIS_ DWORD* pdwRepeats) PURE;
Ritor1
parents:
diff changeset
1098 STDMETHOD(GetSegment ) (THIS_ IDirectMusicSegment** ppSegment) PURE;
Ritor1
parents:
diff changeset
1099 STDMETHOD(GetStartTime) (THIS_ MUSIC_TIME* pmtStart) PURE;
Ritor1
parents:
diff changeset
1100 STDMETHOD(GetSeek) (THIS_ MUSIC_TIME* pmtSeek) PURE;
Ritor1
parents:
diff changeset
1101 STDMETHOD(GetStartPoint) (THIS_ MUSIC_TIME* pmtStart) PURE;
Ritor1
parents:
diff changeset
1102
Ritor1
parents:
diff changeset
1103 /* IDirectMusicSegmentState8 */
Ritor1
parents:
diff changeset
1104 STDMETHOD(SetTrackConfig) (THIS_ REFGUID rguidTrackClassID, /* Class ID of the type of track on which to set the configuration flags. */
Ritor1
parents:
diff changeset
1105 DWORD dwGroupBits, /* Group bits. */
Ritor1
parents:
diff changeset
1106 DWORD dwIndex, /* Nth track (or DMUS_SEG_ALLTRACKS) that matches class id and group id. */
Ritor1
parents:
diff changeset
1107 DWORD dwFlagsOn, /* DMUS_TRACKCONFIG_ flags to enable. */
Ritor1
parents:
diff changeset
1108 DWORD dwFlagsOff) PURE; /* DMUS_TRACKCONFIG_ flags to disable. */
Ritor1
parents:
diff changeset
1109 STDMETHOD(GetObjectInPath) (THIS_ DWORD dwPChannel, /* PChannel to search. */
Ritor1
parents:
diff changeset
1110 DWORD dwStage, /* Which stage in the path. */
Ritor1
parents:
diff changeset
1111 DWORD dwBuffer, /* Which buffer to address, if more than one. */
Ritor1
parents:
diff changeset
1112 REFGUID guidObject, /* ClassID of object. */
Ritor1
parents:
diff changeset
1113 DWORD dwIndex, /* Which object of that class. */
Ritor1
parents:
diff changeset
1114 REFGUID iidInterface,/* Requested COM interface. */
Ritor1
parents:
diff changeset
1115 void ** ppObject) PURE; /* Pointer to interface. */
Ritor1
parents:
diff changeset
1116 };
Ritor1
parents:
diff changeset
1117
Ritor1
parents:
diff changeset
1118 /*////////////////////////////////////////////////////////////////////
Ritor1
parents:
diff changeset
1119 // IDirectMusicAudioPath */
Ritor1
parents:
diff changeset
1120 #undef INTERFACE
Ritor1
parents:
diff changeset
1121 #define INTERFACE IDirectMusicAudioPath
Ritor1
parents:
diff changeset
1122 DECLARE_INTERFACE_(IDirectMusicAudioPath, IUnknown)
Ritor1
parents:
diff changeset
1123 {
Ritor1
parents:
diff changeset
1124 /* IUnknown */
Ritor1
parents:
diff changeset
1125 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
1126 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
1127 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
1128
Ritor1
parents:
diff changeset
1129 /* IDirectMusicAudioPath */
Ritor1
parents:
diff changeset
1130 STDMETHOD(GetObjectInPath) (THIS_ DWORD dwPChannel, /* PChannel to search. */
Ritor1
parents:
diff changeset
1131 DWORD dwStage, /* Which stage in the path. */
Ritor1
parents:
diff changeset
1132 DWORD dwBuffer, /* Which buffer to address, if more than one. */
Ritor1
parents:
diff changeset
1133 REFGUID guidObject, /* ClassID of object. */
Ritor1
parents:
diff changeset
1134 DWORD dwIndex, /* Which object of that class. */
Ritor1
parents:
diff changeset
1135 REFGUID iidInterface,/* Requested COM interface. */
Ritor1
parents:
diff changeset
1136 void ** ppObject) PURE; /* Pointer to interface. */
Ritor1
parents:
diff changeset
1137 STDMETHOD(Activate) (THIS_ BOOL fActivate) PURE;/* True to activate, False to deactivate. */
Ritor1
parents:
diff changeset
1138 STDMETHOD(SetVolume) (THIS_ long lVolume, /* Gain, in 100ths of a dB. This must be negative (0 represents full volume.) */
Ritor1
parents:
diff changeset
1139 DWORD dwDuration) PURE;/* Duration of volume ramp in milliseconds. Note that 0 is more efficient. */
Ritor1
parents:
diff changeset
1140 STDMETHOD(ConvertPChannel) (THIS_ DWORD dwPChannelIn, /* Pchannel of source. */
Ritor1
parents:
diff changeset
1141 DWORD *pdwPChannelOut) PURE; /* Equivalent pchannel on performance. */
Ritor1
parents:
diff changeset
1142 };
Ritor1
parents:
diff changeset
1143
Ritor1
parents:
diff changeset
1144 typedef IDirectMusicAudioPath IDirectMusicAudioPath8;
Ritor1
parents:
diff changeset
1145
Ritor1
parents:
diff changeset
1146 /*////////////////////////////////////////////////////////////////////
Ritor1
parents:
diff changeset
1147 // IDirectMusicPerformance */
Ritor1
parents:
diff changeset
1148 #undef INTERFACE
Ritor1
parents:
diff changeset
1149 #define INTERFACE IDirectMusicPerformance
Ritor1
parents:
diff changeset
1150 DECLARE_INTERFACE_(IDirectMusicPerformance, IUnknown)
Ritor1
parents:
diff changeset
1151 {
Ritor1
parents:
diff changeset
1152 /* IUnknown */
Ritor1
parents:
diff changeset
1153 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
1154 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
1155 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
1156
Ritor1
parents:
diff changeset
1157 /* IDirectMusicPerformance */
Ritor1
parents:
diff changeset
1158 STDMETHOD(Init) (THIS_ IDirectMusic** ppDirectMusic,
Ritor1
parents:
diff changeset
1159 LPDIRECTSOUND pDirectSound,
Ritor1
parents:
diff changeset
1160 HWND hWnd) PURE;
Ritor1
parents:
diff changeset
1161 STDMETHOD(PlaySegment) (THIS_ IDirectMusicSegment* pSegment,
Ritor1
parents:
diff changeset
1162 DWORD dwFlags,
Ritor1
parents:
diff changeset
1163 __int64 i64StartTime,
Ritor1
parents:
diff changeset
1164 IDirectMusicSegmentState** ppSegmentState) PURE;
Ritor1
parents:
diff changeset
1165 STDMETHOD(Stop) (THIS_ IDirectMusicSegment* pSegment,
Ritor1
parents:
diff changeset
1166 IDirectMusicSegmentState* pSegmentState,
Ritor1
parents:
diff changeset
1167 MUSIC_TIME mtTime,
Ritor1
parents:
diff changeset
1168 DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
1169 STDMETHOD(GetSegmentState) (THIS_ IDirectMusicSegmentState** ppSegmentState,
Ritor1
parents:
diff changeset
1170 MUSIC_TIME mtTime) PURE;
Ritor1
parents:
diff changeset
1171 STDMETHOD(SetPrepareTime) (THIS_ DWORD dwMilliSeconds) PURE;
Ritor1
parents:
diff changeset
1172 STDMETHOD(GetPrepareTime) (THIS_ DWORD* pdwMilliSeconds) PURE;
Ritor1
parents:
diff changeset
1173 STDMETHOD(SetBumperLength) (THIS_ DWORD dwMilliSeconds) PURE;
Ritor1
parents:
diff changeset
1174 STDMETHOD(GetBumperLength) (THIS_ DWORD* pdwMilliSeconds) PURE;
Ritor1
parents:
diff changeset
1175 STDMETHOD(SendPMsg) (THIS_ DMUS_PMSG* pPMSG) PURE;
Ritor1
parents:
diff changeset
1176 STDMETHOD(MusicToReferenceTime) (THIS_ MUSIC_TIME mtTime,
Ritor1
parents:
diff changeset
1177 REFERENCE_TIME* prtTime) PURE;
Ritor1
parents:
diff changeset
1178 STDMETHOD(ReferenceToMusicTime) (THIS_ REFERENCE_TIME rtTime,
Ritor1
parents:
diff changeset
1179 MUSIC_TIME* pmtTime) PURE;
Ritor1
parents:
diff changeset
1180 STDMETHOD(IsPlaying) (THIS_ IDirectMusicSegment* pSegment,
Ritor1
parents:
diff changeset
1181 IDirectMusicSegmentState* pSegState) PURE;
Ritor1
parents:
diff changeset
1182 STDMETHOD(GetTime) (THIS_ REFERENCE_TIME* prtNow,
Ritor1
parents:
diff changeset
1183 MUSIC_TIME* pmtNow) PURE;
Ritor1
parents:
diff changeset
1184 STDMETHOD(AllocPMsg) (THIS_ ULONG cb,
Ritor1
parents:
diff changeset
1185 DMUS_PMSG** ppPMSG) PURE;
Ritor1
parents:
diff changeset
1186 STDMETHOD(FreePMsg) (THIS_ DMUS_PMSG* pPMSG) PURE;
Ritor1
parents:
diff changeset
1187 STDMETHOD(GetGraph) (THIS_ IDirectMusicGraph** ppGraph) PURE;
Ritor1
parents:
diff changeset
1188 STDMETHOD(SetGraph) (THIS_ IDirectMusicGraph* pGraph) PURE;
Ritor1
parents:
diff changeset
1189 STDMETHOD(SetNotificationHandle)(THIS_ HANDLE hNotification,
Ritor1
parents:
diff changeset
1190 REFERENCE_TIME rtMinimum) PURE;
Ritor1
parents:
diff changeset
1191 STDMETHOD(GetNotificationPMsg) (THIS_ DMUS_NOTIFICATION_PMSG** ppNotificationPMsg) PURE;
Ritor1
parents:
diff changeset
1192 STDMETHOD(AddNotificationType) (THIS_ REFGUID rguidNotificationType) PURE;
Ritor1
parents:
diff changeset
1193 STDMETHOD(RemoveNotificationType)(THIS_ REFGUID rguidNotificationType) PURE;
Ritor1
parents:
diff changeset
1194 STDMETHOD(AddPort) (THIS_ IDirectMusicPort* pPort) PURE;
Ritor1
parents:
diff changeset
1195 STDMETHOD(RemovePort) (THIS_ IDirectMusicPort* pPort ) PURE;
Ritor1
parents:
diff changeset
1196 STDMETHOD(AssignPChannelBlock) (THIS_ DWORD dwBlockNum,
Ritor1
parents:
diff changeset
1197 IDirectMusicPort* pPort,
Ritor1
parents:
diff changeset
1198 DWORD dwGroup ) PURE;
Ritor1
parents:
diff changeset
1199 STDMETHOD(AssignPChannel) (THIS_ DWORD dwPChannel,
Ritor1
parents:
diff changeset
1200 IDirectMusicPort* pPort,
Ritor1
parents:
diff changeset
1201 DWORD dwGroup,
Ritor1
parents:
diff changeset
1202 DWORD dwMChannel ) PURE;
Ritor1
parents:
diff changeset
1203 STDMETHOD(PChannelInfo) (THIS_ DWORD dwPChannel,
Ritor1
parents:
diff changeset
1204 IDirectMusicPort** ppPort,
Ritor1
parents:
diff changeset
1205 DWORD* pdwGroup,
Ritor1
parents:
diff changeset
1206 DWORD* pdwMChannel ) PURE;
Ritor1
parents:
diff changeset
1207 STDMETHOD(DownloadInstrument) (THIS_ IDirectMusicInstrument* pInst,
Ritor1
parents:
diff changeset
1208 DWORD dwPChannel,
Ritor1
parents:
diff changeset
1209 IDirectMusicDownloadedInstrument** ppDownInst,
Ritor1
parents:
diff changeset
1210 DMUS_NOTERANGE* pNoteRanges,
Ritor1
parents:
diff changeset
1211 DWORD dwNumNoteRanges,
Ritor1
parents:
diff changeset
1212 IDirectMusicPort** ppPort,
Ritor1
parents:
diff changeset
1213 DWORD* pdwGroup,
Ritor1
parents:
diff changeset
1214 DWORD* pdwMChannel ) PURE;
Ritor1
parents:
diff changeset
1215 STDMETHOD(Invalidate) (THIS_ MUSIC_TIME mtTime,
Ritor1
parents:
diff changeset
1216 DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
1217 STDMETHOD(GetParam) (THIS_ REFGUID rguidType,
Ritor1
parents:
diff changeset
1218 DWORD dwGroupBits,
Ritor1
parents:
diff changeset
1219 DWORD dwIndex,
Ritor1
parents:
diff changeset
1220 MUSIC_TIME mtTime,
Ritor1
parents:
diff changeset
1221 MUSIC_TIME* pmtNext,
Ritor1
parents:
diff changeset
1222 void* pParam) PURE;
Ritor1
parents:
diff changeset
1223 STDMETHOD(SetParam) (THIS_ REFGUID rguidType,
Ritor1
parents:
diff changeset
1224 DWORD dwGroupBits,
Ritor1
parents:
diff changeset
1225 DWORD dwIndex,
Ritor1
parents:
diff changeset
1226 MUSIC_TIME mtTime,
Ritor1
parents:
diff changeset
1227 void* pParam) PURE;
Ritor1
parents:
diff changeset
1228 STDMETHOD(GetGlobalParam) (THIS_ REFGUID rguidType,
Ritor1
parents:
diff changeset
1229 void* pParam,
Ritor1
parents:
diff changeset
1230 DWORD dwSize) PURE;
Ritor1
parents:
diff changeset
1231 STDMETHOD(SetGlobalParam) (THIS_ REFGUID rguidType,
Ritor1
parents:
diff changeset
1232 void* pParam,
Ritor1
parents:
diff changeset
1233 DWORD dwSize) PURE;
Ritor1
parents:
diff changeset
1234 STDMETHOD(GetLatencyTime) (THIS_ REFERENCE_TIME* prtTime) PURE;
Ritor1
parents:
diff changeset
1235 STDMETHOD(GetQueueTime) (THIS_ REFERENCE_TIME* prtTime) PURE;
Ritor1
parents:
diff changeset
1236 STDMETHOD(AdjustTime) (THIS_ REFERENCE_TIME rtAmount) PURE;
Ritor1
parents:
diff changeset
1237 STDMETHOD(CloseDown) (THIS) PURE;
Ritor1
parents:
diff changeset
1238 STDMETHOD(GetResolvedTime) (THIS_ REFERENCE_TIME rtTime,
Ritor1
parents:
diff changeset
1239 REFERENCE_TIME* prtResolved,
Ritor1
parents:
diff changeset
1240 DWORD dwTimeResolveFlags) PURE;
Ritor1
parents:
diff changeset
1241 STDMETHOD(MIDIToMusic) (THIS_ BYTE bMIDIValue,
Ritor1
parents:
diff changeset
1242 DMUS_CHORD_KEY* pChord,
Ritor1
parents:
diff changeset
1243 BYTE bPlayMode,
Ritor1
parents:
diff changeset
1244 BYTE bChordLevel,
Ritor1
parents:
diff changeset
1245 WORD *pwMusicValue) PURE;
Ritor1
parents:
diff changeset
1246 STDMETHOD(MusicToMIDI) (THIS_ WORD wMusicValue,
Ritor1
parents:
diff changeset
1247 DMUS_CHORD_KEY* pChord,
Ritor1
parents:
diff changeset
1248 BYTE bPlayMode,
Ritor1
parents:
diff changeset
1249 BYTE bChordLevel,
Ritor1
parents:
diff changeset
1250 BYTE *pbMIDIValue) PURE;
Ritor1
parents:
diff changeset
1251 STDMETHOD(TimeToRhythm) (THIS_ MUSIC_TIME mtTime,
Ritor1
parents:
diff changeset
1252 DMUS_TIMESIGNATURE *pTimeSig,
Ritor1
parents:
diff changeset
1253 WORD *pwMeasure,
Ritor1
parents:
diff changeset
1254 BYTE *pbBeat,
Ritor1
parents:
diff changeset
1255 BYTE *pbGrid,
Ritor1
parents:
diff changeset
1256 short *pnOffset) PURE;
Ritor1
parents:
diff changeset
1257 STDMETHOD(RhythmToTime) (THIS_ WORD wMeasure,
Ritor1
parents:
diff changeset
1258 BYTE bBeat,
Ritor1
parents:
diff changeset
1259 BYTE bGrid,
Ritor1
parents:
diff changeset
1260 short nOffset,
Ritor1
parents:
diff changeset
1261 DMUS_TIMESIGNATURE *pTimeSig,
Ritor1
parents:
diff changeset
1262 MUSIC_TIME *pmtTime) PURE;
Ritor1
parents:
diff changeset
1263 };
Ritor1
parents:
diff changeset
1264
Ritor1
parents:
diff changeset
1265 /*////////////////////////////////////////////////////////////////////
Ritor1
parents:
diff changeset
1266 // IDirectMusicPerformance8 */
Ritor1
parents:
diff changeset
1267 #undef INTERFACE
Ritor1
parents:
diff changeset
1268 #define INTERFACE IDirectMusicPerformance8
Ritor1
parents:
diff changeset
1269 DECLARE_INTERFACE_(IDirectMusicPerformance8, IDirectMusicPerformance)
Ritor1
parents:
diff changeset
1270 {
Ritor1
parents:
diff changeset
1271 /* IUnknown */
Ritor1
parents:
diff changeset
1272 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
1273 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
1274 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
1275
Ritor1
parents:
diff changeset
1276 /* IDirectMusicPerformance */
Ritor1
parents:
diff changeset
1277 STDMETHOD(Init) (THIS_ IDirectMusic** ppDirectMusic,
Ritor1
parents:
diff changeset
1278 LPDIRECTSOUND pDirectSound,
Ritor1
parents:
diff changeset
1279 HWND hWnd) PURE;
Ritor1
parents:
diff changeset
1280 STDMETHOD(PlaySegment) (THIS_ IDirectMusicSegment* pSegment,
Ritor1
parents:
diff changeset
1281 DWORD dwFlags,
Ritor1
parents:
diff changeset
1282 __int64 i64StartTime,
Ritor1
parents:
diff changeset
1283 IDirectMusicSegmentState** ppSegmentState) PURE;
Ritor1
parents:
diff changeset
1284 STDMETHOD(Stop) (THIS_ IDirectMusicSegment* pSegment,
Ritor1
parents:
diff changeset
1285 IDirectMusicSegmentState* pSegmentState,
Ritor1
parents:
diff changeset
1286 MUSIC_TIME mtTime,
Ritor1
parents:
diff changeset
1287 DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
1288 STDMETHOD(GetSegmentState) (THIS_ IDirectMusicSegmentState** ppSegmentState,
Ritor1
parents:
diff changeset
1289 MUSIC_TIME mtTime) PURE;
Ritor1
parents:
diff changeset
1290 STDMETHOD(SetPrepareTime) (THIS_ DWORD dwMilliSeconds) PURE;
Ritor1
parents:
diff changeset
1291 STDMETHOD(GetPrepareTime) (THIS_ DWORD* pdwMilliSeconds) PURE;
Ritor1
parents:
diff changeset
1292 STDMETHOD(SetBumperLength) (THIS_ DWORD dwMilliSeconds) PURE;
Ritor1
parents:
diff changeset
1293 STDMETHOD(GetBumperLength) (THIS_ DWORD* pdwMilliSeconds) PURE;
Ritor1
parents:
diff changeset
1294 STDMETHOD(SendPMsg) (THIS_ DMUS_PMSG* pPMSG) PURE;
Ritor1
parents:
diff changeset
1295 STDMETHOD(MusicToReferenceTime) (THIS_ MUSIC_TIME mtTime,
Ritor1
parents:
diff changeset
1296 REFERENCE_TIME* prtTime) PURE;
Ritor1
parents:
diff changeset
1297 STDMETHOD(ReferenceToMusicTime) (THIS_ REFERENCE_TIME rtTime,
Ritor1
parents:
diff changeset
1298 MUSIC_TIME* pmtTime) PURE;
Ritor1
parents:
diff changeset
1299 STDMETHOD(IsPlaying) (THIS_ IDirectMusicSegment* pSegment,
Ritor1
parents:
diff changeset
1300 IDirectMusicSegmentState* pSegState) PURE;
Ritor1
parents:
diff changeset
1301 STDMETHOD(GetTime) (THIS_ REFERENCE_TIME* prtNow,
Ritor1
parents:
diff changeset
1302 MUSIC_TIME* pmtNow) PURE;
Ritor1
parents:
diff changeset
1303 STDMETHOD(AllocPMsg) (THIS_ ULONG cb,
Ritor1
parents:
diff changeset
1304 DMUS_PMSG** ppPMSG) PURE;
Ritor1
parents:
diff changeset
1305 STDMETHOD(FreePMsg) (THIS_ DMUS_PMSG* pPMSG) PURE;
Ritor1
parents:
diff changeset
1306 STDMETHOD(GetGraph) (THIS_ IDirectMusicGraph** ppGraph) PURE;
Ritor1
parents:
diff changeset
1307 STDMETHOD(SetGraph) (THIS_ IDirectMusicGraph* pGraph) PURE;
Ritor1
parents:
diff changeset
1308 STDMETHOD(SetNotificationHandle)(THIS_ HANDLE hNotification,
Ritor1
parents:
diff changeset
1309 REFERENCE_TIME rtMinimum) PURE;
Ritor1
parents:
diff changeset
1310 STDMETHOD(GetNotificationPMsg) (THIS_ DMUS_NOTIFICATION_PMSG** ppNotificationPMsg) PURE;
Ritor1
parents:
diff changeset
1311 STDMETHOD(AddNotificationType) (THIS_ REFGUID rguidNotificationType) PURE;
Ritor1
parents:
diff changeset
1312 STDMETHOD(RemoveNotificationType)(THIS_ REFGUID rguidNotificationType) PURE;
Ritor1
parents:
diff changeset
1313 STDMETHOD(AddPort) (THIS_ IDirectMusicPort* pPort) PURE;
Ritor1
parents:
diff changeset
1314 STDMETHOD(RemovePort) (THIS_ IDirectMusicPort* pPort ) PURE;
Ritor1
parents:
diff changeset
1315 STDMETHOD(AssignPChannelBlock) (THIS_ DWORD dwBlockNum,
Ritor1
parents:
diff changeset
1316 IDirectMusicPort* pPort,
Ritor1
parents:
diff changeset
1317 DWORD dwGroup ) PURE;
Ritor1
parents:
diff changeset
1318 STDMETHOD(AssignPChannel) (THIS_ DWORD dwPChannel,
Ritor1
parents:
diff changeset
1319 IDirectMusicPort* pPort,
Ritor1
parents:
diff changeset
1320 DWORD dwGroup,
Ritor1
parents:
diff changeset
1321 DWORD dwMChannel ) PURE;
Ritor1
parents:
diff changeset
1322 STDMETHOD(PChannelInfo) (THIS_ DWORD dwPChannel,
Ritor1
parents:
diff changeset
1323 IDirectMusicPort** ppPort,
Ritor1
parents:
diff changeset
1324 DWORD* pdwGroup,
Ritor1
parents:
diff changeset
1325 DWORD* pdwMChannel ) PURE;
Ritor1
parents:
diff changeset
1326 STDMETHOD(DownloadInstrument) (THIS_ IDirectMusicInstrument* pInst,
Ritor1
parents:
diff changeset
1327 DWORD dwPChannel,
Ritor1
parents:
diff changeset
1328 IDirectMusicDownloadedInstrument** ppDownInst,
Ritor1
parents:
diff changeset
1329 DMUS_NOTERANGE* pNoteRanges,
Ritor1
parents:
diff changeset
1330 DWORD dwNumNoteRanges,
Ritor1
parents:
diff changeset
1331 IDirectMusicPort** ppPort,
Ritor1
parents:
diff changeset
1332 DWORD* pdwGroup,
Ritor1
parents:
diff changeset
1333 DWORD* pdwMChannel ) PURE;
Ritor1
parents:
diff changeset
1334 STDMETHOD(Invalidate) (THIS_ MUSIC_TIME mtTime,
Ritor1
parents:
diff changeset
1335 DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
1336 STDMETHOD(GetParam) (THIS_ REFGUID rguidType,
Ritor1
parents:
diff changeset
1337 DWORD dwGroupBits,
Ritor1
parents:
diff changeset
1338 DWORD dwIndex,
Ritor1
parents:
diff changeset
1339 MUSIC_TIME mtTime,
Ritor1
parents:
diff changeset
1340 MUSIC_TIME* pmtNext,
Ritor1
parents:
diff changeset
1341 void* pParam) PURE;
Ritor1
parents:
diff changeset
1342 STDMETHOD(SetParam) (THIS_ REFGUID rguidType,
Ritor1
parents:
diff changeset
1343 DWORD dwGroupBits,
Ritor1
parents:
diff changeset
1344 DWORD dwIndex,
Ritor1
parents:
diff changeset
1345 MUSIC_TIME mtTime,
Ritor1
parents:
diff changeset
1346 void* pParam) PURE;
Ritor1
parents:
diff changeset
1347 STDMETHOD(GetGlobalParam) (THIS_ REFGUID rguidType,
Ritor1
parents:
diff changeset
1348 void* pParam,
Ritor1
parents:
diff changeset
1349 DWORD dwSize) PURE;
Ritor1
parents:
diff changeset
1350 STDMETHOD(SetGlobalParam) (THIS_ REFGUID rguidType,
Ritor1
parents:
diff changeset
1351 void* pParam,
Ritor1
parents:
diff changeset
1352 DWORD dwSize) PURE;
Ritor1
parents:
diff changeset
1353 STDMETHOD(GetLatencyTime) (THIS_ REFERENCE_TIME* prtTime) PURE;
Ritor1
parents:
diff changeset
1354 STDMETHOD(GetQueueTime) (THIS_ REFERENCE_TIME* prtTime) PURE;
Ritor1
parents:
diff changeset
1355 STDMETHOD(AdjustTime) (THIS_ REFERENCE_TIME rtAmount) PURE;
Ritor1
parents:
diff changeset
1356 STDMETHOD(CloseDown) (THIS) PURE;
Ritor1
parents:
diff changeset
1357 STDMETHOD(GetResolvedTime) (THIS_ REFERENCE_TIME rtTime,
Ritor1
parents:
diff changeset
1358 REFERENCE_TIME* prtResolved,
Ritor1
parents:
diff changeset
1359 DWORD dwTimeResolveFlags) PURE;
Ritor1
parents:
diff changeset
1360 STDMETHOD(MIDIToMusic) (THIS_ BYTE bMIDIValue,
Ritor1
parents:
diff changeset
1361 DMUS_CHORD_KEY* pChord,
Ritor1
parents:
diff changeset
1362 BYTE bPlayMode,
Ritor1
parents:
diff changeset
1363 BYTE bChordLevel,
Ritor1
parents:
diff changeset
1364 WORD *pwMusicValue) PURE;
Ritor1
parents:
diff changeset
1365 STDMETHOD(MusicToMIDI) (THIS_ WORD wMusicValue,
Ritor1
parents:
diff changeset
1366 DMUS_CHORD_KEY* pChord,
Ritor1
parents:
diff changeset
1367 BYTE bPlayMode,
Ritor1
parents:
diff changeset
1368 BYTE bChordLevel,
Ritor1
parents:
diff changeset
1369 BYTE *pbMIDIValue) PURE;
Ritor1
parents:
diff changeset
1370 STDMETHOD(TimeToRhythm) (THIS_ MUSIC_TIME mtTime,
Ritor1
parents:
diff changeset
1371 DMUS_TIMESIGNATURE *pTimeSig,
Ritor1
parents:
diff changeset
1372 WORD *pwMeasure,
Ritor1
parents:
diff changeset
1373 BYTE *pbBeat,
Ritor1
parents:
diff changeset
1374 BYTE *pbGrid,
Ritor1
parents:
diff changeset
1375 short *pnOffset) PURE;
Ritor1
parents:
diff changeset
1376 STDMETHOD(RhythmToTime) (THIS_ WORD wMeasure,
Ritor1
parents:
diff changeset
1377 BYTE bBeat,
Ritor1
parents:
diff changeset
1378 BYTE bGrid,
Ritor1
parents:
diff changeset
1379 short nOffset,
Ritor1
parents:
diff changeset
1380 DMUS_TIMESIGNATURE *pTimeSig,
Ritor1
parents:
diff changeset
1381 MUSIC_TIME *pmtTime) PURE;
Ritor1
parents:
diff changeset
1382 /* IDirectMusicPerformance8 */
Ritor1
parents:
diff changeset
1383 STDMETHOD(InitAudio) (THIS_ IDirectMusic** ppDirectMusic, /* Optional DirectMusic pointer. */
Ritor1
parents:
diff changeset
1384 IDirectSound** ppDirectSound, /* Optional DirectSound pointer. */
Ritor1
parents:
diff changeset
1385 HWND hWnd, /* HWND for DirectSound. */
Ritor1
parents:
diff changeset
1386 DWORD dwDefaultPathType, /* Requested default audio path type, also optional. */
Ritor1
parents:
diff changeset
1387 DWORD dwPChannelCount, /* Number of PChannels, if default audio path to be created. */
Ritor1
parents:
diff changeset
1388 DWORD dwFlags, /* DMUS_AUDIOF flags, if no pParams structure. */
Ritor1
parents:
diff changeset
1389 DMUS_AUDIOPARAMS *pParams) PURE; /* Optional initialization structure, defining required voices, buffers, etc. */
Ritor1
parents:
diff changeset
1390 STDMETHOD(PlaySegmentEx) (THIS_ IUnknown* pSource, /* Segment to play. */
Ritor1
parents:
diff changeset
1391 WCHAR *pwzSegmentName, /* Not supported in DX8. */
Ritor1
parents:
diff changeset
1392 IUnknown* pTransition, /* Optional template segment to compose transition with. */
Ritor1
parents:
diff changeset
1393 DWORD dwFlags, /* DMUS_SEGF_ flags. */
Ritor1
parents:
diff changeset
1394 __int64 i64StartTime, /* Time to start playback. */
Ritor1
parents:
diff changeset
1395 IDirectMusicSegmentState** ppSegmentState, /* Returned Segment State. */
Ritor1
parents:
diff changeset
1396 IUnknown *pFrom, /* Optional segmentstate or audiopath to replace. */
Ritor1
parents:
diff changeset
1397 IUnknown *pAudioPath) PURE; /* Optional audioPath to play on. */
Ritor1
parents:
diff changeset
1398 STDMETHOD(StopEx) (THIS_ IUnknown *pObjectToStop, /* Segstate, AudioPath, or Segment. */
Ritor1
parents:
diff changeset
1399 __int64 i64StopTime,
Ritor1
parents:
diff changeset
1400 DWORD dwFlags) PURE;
Ritor1
parents:
diff changeset
1401 STDMETHOD(ClonePMsg) (THIS_ DMUS_PMSG* pSourcePMSG,
Ritor1
parents:
diff changeset
1402 DMUS_PMSG** ppCopyPMSG) PURE;
Ritor1
parents:
diff changeset
1403 STDMETHOD(CreateAudioPath) (THIS_ IUnknown *pSourceConfig, /* Source configuration, from AudioPathConfig file. */
Ritor1
parents:
diff changeset
1404 BOOL fActivate, /* TRUE to activate on creation. */
Ritor1
parents:
diff changeset
1405 IDirectMusicAudioPath **ppNewPath) PURE; /* Returns created audiopath. */
Ritor1
parents:
diff changeset
1406 STDMETHOD(CreateStandardAudioPath)(THIS_ DWORD dwType, /* Type of path to create. */
Ritor1
parents:
diff changeset
1407 DWORD dwPChannelCount, /* How many PChannels to allocate for it. */
Ritor1
parents:
diff changeset
1408 BOOL fActivate, /* TRUE to activate on creation. */
Ritor1
parents:
diff changeset
1409 IDirectMusicAudioPath **ppNewPath) PURE; /* Returns created audiopath. */
Ritor1
parents:
diff changeset
1410 STDMETHOD(SetDefaultAudioPath) (THIS_ IDirectMusicAudioPath *pAudioPath) PURE;
Ritor1
parents:
diff changeset
1411 STDMETHOD(GetDefaultAudioPath) (THIS_ IDirectMusicAudioPath **ppAudioPath) PURE;
Ritor1
parents:
diff changeset
1412 STDMETHOD(GetParamEx) (THIS_ REFGUID rguidType, /* GetParam command ID. */
Ritor1
parents:
diff changeset
1413 DWORD dwTrackID, /* Virtual track ID of caller. */
Ritor1
parents:
diff changeset
1414 DWORD dwGroupBits, /* Group bits of caller. */
Ritor1
parents:
diff changeset
1415 DWORD dwIndex, /* Index to Nth parameter. */
Ritor1
parents:
diff changeset
1416 MUSIC_TIME mtTime, /* Time of requested parameter. */
Ritor1
parents:
diff changeset
1417 MUSIC_TIME* pmtNext, /* Returned delta to next parameter. */
Ritor1
parents:
diff changeset
1418 void* pParam) PURE; /* Data structure to fill with parameter. */
Ritor1
parents:
diff changeset
1419 };
Ritor1
parents:
diff changeset
1420
Ritor1
parents:
diff changeset
1421
Ritor1
parents:
diff changeset
1422
Ritor1
parents:
diff changeset
1423 /*////////////////////////////////////////////////////////////////////
Ritor1
parents:
diff changeset
1424 // IDirectMusicGraph */
Ritor1
parents:
diff changeset
1425 #undef INTERFACE
Ritor1
parents:
diff changeset
1426 #define INTERFACE IDirectMusicGraph
Ritor1
parents:
diff changeset
1427 DECLARE_INTERFACE_(IDirectMusicGraph, IUnknown)
Ritor1
parents:
diff changeset
1428 {
Ritor1
parents:
diff changeset
1429 /* IUnknown */
Ritor1
parents:
diff changeset
1430 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
1431 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
1432 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
1433
Ritor1
parents:
diff changeset
1434 /* IDirectMusicGraph */
Ritor1
parents:
diff changeset
1435 STDMETHOD(StampPMsg) (THIS_ DMUS_PMSG* pPMSG) PURE;
Ritor1
parents:
diff changeset
1436 STDMETHOD(InsertTool) (THIS_ IDirectMusicTool* pTool,
Ritor1
parents:
diff changeset
1437 DWORD* pdwPChannels,
Ritor1
parents:
diff changeset
1438 DWORD cPChannels,
Ritor1
parents:
diff changeset
1439 LONG lIndex) PURE;
Ritor1
parents:
diff changeset
1440 STDMETHOD(GetTool) (THIS_ DWORD dwIndex,
Ritor1
parents:
diff changeset
1441 IDirectMusicTool** ppTool) PURE;
Ritor1
parents:
diff changeset
1442 STDMETHOD(RemoveTool) (THIS_ IDirectMusicTool* pTool) PURE;
Ritor1
parents:
diff changeset
1443 };
Ritor1
parents:
diff changeset
1444
Ritor1
parents:
diff changeset
1445 typedef IDirectMusicGraph IDirectMusicGraph8;
Ritor1
parents:
diff changeset
1446
Ritor1
parents:
diff changeset
1447
Ritor1
parents:
diff changeset
1448 /*/////////////////////////////////////////////////////////////////////
Ritor1
parents:
diff changeset
1449 // IDirectMusicStyle */
Ritor1
parents:
diff changeset
1450 #undef INTERFACE
Ritor1
parents:
diff changeset
1451 #define INTERFACE IDirectMusicStyle
Ritor1
parents:
diff changeset
1452 DECLARE_INTERFACE_(IDirectMusicStyle, IUnknown)
Ritor1
parents:
diff changeset
1453 {
Ritor1
parents:
diff changeset
1454 /* IUnknown */
Ritor1
parents:
diff changeset
1455 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
1456 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
1457 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
1458
Ritor1
parents:
diff changeset
1459 /* IDirectMusicStyle */
Ritor1
parents:
diff changeset
1460 STDMETHOD(GetBand) (THIS_ WCHAR* pwszName,
Ritor1
parents:
diff changeset
1461 IDirectMusicBand** ppBand) PURE;
Ritor1
parents:
diff changeset
1462 STDMETHOD(EnumBand) (THIS_ DWORD dwIndex,
Ritor1
parents:
diff changeset
1463 WCHAR *pwszName) PURE;
Ritor1
parents:
diff changeset
1464 STDMETHOD(GetDefaultBand) (THIS_ IDirectMusicBand** ppBand) PURE;
Ritor1
parents:
diff changeset
1465 STDMETHOD(EnumMotif) (THIS_ DWORD dwIndex,
Ritor1
parents:
diff changeset
1466 WCHAR* pwszName) PURE;
Ritor1
parents:
diff changeset
1467 STDMETHOD(GetMotif) (THIS_ WCHAR* pwszName,
Ritor1
parents:
diff changeset
1468 IDirectMusicSegment** ppSegment) PURE;
Ritor1
parents:
diff changeset
1469 STDMETHOD(GetDefaultChordMap) (THIS_ IDirectMusicChordMap** ppChordMap) PURE;
Ritor1
parents:
diff changeset
1470 STDMETHOD(EnumChordMap) (THIS_ DWORD dwIndex,
Ritor1
parents:
diff changeset
1471 WCHAR *pwszName) PURE;
Ritor1
parents:
diff changeset
1472 STDMETHOD(GetChordMap) (THIS_ WCHAR* pwszName,
Ritor1
parents:
diff changeset
1473 IDirectMusicChordMap** ppChordMap) PURE;
Ritor1
parents:
diff changeset
1474 STDMETHOD(GetTimeSignature) (THIS_ DMUS_TIMESIGNATURE* pTimeSig) PURE;
Ritor1
parents:
diff changeset
1475 STDMETHOD(GetEmbellishmentLength) (THIS_ DWORD dwType,
Ritor1
parents:
diff changeset
1476 DWORD dwLevel,
Ritor1
parents:
diff changeset
1477 DWORD* pdwMin,
Ritor1
parents:
diff changeset
1478 DWORD* pdwMax) PURE;
Ritor1
parents:
diff changeset
1479 STDMETHOD(GetTempo) (THIS_ double* pTempo) PURE;
Ritor1
parents:
diff changeset
1480 };
Ritor1
parents:
diff changeset
1481
Ritor1
parents:
diff changeset
1482 /*/////////////////////////////////////////////////////////////////////
Ritor1
parents:
diff changeset
1483 // IDirectMusicStyle8 */
Ritor1
parents:
diff changeset
1484 #undef INTERFACE
Ritor1
parents:
diff changeset
1485 #define INTERFACE IDirectMusicStyle8
Ritor1
parents:
diff changeset
1486 DECLARE_INTERFACE_(IDirectMusicStyle8, IDirectMusicStyle)
Ritor1
parents:
diff changeset
1487 {
Ritor1
parents:
diff changeset
1488 /* IUnknown */
Ritor1
parents:
diff changeset
1489 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
1490 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
1491 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
1492
Ritor1
parents:
diff changeset
1493 /* IDirectMusicStyle */
Ritor1
parents:
diff changeset
1494 STDMETHOD(GetBand) (THIS_ WCHAR* pwszName,
Ritor1
parents:
diff changeset
1495 IDirectMusicBand** ppBand) PURE;
Ritor1
parents:
diff changeset
1496 STDMETHOD(EnumBand) (THIS_ DWORD dwIndex,
Ritor1
parents:
diff changeset
1497 WCHAR *pwszName) PURE;
Ritor1
parents:
diff changeset
1498 STDMETHOD(GetDefaultBand) (THIS_ IDirectMusicBand** ppBand) PURE;
Ritor1
parents:
diff changeset
1499 STDMETHOD(EnumMotif) (THIS_ DWORD dwIndex,
Ritor1
parents:
diff changeset
1500 WCHAR* pwszName) PURE;
Ritor1
parents:
diff changeset
1501 STDMETHOD(GetMotif) (THIS_ WCHAR* pwszName,
Ritor1
parents:
diff changeset
1502 IDirectMusicSegment** ppSegment) PURE;
Ritor1
parents:
diff changeset
1503 STDMETHOD(GetDefaultChordMap) (THIS_ IDirectMusicChordMap** ppChordMap) PURE;
Ritor1
parents:
diff changeset
1504 STDMETHOD(EnumChordMap) (THIS_ DWORD dwIndex,
Ritor1
parents:
diff changeset
1505 WCHAR *pwszName) PURE;
Ritor1
parents:
diff changeset
1506 STDMETHOD(GetChordMap) (THIS_ WCHAR* pwszName,
Ritor1
parents:
diff changeset
1507 IDirectMusicChordMap** ppChordMap) PURE;
Ritor1
parents:
diff changeset
1508 STDMETHOD(GetTimeSignature) (THIS_ DMUS_TIMESIGNATURE* pTimeSig) PURE;
Ritor1
parents:
diff changeset
1509 STDMETHOD(GetEmbellishmentLength) (THIS_ DWORD dwType,
Ritor1
parents:
diff changeset
1510 DWORD dwLevel,
Ritor1
parents:
diff changeset
1511 DWORD* pdwMin,
Ritor1
parents:
diff changeset
1512 DWORD* pdwMax) PURE;
Ritor1
parents:
diff changeset
1513 STDMETHOD(GetTempo) (THIS_ double* pTempo) PURE;
Ritor1
parents:
diff changeset
1514
Ritor1
parents:
diff changeset
1515 /* IDirectMusicStyle8 */
Ritor1
parents:
diff changeset
1516 STDMETHOD(EnumPattern) (THIS_ DWORD dwIndex,
Ritor1
parents:
diff changeset
1517 DWORD dwPatternType,
Ritor1
parents:
diff changeset
1518 WCHAR* pwszName) PURE;
Ritor1
parents:
diff changeset
1519 };
Ritor1
parents:
diff changeset
1520
Ritor1
parents:
diff changeset
1521 /*/////////////////////////////////////////////////////////////////////
Ritor1
parents:
diff changeset
1522 // IDirectMusicChordMap */
Ritor1
parents:
diff changeset
1523 #undef INTERFACE
Ritor1
parents:
diff changeset
1524 #define INTERFACE IDirectMusicChordMap
Ritor1
parents:
diff changeset
1525 DECLARE_INTERFACE_(IDirectMusicChordMap, IUnknown)
Ritor1
parents:
diff changeset
1526 {
Ritor1
parents:
diff changeset
1527 /* IUnknown */
Ritor1
parents:
diff changeset
1528 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
1529 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
1530 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
1531
Ritor1
parents:
diff changeset
1532 /* IDirectMusicChordMap */
Ritor1
parents:
diff changeset
1533 STDMETHOD(GetScale) (THIS_ DWORD* pdwScale) PURE;
Ritor1
parents:
diff changeset
1534 };
Ritor1
parents:
diff changeset
1535
Ritor1
parents:
diff changeset
1536 typedef IDirectMusicChordMap IDirectMusicChordMap8;
Ritor1
parents:
diff changeset
1537
Ritor1
parents:
diff changeset
1538 /*/////////////////////////////////////////////////////////////////////
Ritor1
parents:
diff changeset
1539 // IDirectMusicComposer */
Ritor1
parents:
diff changeset
1540 #undef INTERFACE
Ritor1
parents:
diff changeset
1541 #define INTERFACE IDirectMusicComposer
Ritor1
parents:
diff changeset
1542 DECLARE_INTERFACE_(IDirectMusicComposer, IUnknown)
Ritor1
parents:
diff changeset
1543 {
Ritor1
parents:
diff changeset
1544 /* IUnknown */
Ritor1
parents:
diff changeset
1545 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
1546 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
1547 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
1548
Ritor1
parents:
diff changeset
1549 /* IDirectMusicComposer */
Ritor1
parents:
diff changeset
1550 STDMETHOD(ComposeSegmentFromTemplate) (THIS_ IDirectMusicStyle* pStyle,
Ritor1
parents:
diff changeset
1551 IDirectMusicSegment* pTemplate,
Ritor1
parents:
diff changeset
1552 WORD wActivity,
Ritor1
parents:
diff changeset
1553 IDirectMusicChordMap* pChordMap,
Ritor1
parents:
diff changeset
1554 IDirectMusicSegment** ppSegment) PURE;
Ritor1
parents:
diff changeset
1555 STDMETHOD(ComposeSegmentFromShape) (THIS_ IDirectMusicStyle* pStyle,
Ritor1
parents:
diff changeset
1556 WORD wNumMeasures,
Ritor1
parents:
diff changeset
1557 WORD wShape,
Ritor1
parents:
diff changeset
1558 WORD wActivity,
Ritor1
parents:
diff changeset
1559 BOOL fIntro,
Ritor1
parents:
diff changeset
1560 BOOL fEnd,
Ritor1
parents:
diff changeset
1561 IDirectMusicChordMap* pChordMap,
Ritor1
parents:
diff changeset
1562 IDirectMusicSegment** ppSegment ) PURE;
Ritor1
parents:
diff changeset
1563 STDMETHOD(ComposeTransition) (THIS_ IDirectMusicSegment* pFromSeg,
Ritor1
parents:
diff changeset
1564 IDirectMusicSegment* pToSeg,
Ritor1
parents:
diff changeset
1565 MUSIC_TIME mtTime,
Ritor1
parents:
diff changeset
1566 WORD wCommand,
Ritor1
parents:
diff changeset
1567 DWORD dwFlags,
Ritor1
parents:
diff changeset
1568 IDirectMusicChordMap* pChordMap,
Ritor1
parents:
diff changeset
1569 IDirectMusicSegment** ppTransSeg) PURE;
Ritor1
parents:
diff changeset
1570 STDMETHOD(AutoTransition) (THIS_ IDirectMusicPerformance* pPerformance,
Ritor1
parents:
diff changeset
1571 IDirectMusicSegment* pToSeg,
Ritor1
parents:
diff changeset
1572 WORD wCommand,
Ritor1
parents:
diff changeset
1573 DWORD dwFlags,
Ritor1
parents:
diff changeset
1574 IDirectMusicChordMap* pChordMap,
Ritor1
parents:
diff changeset
1575 IDirectMusicSegment** ppTransSeg,
Ritor1
parents:
diff changeset
1576 IDirectMusicSegmentState** ppToSegState,
Ritor1
parents:
diff changeset
1577 IDirectMusicSegmentState** ppTransSegState) PURE;
Ritor1
parents:
diff changeset
1578 STDMETHOD(ComposeTemplateFromShape) (THIS_ WORD wNumMeasures,
Ritor1
parents:
diff changeset
1579 WORD wShape,
Ritor1
parents:
diff changeset
1580 BOOL fIntro,
Ritor1
parents:
diff changeset
1581 BOOL fEnd,
Ritor1
parents:
diff changeset
1582 WORD wEndLength,
Ritor1
parents:
diff changeset
1583 IDirectMusicSegment** ppTemplate) PURE;
Ritor1
parents:
diff changeset
1584 STDMETHOD(ChangeChordMap) (THIS_ IDirectMusicSegment* pSegment,
Ritor1
parents:
diff changeset
1585 BOOL fTrackScale,
Ritor1
parents:
diff changeset
1586 IDirectMusicChordMap* pChordMap) PURE;
Ritor1
parents:
diff changeset
1587 };
Ritor1
parents:
diff changeset
1588
Ritor1
parents:
diff changeset
1589 typedef IDirectMusicComposer IDirectMusicComposer8;
Ritor1
parents:
diff changeset
1590
Ritor1
parents:
diff changeset
1591 /*/////////////////////////////////////////////////////////////////////
Ritor1
parents:
diff changeset
1592 // IDirectMusicPatternTrack */
Ritor1
parents:
diff changeset
1593
Ritor1
parents:
diff changeset
1594 #undef INTERFACE
Ritor1
parents:
diff changeset
1595 #define INTERFACE IDirectMusicPatternTrack
Ritor1
parents:
diff changeset
1596 DECLARE_INTERFACE_(IDirectMusicPatternTrack, IUnknown)
Ritor1
parents:
diff changeset
1597 {
Ritor1
parents:
diff changeset
1598 /* IUnknown */
Ritor1
parents:
diff changeset
1599 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
1600 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
1601 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
1602
Ritor1
parents:
diff changeset
1603 /* IDirectMusicPatternTrack */
Ritor1
parents:
diff changeset
1604 STDMETHOD(CreateSegment) (THIS_ IDirectMusicStyle* pStyle,
Ritor1
parents:
diff changeset
1605 IDirectMusicSegment** ppSegment) PURE;
Ritor1
parents:
diff changeset
1606 STDMETHOD(SetVariation) (THIS_ IDirectMusicSegmentState* pSegState,
Ritor1
parents:
diff changeset
1607 DWORD dwVariationFlags,
Ritor1
parents:
diff changeset
1608 DWORD dwPart) PURE;
Ritor1
parents:
diff changeset
1609 STDMETHOD(SetPatternByName) (THIS_ IDirectMusicSegmentState* pSegState,
Ritor1
parents:
diff changeset
1610 WCHAR* wszName,
Ritor1
parents:
diff changeset
1611 IDirectMusicStyle* pStyle,
Ritor1
parents:
diff changeset
1612 DWORD dwPatternType,
Ritor1
parents:
diff changeset
1613 DWORD* pdwLength) PURE;
Ritor1
parents:
diff changeset
1614 };
Ritor1
parents:
diff changeset
1615
Ritor1
parents:
diff changeset
1616 typedef IDirectMusicPatternTrack IDirectMusicPatternTrack8;
Ritor1
parents:
diff changeset
1617
Ritor1
parents:
diff changeset
1618 /*/////////////////////////////////////////////////////////////////////
Ritor1
parents:
diff changeset
1619 // IDirectMusicScript */
Ritor1
parents:
diff changeset
1620
Ritor1
parents:
diff changeset
1621 #undef INTERFACE
Ritor1
parents:
diff changeset
1622 #define INTERFACE IDirectMusicScript
Ritor1
parents:
diff changeset
1623 DECLARE_INTERFACE_(IDirectMusicScript, IUnknown)
Ritor1
parents:
diff changeset
1624 {
Ritor1
parents:
diff changeset
1625 /* IUnknown */
Ritor1
parents:
diff changeset
1626 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
1627 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
1628 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
1629
Ritor1
parents:
diff changeset
1630 /* IDirectMusicScript */
Ritor1
parents:
diff changeset
1631 STDMETHOD(Init) (THIS_ IDirectMusicPerformance *pPerformance,
Ritor1
parents:
diff changeset
1632 DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE;
Ritor1
parents:
diff changeset
1633 STDMETHOD(CallRoutine) (THIS_ WCHAR *pwszRoutineName,
Ritor1
parents:
diff changeset
1634 DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE;
Ritor1
parents:
diff changeset
1635 STDMETHOD(SetVariableVariant) (THIS_ WCHAR *pwszVariableName,
Ritor1
parents:
diff changeset
1636 VARIANT varValue,
Ritor1
parents:
diff changeset
1637 BOOL fSetRef,
Ritor1
parents:
diff changeset
1638 DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE;
Ritor1
parents:
diff changeset
1639 STDMETHOD(GetVariableVariant) (THIS_ WCHAR *pwszVariableName,
Ritor1
parents:
diff changeset
1640 VARIANT *pvarValue,
Ritor1
parents:
diff changeset
1641 DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE;
Ritor1
parents:
diff changeset
1642 STDMETHOD(SetVariableNumber) (THIS_ WCHAR *pwszVariableName,
Ritor1
parents:
diff changeset
1643 LONG lValue,
Ritor1
parents:
diff changeset
1644 DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE;
Ritor1
parents:
diff changeset
1645 STDMETHOD(GetVariableNumber) (THIS_ WCHAR *pwszVariableName,
Ritor1
parents:
diff changeset
1646 LONG *plValue,
Ritor1
parents:
diff changeset
1647 DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE;
Ritor1
parents:
diff changeset
1648 STDMETHOD(SetVariableObject) (THIS_ WCHAR *pwszVariableName,
Ritor1
parents:
diff changeset
1649 IUnknown *punkValue,
Ritor1
parents:
diff changeset
1650 DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE;
Ritor1
parents:
diff changeset
1651 STDMETHOD(GetVariableObject) (THIS_ WCHAR *pwszVariableName,
Ritor1
parents:
diff changeset
1652 REFIID riid,
Ritor1
parents:
diff changeset
1653 LPVOID FAR *ppv,
Ritor1
parents:
diff changeset
1654 DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE;
Ritor1
parents:
diff changeset
1655 STDMETHOD(EnumRoutine) (THIS_ DWORD dwIndex,
Ritor1
parents:
diff changeset
1656 WCHAR *pwszName) PURE;
Ritor1
parents:
diff changeset
1657 STDMETHOD(EnumVariable) (THIS_ DWORD dwIndex,
Ritor1
parents:
diff changeset
1658 WCHAR *pwszName) PURE;
Ritor1
parents:
diff changeset
1659 };
Ritor1
parents:
diff changeset
1660
Ritor1
parents:
diff changeset
1661 typedef IDirectMusicScript IDirectMusicScript8;
Ritor1
parents:
diff changeset
1662
Ritor1
parents:
diff changeset
1663 /*/////////////////////////////////////////////////////////////////////
Ritor1
parents:
diff changeset
1664 // IDirectMusicContainer */
Ritor1
parents:
diff changeset
1665
Ritor1
parents:
diff changeset
1666 #undef INTERFACE
Ritor1
parents:
diff changeset
1667 #define INTERFACE IDirectMusicContainer
Ritor1
parents:
diff changeset
1668 DECLARE_INTERFACE_(IDirectMusicContainer, IUnknown)
Ritor1
parents:
diff changeset
1669 {
Ritor1
parents:
diff changeset
1670 /* IUnknown */
Ritor1
parents:
diff changeset
1671 STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE;
Ritor1
parents:
diff changeset
1672 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
Ritor1
parents:
diff changeset
1673 STDMETHOD_(ULONG,Release) (THIS) PURE;
Ritor1
parents:
diff changeset
1674
Ritor1
parents:
diff changeset
1675 /* IDirectMusicContainer */
Ritor1
parents:
diff changeset
1676 STDMETHOD(EnumObject) (THIS_ REFGUID rguidClass,
Ritor1
parents:
diff changeset
1677 DWORD dwIndex,
Ritor1
parents:
diff changeset
1678 LPDMUS_OBJECTDESC pDesc,
Ritor1
parents:
diff changeset
1679 WCHAR *pwszAlias) PURE;
Ritor1
parents:
diff changeset
1680 };
Ritor1
parents:
diff changeset
1681
Ritor1
parents:
diff changeset
1682 typedef IDirectMusicContainer IDirectMusicContainer8;
Ritor1
parents:
diff changeset
1683
Ritor1
parents:
diff changeset
1684 /* CLSID's */
Ritor1
parents:
diff changeset
1685 DEFINE_GUID(CLSID_DirectMusicPerformance,0xd2ac2881, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1686 DEFINE_GUID(CLSID_DirectMusicSegment,0xd2ac2882, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1687 DEFINE_GUID(CLSID_DirectMusicSegmentState,0xd2ac2883, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1688 DEFINE_GUID(CLSID_DirectMusicGraph,0xd2ac2884, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1689 DEFINE_GUID(CLSID_DirectMusicStyle,0xd2ac288a, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1690 DEFINE_GUID(CLSID_DirectMusicChordMap,0xd2ac288f, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1691 DEFINE_GUID(CLSID_DirectMusicComposer,0xd2ac2890, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1692 DEFINE_GUID(CLSID_DirectMusicLoader,0xd2ac2892, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1693 DEFINE_GUID(CLSID_DirectMusicBand,0x79ba9e00, 0xb6ee, 0x11d1, 0x86, 0xbe, 0x0, 0xc0, 0x4f, 0xbf, 0x8f, 0xef);
Ritor1
parents:
diff changeset
1694
Ritor1
parents:
diff changeset
1695 /* New CLSID's for DX8 */
Ritor1
parents:
diff changeset
1696 DEFINE_GUID(CLSID_DirectMusicPatternTrack,0xd2ac2897, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1697 DEFINE_GUID(CLSID_DirectMusicScript,0x810b5013, 0xe88d, 0x11d2, 0x8b, 0xc1, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xb6); /* {810B5013-E88D-11d2-8BC1-00600893B1B6} */
Ritor1
parents:
diff changeset
1698 DEFINE_GUID(CLSID_DirectMusicContainer,0x9301e380, 0x1f22, 0x11d3, 0x82, 0x26, 0xd2, 0xfa, 0x76, 0x25, 0x5d, 0x47);
Ritor1
parents:
diff changeset
1699 DEFINE_GUID(CLSID_DirectSoundWave,0x8a667154, 0xf9cb, 0x11d2, 0xad, 0x8a, 0x0, 0x60, 0xb0, 0x57, 0x5a, 0xbc);
Ritor1
parents:
diff changeset
1700 DEFINE_GUID(CLSID_DirectMusicAudioPathConfig,0xee0b9ca0, 0xa81e, 0x11d3, 0x9b, 0xd1, 0x0, 0x80, 0xc7, 0x15, 0xa, 0x74);
Ritor1
parents:
diff changeset
1701
Ritor1
parents:
diff changeset
1702 /* Special GUID for all object types. This is used by the loader. */
Ritor1
parents:
diff changeset
1703 DEFINE_GUID(GUID_DirectMusicAllTypes,0xd2ac2893, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1704
Ritor1
parents:
diff changeset
1705 /* Notification guids */
Ritor1
parents:
diff changeset
1706 DEFINE_GUID(GUID_NOTIFICATION_SEGMENT,0xd2ac2899, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1707 DEFINE_GUID(GUID_NOTIFICATION_PERFORMANCE,0x81f75bc5, 0x4e5d, 0x11d2, 0xbc, 0xc7, 0x0, 0xa0, 0xc9, 0x22, 0xe6, 0xeb);
Ritor1
parents:
diff changeset
1708 DEFINE_GUID(GUID_NOTIFICATION_MEASUREANDBEAT,0xd2ac289a, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1709 DEFINE_GUID(GUID_NOTIFICATION_CHORD,0xd2ac289b, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1710 DEFINE_GUID(GUID_NOTIFICATION_COMMAND,0xd2ac289c, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1711 DEFINE_GUID(GUID_NOTIFICATION_RECOMPOSE, 0xd348372b, 0x945b, 0x45ae, 0xa5, 0x22, 0x45, 0xf, 0x12, 0x5b, 0x84, 0xa5);
Ritor1
parents:
diff changeset
1712
Ritor1
parents:
diff changeset
1713 /* Track param type guids */
Ritor1
parents:
diff changeset
1714 /* Use to get/set a DMUS_COMMAND_PARAM param in the Command track */
Ritor1
parents:
diff changeset
1715 DEFINE_GUID(GUID_CommandParam,0xd2ac289d, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1716
Ritor1
parents:
diff changeset
1717 /* Use to get a DMUS_COMMAND_PARAM_2 param in the Command track */
Ritor1
parents:
diff changeset
1718 DEFINE_GUID(GUID_CommandParam2, 0x28f97ef7, 0x9538, 0x11d2, 0x97, 0xa9, 0x0, 0xc0, 0x4f, 0xa3, 0x6e, 0x58);
Ritor1
parents:
diff changeset
1719
Ritor1
parents:
diff changeset
1720 /* Use to get/set a DMUS_COMMAND_PARAM_2 param to be used as the command following all commands in
Ritor1
parents:
diff changeset
1721 the Command track (this information can't be saved) */
Ritor1
parents:
diff changeset
1722 DEFINE_GUID(GUID_CommandParamNext, 0x472afe7a, 0x281b, 0x11d3, 0x81, 0x7d, 0x0, 0xc0, 0x4f, 0xa3, 0x6e, 0x58);
Ritor1
parents:
diff changeset
1723
Ritor1
parents:
diff changeset
1724 /* Use to get/set a DMUS_CHORD_PARAM param in the Chord track */
Ritor1
parents:
diff changeset
1725 DEFINE_GUID(GUID_ChordParam,0xd2ac289e, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1726
Ritor1
parents:
diff changeset
1727 /* Use to get a DMUS_RHYTHM_PARAM param in the Chord track */
Ritor1
parents:
diff changeset
1728 DEFINE_GUID(GUID_RhythmParam,0xd2ac289f, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1729
Ritor1
parents:
diff changeset
1730 /* Use to get/set an IDirectMusicStyle param in the Style track */
Ritor1
parents:
diff changeset
1731 DEFINE_GUID(GUID_IDirectMusicStyle,0xd2ac28a1, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1732
Ritor1
parents:
diff changeset
1733 /* Use to get a DMUS_TIMESIGNATURE param in the Style and TimeSig tracks */
Ritor1
parents:
diff changeset
1734 DEFINE_GUID(GUID_TimeSignature,0xd2ac28a4, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1735
Ritor1
parents:
diff changeset
1736 /* Use to get/set a DMUS_TEMPO_PARAM param in the Tempo track */
Ritor1
parents:
diff changeset
1737 DEFINE_GUID(GUID_TempoParam,0xd2ac28a5, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1738
Ritor1
parents:
diff changeset
1739 /* Use to get the next valid point in a segment at which it may start */
Ritor1
parents:
diff changeset
1740 DEFINE_GUID(GUID_Valid_Start_Time,0x7f6b1760, 0x1fdb, 0x11d3, 0x82, 0x26, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0);
Ritor1
parents:
diff changeset
1741
Ritor1
parents:
diff changeset
1742 /* Use to get the next point in the currently playing primary segment at which a new segment may start */
Ritor1
parents:
diff changeset
1743 DEFINE_GUID(GUID_Play_Marker,0xd8761a41, 0x801a, 0x11d3, 0x9b, 0xd1, 0xda, 0xf7, 0xe1, 0xc3, 0xd8, 0x34);
Ritor1
parents:
diff changeset
1744
Ritor1
parents:
diff changeset
1745 /* Use to get (GetParam) or add (SetParam) bands in the Band track */
Ritor1
parents:
diff changeset
1746 DEFINE_GUID(GUID_BandParam,0x2bb1938, 0xcb8b, 0x11d2, 0x8b, 0xb9, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xb6);
Ritor1
parents:
diff changeset
1747 typedef struct _DMUS_BAND_PARAM
Ritor1
parents:
diff changeset
1748 {
Ritor1
parents:
diff changeset
1749 MUSIC_TIME mtTimePhysical; /* Note: If this is a Timer-time track, then this field is interpreted in the track's internal time format, which is the number of milliseconds after the beginning of playback. */
Ritor1
parents:
diff changeset
1750 IDirectMusicBand *pBand;
Ritor1
parents:
diff changeset
1751 } DMUS_BAND_PARAM;
Ritor1
parents:
diff changeset
1752
Ritor1
parents:
diff changeset
1753 /* Obsolete -- doesn't distinguish physical and logical time. Use GUID_BandParam instead. */
Ritor1
parents:
diff changeset
1754 DEFINE_GUID(GUID_IDirectMusicBand,0xd2ac28ac, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1755
Ritor1
parents:
diff changeset
1756 /* Use to get/set an IDirectMusicChordMap param in the ChordMap track */
Ritor1
parents:
diff changeset
1757 DEFINE_GUID(GUID_IDirectMusicChordMap,0xd2ac28ad, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1758
Ritor1
parents:
diff changeset
1759 /* Use to get/set a DMUS_MUTE_PARAM param in the Mute track */
Ritor1
parents:
diff changeset
1760 DEFINE_GUID(GUID_MuteParam,0xd2ac28af, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1761
Ritor1
parents:
diff changeset
1762 /* These guids are used in IDirectMusicSegment::SetParam to tell the band track to perform various actions.
Ritor1
parents:
diff changeset
1763 Some of these guids (where noted) also apply to wave tracks.
Ritor1
parents:
diff changeset
1764 */
Ritor1
parents:
diff changeset
1765 /* Download bands/waves for the IDirectMusicSegment */
Ritor1
parents:
diff changeset
1766 DEFINE_GUID(GUID_Download,0xd2ac28a7, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1767
Ritor1
parents:
diff changeset
1768 /* Unload bands/waves for the IDirectMusicSegment */
Ritor1
parents:
diff changeset
1769 DEFINE_GUID(GUID_Unload,0xd2ac28a8, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1770
Ritor1
parents:
diff changeset
1771 /* Connect segment's bands to an IDirectMusicCollection */
Ritor1
parents:
diff changeset
1772 DEFINE_GUID(GUID_ConnectToDLSCollection, 0x1db1ae6b, 0xe92e, 0x11d1, 0xa8, 0xc5, 0x0, 0xc0, 0x4f, 0xa3, 0x72, 0x6e);
Ritor1
parents:
diff changeset
1773
Ritor1
parents:
diff changeset
1774 /* Enable/disable autodownloading of bands/waves */
Ritor1
parents:
diff changeset
1775 DEFINE_GUID(GUID_Enable_Auto_Download,0xd2ac28a9, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1776 DEFINE_GUID(GUID_Disable_Auto_Download,0xd2ac28aa, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1777
Ritor1
parents:
diff changeset
1778 /* Clear all bands */
Ritor1
parents:
diff changeset
1779 DEFINE_GUID(GUID_Clear_All_Bands,0xd2ac28ab, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1780
Ritor1
parents:
diff changeset
1781 /* Set segment to manage all program changes, bank selects, etc. for simple playback of a standard MIDI file */
Ritor1
parents:
diff changeset
1782 DEFINE_GUID(GUID_StandardMIDIFile, 0x6621075, 0xe92e, 0x11d1, 0xa8, 0xc5, 0x0, 0xc0, 0x4f, 0xa3, 0x72, 0x6e);
Ritor1
parents:
diff changeset
1783 /* For compatibility with beta releases... */
Ritor1
parents:
diff changeset
1784 #define GUID_IgnoreBankSelectForGM GUID_StandardMIDIFile
Ritor1
parents:
diff changeset
1785
Ritor1
parents:
diff changeset
1786 /* Disable/enable param guids. Use these in SetParam calls to disable or enable sending
Ritor1
parents:
diff changeset
1787 * specific PMsg types.
Ritor1
parents:
diff changeset
1788 */
Ritor1
parents:
diff changeset
1789 DEFINE_GUID(GUID_DisableTimeSig, 0x45fc707b, 0x1db4, 0x11d2, 0xbc, 0xac, 0x0, 0xa0, 0xc9, 0x22, 0xe6, 0xeb);
Ritor1
parents:
diff changeset
1790 DEFINE_GUID(GUID_EnableTimeSig, 0x45fc707c, 0x1db4, 0x11d2, 0xbc, 0xac, 0x0, 0xa0, 0xc9, 0x22, 0xe6, 0xeb);
Ritor1
parents:
diff changeset
1791 DEFINE_GUID(GUID_DisableTempo, 0x45fc707d, 0x1db4, 0x11d2, 0xbc, 0xac, 0x0, 0xa0, 0xc9, 0x22, 0xe6, 0xeb);
Ritor1
parents:
diff changeset
1792 DEFINE_GUID(GUID_EnableTempo, 0x45fc707e, 0x1db4, 0x11d2, 0xbc, 0xac, 0x0, 0xa0, 0xc9, 0x22, 0xe6, 0xeb);
Ritor1
parents:
diff changeset
1793
Ritor1
parents:
diff changeset
1794 /* Used in SetParam calls for pattern-based tracks. A nonzero value seeds the random number
Ritor1
parents:
diff changeset
1795 generator for variation selection; a value of zero reverts to the default behavior of
Ritor1
parents:
diff changeset
1796 getting the seed from the system Timer.
Ritor1
parents:
diff changeset
1797 */
Ritor1
parents:
diff changeset
1798 DEFINE_GUID(GUID_SeedVariations, 0x65b76fa5, 0xff37, 0x11d2, 0x81, 0x4e, 0x0, 0xc0, 0x4f, 0xa3, 0x6e, 0x58);
Ritor1
parents:
diff changeset
1799
Ritor1
parents:
diff changeset
1800 /* Used to get the variations currently in effect across PChannels */
Ritor1
parents:
diff changeset
1801 DEFINE_GUID(GUID_Variations, 0x11f72cce, 0x26e6, 0x4ecd, 0xaf, 0x2e, 0xd6, 0x68, 0xe6, 0x67, 0x7, 0xd8);
Ritor1
parents:
diff changeset
1802 typedef struct _DMUS_VARIATIONS_PARAM
Ritor1
parents:
diff changeset
1803 {
Ritor1
parents:
diff changeset
1804 DWORD dwPChannelsUsed; /* number of PChannels in use */
Ritor1
parents:
diff changeset
1805 DWORD* padwPChannels; /* array of PChannels in use */
Ritor1
parents:
diff changeset
1806 DWORD* padwVariations; /* array of variations in effect for each PChannel */
Ritor1
parents:
diff changeset
1807 } DMUS_VARIATIONS_PARAM;
Ritor1
parents:
diff changeset
1808
Ritor1
parents:
diff changeset
1809 /* Download bands/waves for the IDirectMusicSegment, passed an IDirectMusicAudioPath instead of an IDirectMusicPerformance */
Ritor1
parents:
diff changeset
1810 DEFINE_GUID(GUID_DownloadToAudioPath,0x9f2c0341, 0xc5c4, 0x11d3, 0x9b, 0xd1, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0);
Ritor1
parents:
diff changeset
1811
Ritor1
parents:
diff changeset
1812 /* Unload bands/waves for the IDirectMusicSegment, passed an IDirectMusicAudioPath instead of an IDirectMusicPerformance */
Ritor1
parents:
diff changeset
1813 DEFINE_GUID(GUID_UnloadFromAudioPath,0x9f2c0342, 0xc5c4, 0x11d3, 0x9b, 0xd1, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0);
Ritor1
parents:
diff changeset
1814
Ritor1
parents:
diff changeset
1815
Ritor1
parents:
diff changeset
1816 /* Global data guids */
Ritor1
parents:
diff changeset
1817 DEFINE_GUID(GUID_PerfMasterTempo,0xd2ac28b0, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1818 DEFINE_GUID(GUID_PerfMasterVolume,0xd2ac28b1, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1819 DEFINE_GUID(GUID_PerfMasterGrooveLevel,0xd2ac28b2, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1820 DEFINE_GUID(GUID_PerfAutoDownload, 0xfb09565b, 0x3631, 0x11d2, 0xbc, 0xb8, 0x0, 0xa0, 0xc9, 0x22, 0xe6, 0xeb);
Ritor1
parents:
diff changeset
1821
Ritor1
parents:
diff changeset
1822 /* GUID for default GM/GS dls collection. */
Ritor1
parents:
diff changeset
1823 DEFINE_GUID(GUID_DefaultGMCollection, 0xf17e8673, 0xc3b4, 0x11d1, 0x87, 0xb, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1824
Ritor1
parents:
diff changeset
1825 /* GUID to define default synth, placed in AudioPath configuration file. */
Ritor1
parents:
diff changeset
1826 DEFINE_GUID(GUID_Synth_Default,0x26bb9432, 0x45fe, 0x48d3, 0xa3, 0x75, 0x24, 0x72, 0xc5, 0xe3, 0xe7, 0x86);
Ritor1
parents:
diff changeset
1827
Ritor1
parents:
diff changeset
1828 /* GUIDs to define default buffer configurations to place in AudioPath configuration file. */
Ritor1
parents:
diff changeset
1829 DEFINE_GUID(GUID_Buffer_Reverb,0x186cc541, 0xdb29, 0x11d3, 0x9b, 0xd1, 0x0, 0x80, 0xc7, 0x15, 0xa, 0x74);
Ritor1
parents:
diff changeset
1830 DEFINE_GUID(GUID_Buffer_EnvReverb,0x186cc542, 0xdb29, 0x11d3, 0x9b, 0xd1, 0x0, 0x80, 0xc7, 0x15, 0xa, 0x74);
Ritor1
parents:
diff changeset
1831 DEFINE_GUID(GUID_Buffer_Stereo,0x186cc545, 0xdb29, 0x11d3, 0x9b, 0xd1, 0x0, 0x80, 0xc7, 0x15, 0xa, 0x74);
Ritor1
parents:
diff changeset
1832 DEFINE_GUID(GUID_Buffer_3D_Dry,0x186cc546, 0xdb29, 0x11d3, 0x9b, 0xd1, 0x0, 0x80, 0xc7, 0x15, 0xa, 0x74);
Ritor1
parents:
diff changeset
1833 DEFINE_GUID(GUID_Buffer_Mono,0x186cc547, 0xdb29, 0x11d3, 0x9b, 0xd1, 0x0, 0x80, 0xc7, 0x15, 0xa, 0x74);
Ritor1
parents:
diff changeset
1834
Ritor1
parents:
diff changeset
1835 /* IID's */
Ritor1
parents:
diff changeset
1836 DEFINE_GUID(IID_IDirectMusicLoader, 0x2ffaaca2, 0x5dca, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6);
Ritor1
parents:
diff changeset
1837 DEFINE_GUID(IID_IDirectMusicGetLoader,0x68a04844, 0xd13d, 0x11d1, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6);
Ritor1
parents:
diff changeset
1838 DEFINE_GUID(IID_IDirectMusicObject,0xd2ac28b5, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1839 DEFINE_GUID(IID_IDirectMusicSegment, 0xf96029a2, 0x4282, 0x11d2, 0x87, 0x17, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1840 DEFINE_GUID(IID_IDirectMusicSegmentState, 0xa3afdcc7, 0xd3ee, 0x11d1, 0xbc, 0x8d, 0x0, 0xa0, 0xc9, 0x22, 0xe6, 0xeb);
Ritor1
parents:
diff changeset
1841 DEFINE_GUID(IID_IDirectMusicPerformance,0x7d43d03, 0x6523, 0x11d2, 0x87, 0x1d, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1842 DEFINE_GUID(IID_IDirectMusicGraph,0x2befc277, 0x5497, 0x11d2, 0xbc, 0xcb, 0x0, 0xa0, 0xc9, 0x22, 0xe6, 0xeb);
Ritor1
parents:
diff changeset
1843 DEFINE_GUID(IID_IDirectMusicStyle,0xd2ac28bd, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1844 DEFINE_GUID(IID_IDirectMusicChordMap,0xd2ac28be, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1845 DEFINE_GUID(IID_IDirectMusicComposer,0xd2ac28bf, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1846 DEFINE_GUID(IID_IDirectMusicBand,0xd2ac28c0, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1847
Ritor1
parents:
diff changeset
1848 /* Alternate interface IDs, available in DX7 release and after. */
Ritor1
parents:
diff changeset
1849 DEFINE_GUID(IID_IDirectMusicPerformance2,0x6fc2cae0, 0xbc78, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6);
Ritor1
parents:
diff changeset
1850 DEFINE_GUID(IID_IDirectMusicSegment2, 0xd38894d1, 0xc052, 0x11d2, 0x87, 0x2f, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd);
Ritor1
parents:
diff changeset
1851
Ritor1
parents:
diff changeset
1852 /* Interface IDs for DX8 */
Ritor1
parents:
diff changeset
1853 /* changed interfaces (GUID only) */
Ritor1
parents:
diff changeset
1854 DEFINE_GUID(IID_IDirectMusicLoader8, 0x19e7c08c, 0xa44, 0x4e6a, 0xa1, 0x16, 0x59, 0x5a, 0x7c, 0xd5, 0xde, 0x8c);
Ritor1
parents:
diff changeset
1855 DEFINE_GUID(IID_IDirectMusicPerformance8, 0x679c4137, 0xc62e, 0x4147, 0xb2, 0xb4, 0x9d, 0x56, 0x9a, 0xcb, 0x25, 0x4c);
Ritor1
parents:
diff changeset
1856 DEFINE_GUID(IID_IDirectMusicSegment8,0xc6784488, 0x41a3, 0x418f, 0xaa, 0x15, 0xb3, 0x50, 0x93, 0xba, 0x42, 0xd4);
Ritor1
parents:
diff changeset
1857 DEFINE_GUID(IID_IDirectMusicSegmentState8, 0xa50e4730, 0xae4, 0x48a7, 0x98, 0x39, 0xbc, 0x4, 0xbf, 0xe0, 0x77, 0x72);
Ritor1
parents:
diff changeset
1858 DEFINE_GUID(IID_IDirectMusicStyle8, 0xfd24ad8a, 0xa260, 0x453d, 0xbf, 0x50, 0x6f, 0x93, 0x84, 0xf7, 0x9, 0x85);
Ritor1
parents:
diff changeset
1859 /* new interfaces (GUID + alias) */
Ritor1
parents:
diff changeset
1860 DEFINE_GUID(IID_IDirectMusicPatternTrack, 0x51c22e10, 0xb49f, 0x46fc, 0xbe, 0xc2, 0xe6, 0x28, 0x8f, 0xb9, 0xed, 0xe6);
Ritor1
parents:
diff changeset
1861 #define IID_IDirectMusicPatternTrack8 IID_IDirectMusicPatternTrack
Ritor1
parents:
diff changeset
1862 DEFINE_GUID(IID_IDirectMusicScript, 0x2252373a, 0x5814, 0x489b, 0x82, 0x9, 0x31, 0xfe, 0xde, 0xba, 0xf1, 0x37); /* {2252373A-5814-489b-8209-31FEDEBAF137} */
Ritor1
parents:
diff changeset
1863 #define IID_IDirectMusicScript8 IID_IDirectMusicScript
Ritor1
parents:
diff changeset
1864 DEFINE_GUID(IID_IDirectMusicContainer, 0x9301e386, 0x1f22, 0x11d3, 0x82, 0x26, 0xd2, 0xfa, 0x76, 0x25, 0x5d, 0x47);
Ritor1
parents:
diff changeset
1865 #define IID_IDirectMusicContainer8 IID_IDirectMusicContainer
Ritor1
parents:
diff changeset
1866 DEFINE_GUID(IID_IDirectMusicAudioPath,0xc87631f5, 0x23be, 0x4986, 0x88, 0x36, 0x5, 0x83, 0x2f, 0xcc, 0x48, 0xf9);
Ritor1
parents:
diff changeset
1867 #define IID_IDirectMusicAudioPath8 IID_IDirectMusicAudioPath
Ritor1
parents:
diff changeset
1868 /* unchanged interfaces (alias only) */
Ritor1
parents:
diff changeset
1869 #define IID_IDirectMusicGetLoader8 IID_IDirectMusicGetLoader
Ritor1
parents:
diff changeset
1870 #define IID_IDirectMusicChordMap8 IID_IDirectMusicChordMap
Ritor1
parents:
diff changeset
1871 #define IID_IDirectMusicGraph8 IID_IDirectMusicGraph
Ritor1
parents:
diff changeset
1872 #define IID_IDirectMusicBand8 IID_IDirectMusicBand
Ritor1
parents:
diff changeset
1873 #define IID_IDirectMusicObject8 IID_IDirectMusicObject
Ritor1
parents:
diff changeset
1874 #define IID_IDirectMusicComposer8 IID_IDirectMusicComposer
Ritor1
parents:
diff changeset
1875
Ritor1
parents:
diff changeset
1876
Ritor1
parents:
diff changeset
1877 #ifdef __cplusplus
Ritor1
parents:
diff changeset
1878 }; /* extern "C" */
Ritor1
parents:
diff changeset
1879 #endif
Ritor1
parents:
diff changeset
1880
Ritor1
parents:
diff changeset
1881 #include <poppack.h>
Ritor1
parents:
diff changeset
1882
Ritor1
parents:
diff changeset
1883 #endif /* #ifndef _DMUSICI_ */