clusapi: Add the clusapi.h public header.
[wine] / include / dmusicf.h
1 /*
2  *  DirectMusic File Formats
3  *
4  *  Copyright (C) 2003-2004 Rok Mandeljc
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU Library General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, write to the Free Software
18  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
19  */
20
21 #ifndef __WINE_DMUSIC_FILEFORMATS_H
22 #define __WINE_DMUSIC_FILEFORMATS_H
23
24 #ifndef __WINESRC__
25 #include <windows.h>
26 #endif /* __WINESRC__ */
27
28 #include <objbase.h>
29 #include <mmsystem.h>
30 #include <pshpack8.h>
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35
36
37 /*****************************************************************************
38  * FOURCC Definitons
39  */
40 /* Common chunks */
41 #define DMUS_FOURCC_GUID_CHUNK                     mmioFOURCC('g','u','i','d')
42 #define DMUS_FOURCC_INFO_LIST                      mmioFOURCC('I','N','F','O')
43 #define DMUS_FOURCC_UNFO_LIST                      mmioFOURCC('U','N','F','O')
44 #define DMUS_FOURCC_UNAM_CHUNK                     mmioFOURCC('U','N','A','M')
45 #define DMUS_FOURCC_UART_CHUNK                     mmioFOURCC('U','A','R','T')
46 #define DMUS_FOURCC_UCOP_CHUNK                     mmioFOURCC('U','C','O','P')
47 #define DMUS_FOURCC_USBJ_CHUNK                     mmioFOURCC('U','S','B','J')
48 #define DMUS_FOURCC_UCMT_CHUNK                     mmioFOURCC('U','C','M','T')
49 #define DMUS_FOURCC_CATEGORY_CHUNK                 mmioFOURCC('c','a','t','g')
50 #define DMUS_FOURCC_VERSION_CHUNK                  mmioFOURCC('v','e','r','s')
51 /* AudioPath */
52 #define DMUS_FOURCC_AUDIOPATH_FORM                 mmioFOURCC('D','M','A','P')
53 #define DMUS_FOURCC_PORTCONFIGS_LIST               mmioFOURCC('p','c','s','l')
54 #define DMUS_FOURCC_PORTCONFIG_LIST                mmioFOURCC('p','c','f','l')
55 #define DMUS_FOURCC_PORTCONFIG_ITEM                mmioFOURCC('p','c','f','h')
56 #define DMUS_FOURCC_PORTPARAMS_ITEM                mmioFOURCC('p','p','r','h')
57 #define DMUS_FOURCC_DSBUFFER_LIST                  mmioFOURCC('d','b','f','l')
58 #define DMUS_FOURCC_DSBUFFATTR_ITEM                mmioFOURCC('d','d','a','h')
59 #define DMUS_FOURCC_PCHANNELS_LIST                 mmioFOURCC('p','c','h','l')
60 #define DMUS_FOURCC_PCHANNELS_ITEM                 mmioFOURCC('p','c','h','h')
61 /* Band */
62 #define DMUS_FOURCC_BAND_FORM                      mmioFOURCC('D','M','B','D')
63 #define DMUS_FOURCC_INSTRUMENTS_LIST               mmioFOURCC('l','b','i','l')
64 #define DMUS_FOURCC_INSTRUMENT_LIST                mmioFOURCC('l','b','i','n')
65 #define DMUS_FOURCC_INSTRUMENT_CHUNK               mmioFOURCC('b','i','n','s')
66 /* Chordmap */
67 #define DMUS_FOURCC_CHORDMAP_FORM                  mmioFOURCC('D','M','P','R')
68 #define DMUS_FOURCC_IOCHORDMAP_CHUNK               mmioFOURCC('p','e','r','h')
69 #define DMUS_FOURCC_SUBCHORD_CHUNK                 mmioFOURCC('c','h','d','t')
70 #define DMUS_FOURCC_CHORDENTRY_CHUNK               mmioFOURCC('c','h','e','h')
71 #define DMUS_FOURCC_SUBCHORDID_CHUNK               mmioFOURCC('s','b','c','n')
72 #define DMUS_FOURCC_IONEXTCHORD_CHUNK              mmioFOURCC('n','c','r','d')
73 #define DMUS_FOURCC_NEXTCHORDSEQ_CHUNK             mmioFOURCC('n','c','s','q')
74 #define DMUS_FOURCC_IOSIGNPOST_CHUNK               mmioFOURCC('s','p','s','h')
75 #define DMUS_FOURCC_CHORDNAME_CHUNK                mmioFOURCC('I','N','A','M')
76 #define DMUS_FOURCC_CHORDENTRY_LIST                mmioFOURCC('c','h','o','e')
77 #define DMUS_FOURCC_CHORDMAP_LIST                  mmioFOURCC('c','m','a','p')
78 #define DMUS_FOURCC_CHORD_LIST                     mmioFOURCC('c','h','r','d')
79 #define DMUS_FOURCC_CHORDPALETTE_LIST              mmioFOURCC('c','h','p','l')
80 #define DMUS_FOURCC_CADENCE_LIST                   mmioFOURCC('c','a','d','e')
81 #define DMUS_FOURCC_SIGNPOSTITEM_LIST              mmioFOURCC('s','p','s','t')
82 #define DMUS_FOURCC_SIGNPOST_LIST                  mmioFOURCC('s','p','s','q')
83 /* Container */
84 #define DMUS_FOURCC_CONTAINER_FORM                 mmioFOURCC('D','M','C','N')
85 #define DMUS_FOURCC_CONTAINER_CHUNK                mmioFOURCC('c','o','n','h')
86 #define DMUS_FOURCC_CONTAINED_ALIAS_CHUNK          mmioFOURCC('c','o','b','a')
87 #define DMUS_FOURCC_CONTAINED_OBJECT_CHUNK         mmioFOURCC('c','o','b','h')
88 #define DMUS_FOURCC_CONTAINED_OBJECTS_LIST         mmioFOURCC('c','o','s','l')
89 #define DMUS_FOURCC_CONTAINED_OBJECT_LIST          mmioFOURCC('c','o','b','l')
90 /* DirectSound Buffer Configuration */
91 #define DMUS_FOURCC_DSBC_FORM                      mmioFOURCC('D','S','B','C')
92 #define DMUS_FOURCC_DSBD_CHUNK                     mmioFOURCC('d','s','b','d')
93 #define DMUS_FOURCC_BSID_CHUNK                     mmioFOURCC('b','s','i','d')
94 #define DMUS_FOURCC_DS3D_CHUNK                     mmioFOURCC('d','s','3','d')
95 #define DMUS_FOURCC_DSBC_LIST                      mmioFOURCC('f','x','l','s')
96 /* Effects */
97 #define DMUS_FOURCC_DSFX_FORM                      mmioFOURCC('D','S','F','X')
98 #define DMUS_FOURCC_DSFX_CHUNK                     mmioFOURCC('f','x','h','r')
99 #define DMUS_FOURCC_DSFX_DATA                      mmioFOURCC('d','a','t','a')
100 /* Reference */
101 #define DMUS_FOURCC_REF_LIST                       mmioFOURCC('D','M','R','F')
102 #define DMUS_FOURCC_REF_CHUNK                      mmioFOURCC('r','e','f','h')
103 #define DMUS_FOURCC_DATE_CHUNK                     mmioFOURCC('d','a','t','e')
104 #define DMUS_FOURCC_NAME_CHUNK                     mmioFOURCC('n','a','m','e')
105 #define DMUS_FOURCC_FILE_CHUNK                     mmioFOURCC('f','i','l','e')
106 /* Script */
107 #define DMUS_FOURCC_SCRIPT_FORM                    mmioFOURCC('D','M','S','C')
108 #define DMUS_FOURCC_SCRIPT_CHUNK                   mmioFOURCC('s','c','h','d')
109 #define DMUS_FOURCC_SCRIPTVERSION_CHUNK            mmioFOURCC('s','c','v','e')
110 #define DMUS_FOURCC_SCRIPTLANGUAGE_CHUNK           mmioFOURCC('s','c','l','a')
111 #define DMUS_FOURCC_SCRIPTSOURCE_CHUNK             mmioFOURCC('s','c','s','r')
112 /* Segment */
113 #define DMUS_FOURCC_SEGMENT_FORM                   mmioFOURCC('D','M','S','G')
114 #define DMUS_FOURCC_SEGMENT_CHUNK                  mmioFOURCC('s','e','g','h')
115 #define DMUS_FOURCC_TRACK_LIST                     mmioFOURCC('t','r','k','l')
116 /* Style chunks */
117 #define DMUS_FOURCC_STYLE_FORM                     mmioFOURCC('D','M','S','T')
118 #define DMUS_FOURCC_STYLE_CHUNK                    mmioFOURCC('s','t','y','h')
119 #define DMUS_FOURCC_PART_LIST                      mmioFOURCC('p','a','r','t')
120 #define DMUS_FOURCC_PART_CHUNK                     mmioFOURCC('p','r','t','h')
121 #define DMUS_FOURCC_NOTE_CHUNK                     mmioFOURCC('n','o','t','e')
122 #define DMUS_FOURCC_CURVE_CHUNK                    mmioFOURCC('c','r','v','e')
123 #define DMUS_FOURCC_MARKER_CHUNK                   mmioFOURCC('m','r','k','r')
124 #define DMUS_FOURCC_RESOLUTION_CHUNK               mmioFOURCC('r','s','l','n')
125 #define DMUS_FOURCC_ANTICIPATION_CHUNK             mmioFOURCC('a','n','p','n')
126 #define DMUS_FOURCC_PATTERN_LIST                   mmioFOURCC('p','t','t','n')
127 #define DMUS_FOURCC_PATTERN_CHUNK                  mmioFOURCC('p','t','n','h')
128 #define DMUS_FOURCC_RHYTHM_CHUNK                   mmioFOURCC('r','h','t','m')
129 #define DMUS_FOURCC_PARTREF_LIST                   mmioFOURCC('p','r','e','f')
130 #define DMUS_FOURCC_PARTREF_CHUNK                  mmioFOURCC('p','r','f','c')
131 #define DMUS_FOURCC_STYLE_PERS_REF_LIST            mmioFOURCC('p','r','r','f')
132 #define DMUS_FOURCC_MOTIFSETTINGS_CHUNK            mmioFOURCC('m','t','f','s')
133 /* Tool */
134 #define DMUS_FOURCC_TOOL_FORM                      mmioFOURCC('D','M','T','L')
135 #define DMUS_FOURCC_TOOL_CHUNK                     mmioFOURCC('t','o','l','h')
136 /* ToolGraph */
137 #define DMUS_FOURCC_TOOLGRAPH_FORM                 mmioFOURCC('D','M','T','G')
138 #define DMUS_FOURCC_TOOL_LIST                      mmioFOURCC('t','o','l','l')
139 /* Track */
140 #define DMUS_FOURCC_TRACK_FORM                     mmioFOURCC('D','M','T','K')
141 #define DMUS_FOURCC_TRACK_CHUNK                    mmioFOURCC('t','r','k','h')
142 #define DMUS_FOURCC_TRACK_EXTRAS_CHUNK             mmioFOURCC('t','r','k','x')
143 /* Band Track */
144 #define DMUS_FOURCC_BANDTRACK_FORM                 mmioFOURCC('D','M','B','T')
145 #define DMUS_FOURCC_BANDTRACK_CHUNK                mmioFOURCC('b','d','t','h')
146 #define DMUS_FOURCC_BANDS_LIST                     mmioFOURCC('l','b','d','l')
147 #define DMUS_FOURCC_BAND_LIST                      mmioFOURCC('l','b','n','d')
148 #define DMUS_FOURCC_BANDITEM_CHUNK                 mmioFOURCC('b','d','i','h')
149 #define DMUS_FOURCC_BANDITEM_CHUNK2                mmioFOURCC('b','d','2','h')
150 /* Chord Track */
151 #define DMUS_FOURCC_CHORDTRACK_LIST                mmioFOURCC('c','o','r','d')
152 #define DMUS_FOURCC_CHORDTRACKHEADER_CHUNK         mmioFOURCC('c','r','d','h')
153 #define DMUS_FOURCC_CHORDTRACKBODY_CHUNK           mmioFOURCC('c','r','d','b')
154 /* Chordmap Track */
155 #define DMUS_FOURCC_PERS_TRACK_LIST                mmioFOURCC('p','f','t','r')
156 #define DMUS_FOURCC_PERS_REF_LIST                  mmioFOURCC('p','f','r','f')
157 #define DMUS_FOURCC_TIME_STAMP_CHUNK               mmioFOURCC('s','t','m','p')
158 /* Command Track */
159 #define DMUS_FOURCC_COMMANDTRACK_CHUNK             mmioFOURCC('c','m','n','d')
160 /* Lyrics Track */
161 #define DMUS_FOURCC_LYRICSTRACK_LIST               mmioFOURCC('l','y','r','t')
162 #define DMUS_FOURCC_LYRICSTRACKEVENTS_LIST         mmioFOURCC('l','y','r','l')
163 #define DMUS_FOURCC_LYRICSTRACKEVENT_LIST          mmioFOURCC('l','y','r','e')
164 #define DMUS_FOURCC_LYRICSTRACKEVENTHEADER_CHUNK   mmioFOURCC('l','y','r','h')
165 #define DMUS_FOURCC_LYRICSTRACKEVENTTEXT_CHUNK     mmioFOURCC('l','y','r','n')
166 /* Marker Track */
167 #define DMUS_FOURCC_MARKERTRACK_LIST               mmioFOURCC('M','A','R','K')
168 #define DMUS_FOURCC_VALIDSTART_CHUNK               mmioFOURCC('v','a','l','s')
169 #define DMUS_FOURCC_PLAYMARKER_CHUNK               mmioFOURCC('p','l','a','y')
170 /* Mute Track */
171 #define DMUS_FOURCC_MUTE_CHUNK                     mmioFOURCC('m','u','t','e')
172 /* Parameter Control Track */
173 #define DMUS_FOURCC_PARAMCONTROLTRACK_TRACK_LIST   mmioFOURCC('p','r','m','t')
174 #define DMUS_FOURCC_PARAMCONTROLTRACK_OBJECT_LIST  mmioFOURCC('p','r','o','l')
175 #define DMUS_FOURCC_PARAMCONTROLTRACK_OBJECT_CHUNK mmioFOURCC('p','r','o','h')
176 #define DMUS_FOURCC_PARAMCONTROLTRACK_PARAM_LIST   mmioFOURCC('p','r','p','l')
177 #define DMUS_FOURCC_PARAMCONTROLTRACK_PARAM_CHUNK  mmioFOURCC('p','r','p','h')
178 #define DMUS_FOURCC_PARAMCONTROLTRACK_CURVES_CHUNK mmioFOURCC('p','r','c','c')
179 /* Pattern Track */
180 #define DMUS_FOURCC_PATTERN_FORM                   mmioFOURCC('D','M','P','T')
181 /* Script Track */
182 #define DMUS_FOURCC_SCRIPTTRACK_LIST               mmioFOURCC('s','c','r','t')
183 #define DMUS_FOURCC_SCRIPTTRACKEVENTS_LIST         mmioFOURCC('s','c','r','l')
184 #define DMUS_FOURCC_SCRIPTTRACKEVENT_LIST          mmioFOURCC('s','c','r','e')
185 #define DMUS_FOURCC_SCRIPTTRACKEVENTHEADER_CHUNK   mmioFOURCC('s','c','r','h')
186 #define DMUS_FOURCC_SCRIPTTRACKEVENTNAME_CHUNK     mmioFOURCC('s','c','r','n')
187 /* Segment Trgigger Track */
188 #define DMUS_FOURCC_SEGTRACK_LIST                  mmioFOURCC('s','e','g','t')
189 #define DMUS_FOURCC_SEGTRACK_CHUNK                 mmioFOURCC('s','g','t','h')
190 #define DMUS_FOURCC_SEGMENTS_LIST                  mmioFOURCC('l','s','g','l')
191 #define DMUS_FOURCC_SEGMENT_LIST                   mmioFOURCC('l','s','e','g')
192 #define DMUS_FOURCC_SEGMENTITEM_CHUNK              mmioFOURCC('s','g','i','h')
193 #define DMUS_FOURCC_SEGMENTITEMNAME_CHUNK          mmioFOURCC('s','n','a','m')
194 /* Sequence Track */
195 #define DMUS_FOURCC_SEQ_TRACK                      mmioFOURCC('s','e','q','t')
196 #define DMUS_FOURCC_SEQ_LIST                       mmioFOURCC('e','v','t','l')
197 #define DMUS_FOURCC_CURVE_LIST                     mmioFOURCC('c','u','r','l')
198 /* Signpost Track */
199 #define DMUS_FOURCC_SIGNPOST_TRACK_CHUNK           mmioFOURCC('s','g','n','p')
200 /* Style Track */
201 #define DMUS_FOURCC_STYLE_TRACK_LIST               mmioFOURCC('s','t','t','r')
202 #define DMUS_FOURCC_STYLE_REF_LIST                 mmioFOURCC('s','t','r','f')
203 /* SysEx Track */
204 #define DMUS_FOURCC_SYSEX_TRACK                    mmioFOURCC('s','y','e','x')
205 /* Tempo Track */
206 #define DMUS_FOURCC_TEMPO_TRACK                    mmioFOURCC('t','e','t','r')
207 /* Time Signature Track */
208 #define DMUS_FOURCC_TIMESIGNATURE_TRACK            mmioFOURCC('t','i','m','s')
209 #define DMUS_FOURCC_TIMESIGTRACK_LIST              mmioFOURCC('T','I','M','S')
210 #define DMUS_FOURCC_TIMESIG_CHUNK                  DMUS_FOURCC_TIMESIGNATURE_TRACK
211 /* Wave Track */
212 #define DMUS_FOURCC_WAVETRACK_LIST                 mmioFOURCC('w','a','v','t')
213 #define DMUS_FOURCC_WAVETRACK_CHUNK                mmioFOURCC('w','a','t','h')
214 #define DMUS_FOURCC_WAVEPART_LIST                  mmioFOURCC('w','a','v','p')
215 #define DMUS_FOURCC_WAVEPART_CHUNK                 mmioFOURCC('w','a','p','h')
216 #define DMUS_FOURCC_WAVEITEM_LIST                  mmioFOURCC('w','a','v','i')
217 #define DMUS_FOURCC_WAVE_LIST                      mmioFOURCC('w','a','v','e')
218 #define DMUS_FOURCC_WAVEITEM_CHUNK                 mmioFOURCC('w','a','i','h')
219 /* Wave Header */
220 #define DMUS_FOURCC_WAVEHEADER_CHUNK               mmioFOURCC('w','a','v','h')
221
222
223 /*****************************************************************************
224  * Flags
225  */
226 #define DMUS_BUFFERF_SHARED  0x1
227 #define DMUS_BUFFERF_DEFINED 0x2
228 #define DMUS_BUFFERF_MIXIN   0x8
229
230 #define DMUS_CHORDMAPF_VERSION8 0x1
231
232 #define DMUS_CONTAINED_OBJF_KEEP 0x1
233
234 #define DMUS_CONTAINER_NOLOADS 0x2
235
236 #define DMUS_IO_INST_PATCH              0x0001
237 #define DMUS_IO_INST_BANKSELECT         0x0002
238 #define DMUS_IO_INST_ASSIGN_PATCH       0x0008
239 #define DMUS_IO_INST_NOTERANGES         0x0010
240 #define DMUS_IO_INST_PAN                0x0020
241 #define DMUS_IO_INST_VOLUME             0x0040
242 #define DMUS_IO_INST_TRANSPOSE          0x0080
243 #define DMUS_IO_INST_GM                 0x0100
244 #define DMUS_IO_INST_GS                 0x0200
245 #define DMUS_IO_INST_XG                 0x0400
246 #define DMUS_IO_INST_CHANNEL_PRIORITY   0x0800
247 #define DMUS_IO_INST_USE_DEFAULT_GM_SET 0x1000
248 #define DMUS_IO_INST_PITCHBENDRANGE     0x2000
249
250 #define DMUS_IO_SCRIPTTRACKF_PREPARE 0x1
251 #define DMUS_IO_SCRIPTTRACKF_QUEUE   0x2
252 #define DMUS_IO_SCRIPTTRACKF_ATTIME  0x4
253
254 #define DMUS_MARKERF_START       0x1
255 #define DMUS_MARKERF_STOP        0x2
256 #define DMUS_MARKERF_CHORD_ALIGN 0x4
257
258 #define DMUS_PATTERNF_PERSIST_CONTROL 0x1
259
260 #define DMUS_PARTF_USE_MARKERS  0x1
261 #define DMUS_PARTF_ALIGN_CHORDS 0x2
262
263 #define DMUS_PORTCONFIGF_DRUMSON10  0x1
264 #define DMUS_PORTCONFIGF_USEDEFAULT 0x2
265
266 #define DMUS_SCRIPTIOF_LOAD_ALL_CONTENT       0x1
267 #define DMUS_SCRIPTIOF_DOWNLOAD_ALL_SEGMENTS  0x2
268
269 #define DMUS_SEGIOF_REFLENGTH 0x1
270 #define DMUS_SEGIOF_CLOCKTIME 0x2
271
272 #define DMUS_SEGMENTTRACKF_MOTIF 0x1
273
274 /* Song flags; MS doesn't support this in DX 9.0 anymore */
275 #define DMUS_SONG_MAXSEGID  0x7FFFFFFF
276 #define DMUS_SONG_ANYSEG    0x80000000
277 #define DMUS_SONG_NOSEG     0xFFFFFFFF
278 #define DMUS_SONG_NOFROMSEG 0x80000001
279
280 #define DMUS_SIGNPOSTF_A        0x0001      
281 #define DMUS_SIGNPOSTF_B        0x0002
282 #define DMUS_SIGNPOSTF_C        0x0004
283 #define DMUS_SIGNPOSTF_D        0x0008
284 #define DMUS_SIGNPOSTF_E        0x0010
285 #define DMUS_SIGNPOSTF_F        0x0020
286 #define DMUS_SIGNPOSTF_1        0x0100
287 #define DMUS_SIGNPOSTF_2        0x0200
288 #define DMUS_SIGNPOSTF_3        0x0400
289 #define DMUS_SIGNPOSTF_4        0x0800
290 #define DMUS_SIGNPOSTF_5        0x1000
291 #define DMUS_SIGNPOSTF_6        0x2000
292 #define DMUS_SIGNPOSTF_7        0x4000
293 #define DMUS_SIGNPOSTF_CADENCE  0x8000
294 #define DMUS_SIGNPOSTF_LETTER   (DMUS_SIGNPOSTF_A | DMUS_SIGNPOSTF_B | DMUS_SIGNPOSTF_C | DMUS_SIGNPOSTF_D | DMUS_SIGNPOSTF_E | DMUS_SIGNPOSTF_F)
295 #define DMUS_SIGNPOSTF_ROOT     (DMUS_SIGNPOSTF_1 | DMUS_SIGNPOSTF_2 | DMUS_SIGNPOSTF_3 | DMUS_SIGNPOSTF_4 | DMUS_SIGNPOSTF_5 | DMUS_SIGNPOSTF_6 | DMUS_SIGNPOSTF_7)
296
297 #define DMUS_SPOSTCADENCEF_1 0x2
298 #define DMUS_SPOSTCADENCEF_2 0x4
299
300 #define DMUS_VARIATIONF_MAJOR        0x0000007F
301 #define DMUS_VARIATIONF_MINOR        0x00003F80
302 #define DMUS_VARIATIONF_OTHER        0x001FC000
303 #define DMUS_VARIATIONF_ROOT_SCALE   0x00200000
304 #define DMUS_VARIATIONF_ROOT_FLAT    0x00400000
305 #define DMUS_VARIATIONF_ROOT_SHARP   0x00800000
306 #define DMUS_VARIATIONF_TYPE_TRIAD   0x01000000
307 #define DMUS_VARIATIONF_TYPE_6AND7   0x02000000
308 #define DMUS_VARIATIONF_TYPE_COMPLEX 0x04000000
309 #define DMUS_VARIATIONF_DEST_TO1     0x08000000
310 #define DMUS_VARIATIONF_DEST_TO5     0x10000000
311 #define DMUS_VARIATIONF_DEST_OTHER   0x40000000
312 #define DMUS_VARIATIONF_MODES        0xE0000000
313 #define DMUS_VARIATIONF_MODES_EX     (0x20000000 | 0x80000000)
314 #define DMUS_VARIATIONF_IMA25_MODE   0x00000000
315 #define DMUS_VARIATIONF_DMUS_MODE    0x20000000
316
317 #define DMUS_WAVETRACKF_SYNC_VAR        0x1
318 #define DMUS_WAVETRACKF_PERSIST_CONTROL 0x2
319
320
321 /*****************************************************************************
322  * Enumerations
323  */
324 /* typedef definitions */
325 typedef enum enumDMUS_VARIATIONT_TYPES DMUS_VARIATIONT_TYPES;
326 typedef enum enumDMUS_EMBELLISHT_TYPES DMUS_EMBELLISHT_TYPES;
327 typedef enum enumDMUS_PATTERNT_TYPES   DMUS_PATTERNT_TYPES;
328
329 /* actual enumerations */
330 enum enumDMUS_VARIATIONT_TYPES {
331         DMUS_VARIATIONT_SEQUENTIAL   = 0x0,
332         DMUS_VARIATIONT_RANDOM       = 0x1,
333         DMUS_VARIATIONT_RANDOM_START = 0x2,
334         DMUS_VARIATIONT_NO_REPEAT    = 0x3,
335         DMUS_VARIATIONT_RANDOM_ROW   = 0x4
336 };
337
338 enum enumDMUS_EMBELLISHT_TYPES {
339         DMUS_EMBELLISHT_NORMAL = 0x0000,
340         DMUS_EMBELLISHT_FILL   = 0x0001,
341         DMUS_EMBELLISHT_BREAK  = 0x0002,
342         DMUS_EMBELLISHT_INTRO  = 0x0004,
343         DMUS_EMBELLISHT_END    = 0x0008,
344         DMUS_EMBELLISHT_MOTIF  = 0x0010,
345         DMUS_EMBELLISHT_ALL    = 0xFFFF
346 };
347
348 enum enumDMUS_PATTERNT_TYPES {
349         DMUS_PATTERNT_RANDOM       = 0x0,
350         DMUS_PATTERNT_REPEAT       = 0x1,
351         DMUS_PATTERNT_SEQUENTIAL   = 0x2,
352         DMUS_PATTERNT_RANDOM_START = 0x3,
353         DMUS_PATTERNT_NO_REPEAT    = 0x4,
354         DMUS_PATTERNT_RANDOM_ROW   = 0x5
355 };
356
357
358 /*****************************************************************************
359  * Structures
360  */
361 /* typedef definitions */
362 typedef struct _DMUS_IO_SEQ_ITEM                       DMUS_IO_SEQ_ITEM,                       *LPDMUS_IO_SEQ_ITEM;
363 typedef struct _DMUS_IO_CURVE_ITEM                     DMUS_IO_CURVE_ITEM,                     *LPDMUS_IO_CURVE_ITEM;
364 typedef struct _DMUS_IO_TEMPO_ITEM                     DMUS_IO_TEMPO_ITEM,                     *LPDMUS_IO_TEMPO_ITEM;
365 typedef struct _DMUS_IO_SYSEX_ITEM                     DMUS_IO_SYSEX_ITEM,                     *LPDMUS_IO_SYSEX_ITEM;
366 typedef struct  DMUS_CHORD_KEY                         DMUS_CHORD_PARAM,                       *LPDMUS_CHORD_PARAM; /* in dmusici.h */
367 typedef struct _DMUS_RHYTHM_PARAM                      DMUS_RHYTHM_PARAM,                      *LPDMUS_RHYTHM_PARAM;
368 typedef struct _DMUS_TEMPO_PARAM                       DMUS_TEMPO_PARAM,                       *LPDMUS_TEMPO_PARAM;
369 typedef struct _DMUS_MUTE_PARAM                        DMUS_MUTE_PARAM,                        *LPDMUS_MUTE_PARAM;
370 typedef struct _DMUS_IO_TIMESIG                        DMUS_IO_TIMESIG,                        *LPDMUS_IO_TIMESIG;
371 typedef struct _DMUS_IO_STYLE                          DMUS_IO_STYLE,                          *LPDMUS_IO_STYLE;
372 typedef struct _DMUS_IO_VERSION                        DMUS_IO_VERSION,                        *LPDMUS_IO_VERSION;
373 typedef struct _DMUS_IO_PATTERN                        DMUS_IO_PATTERN,                        *LPDMUS_IO_PATTERN;
374 typedef struct _DMUS_IO_STYLEPART                      DMUS_IO_STYLEPART,                      *LPDMUS_IO_STYLEPART;
375 typedef struct _DMUS_IO_PARTREF                        DMUS_IO_PARTREF,                        *LPDMUS_IO_PARTREF;
376 typedef struct _DMUS_IO_STYLENOTE                      DMUS_IO_STYLENOTE,                      *LPDMUS_IO_STYLENOTE;
377 typedef struct _DMUS_IO_STYLECURVE                     DMUS_IO_STYLECURVE,                     *LPDMUS_IO_STYLECURVE;
378 typedef struct _DMUS_IO_STYLEMARKER                    DMUS_IO_STYLEMARKER,                    *LPDMUS_IO_STYLEMARKER;
379 typedef struct _DMUS_IO_STYLERESOLUTION                DMUS_IO_STYLERESOLUTION,                *LPDMUS_IO_STYLERESOLUTION;
380 typedef struct _DMUS_IO_STYLE_ANTICIPATION             DMUS_IO_STYLE_ANTICIPATION,             *LPDMUS_IO_STYLE_ANTICIPATION;
381 typedef struct _DMUS_IO_MOTIFSETTINGS                  DMUS_IO_MOTIFSETTINGS,                  *LPDMUS_IO_MOTIFSETTINGS;
382 typedef struct _DMUS_IO_CHORD                          DMUS_IO_CHORD,                          *LPDMUS_IO_CHORD;
383 typedef struct _DMUS_IO_SUBCHORD                       DMUS_IO_SUBCHORD,                       *LPDMUS_IO_SUBCHORD;
384 typedef struct _DMUS_IO_COMMAND                        DMUS_IO_COMMAND,                        *LPDMUS_IO_COMMAND;
385 typedef struct _DMUS_IO_TOOL_HEADER                    DMUS_IO_TOOL_HEADER,                    *LPDMUS_IO_TOOL_HEADER;
386 typedef struct _DMUS_IO_PORTCONFIG_HEADER              DMUS_IO_PORTCONFIG_HEADER,              *LPDMUS_IO_PORTCONFIG_HEADER;
387 typedef struct _DMUS_IO_PCHANNELTOBUFFER_HEADER        DMUS_IO_PCHANNELTOBUFFER_HEADER,        *LPDMUS_IO_PCHANNELTOBUFFER_HEADER;
388 typedef struct _DMUS_IO_BUFFER_ATTRIBUTES_HEADER       DMUS_IO_BUFFER_ATTRIBUTES_HEADER,       *LPDMUS_IO_BUFFER_ATTRIBUTES_HEADER;
389 typedef struct _DMUS_IO_BAND_TRACK_HEADER              DMUS_IO_BAND_TRACK_HEADER,              *LPDMUS_IO_BAND_TRACK_HEADER;
390 typedef struct _DMUS_IO_BAND_ITEM_HEADER               DMUS_IO_BAND_ITEM_HEADER,               *LPDMUS_IO_BAND_ITEM_HEADER;
391 typedef struct _DMUS_IO_BAND_ITEM_HEADER2              DMUS_IO_BAND_ITEM_HEADER2,              *LPDMUS_IO_BAND_ITEM_HEADER2;
392 typedef struct _DMUS_IO_INSTRUMENT                     DMUS_IO_INSTRUMENT,                     *LPDMUS_IO_INSTRUMENT;
393 typedef struct _DMUS_IO_WAVE_HEADER                    DMUS_IO_WAVE_HEADER,                    *LPDMUS_IO_WAVE_HEADER;
394 typedef struct _DMUS_IO_WAVE_TRACK_HEADER              DMUS_IO_WAVE_TRACK_HEADER,              *LPDMUS_IO_WAVE_TRACK_HEADER;
395 typedef struct _DMUS_IO_WAVE_PART_HEADER               DMUS_IO_WAVE_PART_HEADER,               *LPDMUS_IO_WAVE_PART_HEADER;
396 typedef struct _DMUS_IO_WAVE_ITEM_HEADER               DMUS_IO_WAVE_ITEM_HEADER,               *LPDMUS_IO_WAVE_ITEM_HEADER;
397 typedef struct _DMUS_IO_CONTAINER_HEADER               DMUS_IO_CONTAINER_HEADER,               *LPDMUS_IO_CONTAINER_HEADER;
398 typedef struct _DMUS_IO_CONTAINED_OBJECT_HEADER        DMUS_IO_CONTAINED_OBJECT_HEADER,        *LPDMUS_IO_CONTAINED_OBJECT_HEADER;
399 typedef struct _DMUS_IO_SEGMENT_HEADER                 DMUS_IO_SEGMENT_HEADER,                 *LPDMUS_IO_SEGMENT_HEADER;       
400 typedef struct _DMUS_IO_TRACK_HEADER                   DMUS_IO_TRACK_HEADER,                   *LPDMUS_IO_TRACK_HEADER;
401 typedef struct _DMUS_IO_TRACK_EXTRAS_HEADER            DMUS_IO_TRACK_EXTRAS_HEADER,            *LPDMUS_IO_TRACK_EXTRAS_HEADER;
402 typedef struct _DMUS_IO_REFERENCE                      DMUS_IO_REFERENCE,                      *LPDMUS_IO_REFERENCE;
403 typedef struct _DMUS_IO_CHORDMAP                       DMUS_IO_CHORDMAP,                       *LPDMUS_IO_CHORDMAP;
404 typedef struct _DMUS_IO_CHORDMAP_SUBCHORD              DMUS_IO_CHORDMAP_SUBCHORD,              *LPDMUS_IO_CHORDMAP_SUBCHORD;
405 typedef struct _DMUS_IO_CHORDMAP_SUBCHORD              DMUS_IO_PERS_SUBCHORD,                  *LPDMUS_IO_PERS_SUBCHORD;
406 typedef struct _DMUS_IO_CHORDENTRY                     DMUS_IO_CHORDENTRY,                     *LPDMUS_IO_CHORDENTRY;
407 typedef struct _DMUS_IO_NEXTCHORD                      DMUS_IO_NEXTCHORD,                      *LPDMUS_IO_NEXTCHORD;
408 typedef struct _DMUS_IO_CHORDMAP_SIGNPOST              DMUS_IO_CHORDMAP_SIGNPOST,              *LPDMUS_IO_CHORDMAP_SIGNPOST;
409 typedef struct _DMUS_IO_CHORDMAP_SIGNPOST              DMUS_IO_PERS_SIGNPOST,                  *LPDMUS_IO_PERS_SIGNPOST;
410 typedef struct _DMUS_IO_SCRIPT_HEADER                  DMUS_IO_SCRIPT_HEADER,                  *LPDMUS_IO_SCRIPT_HEADER;
411 typedef struct _DMUS_IO_SIGNPOST                       DMUS_IO_SIGNPOST,                       *LPDMUS_IO_SIGNPOST;
412 typedef struct _DMUS_IO_MUTE                           DMUS_IO_MUTE,                           *LPDMUS_IO_MUTE;
413 typedef struct _DMUS_IO_TIMESIGNATURE_ITEM             DMUS_IO_TIMESIGNATURE_ITEM,             *LPDMUS_IO_TIMESIGNATURE_ITEM;
414 typedef struct _DMUS_IO_VALID_START                    DMUS_IO_VALID_START,                    *LPDMUS_IO_VALID_START;
415 typedef struct _DMUS_IO_PLAY_MARKER                    DMUS_IO_PLAY_MARKER,                    *LPDMUS_IO_PLAY_MARKER;
416 typedef struct _DMUS_IO_SEGMENT_TRACK_HEADER           DMUS_IO_SEGMENT_TRACK_HEADER,           *LPDMUS_IO_SEGMENT_TRACK_HEADER;
417 typedef struct _DMUS_IO_SEGMENT_ITEM_HEADER            DMUS_IO_SEGMENT_ITEM_HEADER,            *LPDMUS_IO_SEGMENT_ITEM_HEADER;
418 typedef struct _DMUS_IO_SCRIPTTRACK_EVENTHEADER        DMUS_IO_SCRIPTTRACK_EVENTHEADER,        *LPDMUS_IO_SCRIPTTRACK_EVENTHEADER;
419 typedef struct _DMUS_IO_LYRICSTRACK_EVENTHEADER        DMUS_IO_LYRICSTRACK_EVENTHEADER,        *LPDMUS_IO_LYRICSTRACK_EVENTHEADER;
420 typedef struct _DMUS_IO_PARAMCONTROLTRACK_OBJECTHEADER DMUS_IO_PARAMCONTROLTRACK_OBJECTHEADER, *LPDMUS_IO_PARAMCONTROLTRACK_OBJECTHEADER;
421 typedef struct _DMUS_IO_PARAMCONTROLTRACK_PARAMHEADER  DMUS_IO_PARAMCONTROLTRACK_PARAMHEADER,  *LPDMUS_IO_PARAMCONTROLTRACK_PARAMHEADER;
422 typedef struct _DMUS_IO_PARAMCONTROLTRACK_CURVEINFO    DMUS_IO_PARAMCONTROLTRACK_CURVEINFO,    *LPDMUS_IO_PARAMCONTROLTRACK_CURVEINFO;
423 typedef struct _DSOUND_IO_DSBUFFERDESC                 DSOUND_IO_DSBUFFERDESC,                 *LPDSOUND_IO_DSBUFFERDESC;
424 typedef struct _DSOUND_IO_DSBUSID                      DSOUND_IO_DSBUSID,                      *LPDSOUND_IO_DSBUSID;
425 typedef struct _DSOUND_IO_3D                           DSOUND_IO_3D,                           *LPDSOUND_IO_3D;
426 typedef struct _DSOUND_IO_DXDMO_HEADER                 DSOUND_IO_DXDMO_HEADER,                 *LPDSOUND_IO_DXDMO_HEADER;
427 typedef struct _DSOUND_IO_DXDMO_DATA                   DSOUND_IO_DXDMO_DATA,                   *LPDSOUND_IO_DXDMO_DATA;
428
429 /* actual structures */
430 struct _DMUS_IO_SEQ_ITEM {
431         MUSIC_TIME mtTime;
432         MUSIC_TIME mtDuration;
433         DWORD      dwPChannel;
434         short      nOffset; 
435         BYTE       bStatus;
436         BYTE       bByte1;
437         BYTE       bByte2;
438 };
439
440 struct _DMUS_IO_CURVE_ITEM {
441         MUSIC_TIME mtStart;
442         MUSIC_TIME mtDuration;
443         MUSIC_TIME mtResetDuration;
444         DWORD      dwPChannel;
445         short      nOffset;
446         short      nStartValue;
447         short      nEndValue;
448         short      nResetValue;
449         BYTE       bType;
450         BYTE       bCurveShape;
451         BYTE       bCCData;
452         BYTE       bFlags;
453         /* DX8 */
454         WORD       wParamType;
455         WORD       wMergeIndex;
456 };
457
458 struct _DMUS_IO_TEMPO_ITEM {
459         MUSIC_TIME lTime;
460         double     dblTempo;
461 };
462
463 struct _DMUS_IO_SYSEX_ITEM {
464         MUSIC_TIME mtTime;
465         DWORD      dwPChannel;
466         DWORD      dwSysExLength;
467 };
468
469 struct _DMUS_RHYTHM_PARAM {
470         DMUS_TIMESIGNATURE TimeSig;
471         DWORD              dwRhythmPattern;
472 };
473
474 struct _DMUS_TEMPO_PARAM {
475         MUSIC_TIME mtTime;
476         double     dblTempo;
477 };
478
479 struct _DMUS_MUTE_PARAM {
480         DWORD dwPChannel;
481         DWORD dwPChannelMap;
482         BOOL  fMute;
483 };
484
485 #pragma pack(2)
486 struct _DMUS_IO_TIMESIG {
487         BYTE bBeatsPerMeasure;
488         BYTE bBeat;
489         WORD wGridsPerBeat;
490 };
491
492 struct _DMUS_IO_STYLE {
493         DMUS_IO_TIMESIG timeSig;
494         double          dblTempo;   
495 };
496
497 struct _DMUS_IO_VERSION {
498         DWORD dwVersionMS;
499         DWORD dwVersionLS;
500 };
501
502 struct _DMUS_IO_PATTERN {
503         DMUS_IO_TIMESIG timeSig;
504         BYTE            bGrooveBottom;
505         BYTE            bGrooveTop;
506         WORD            wEmbellishment;
507         WORD            wNbrMeasures;
508         BYTE            bDestGrooveBottom;
509         BYTE            bDestGrooveTop;
510         DWORD           dwFlags;
511 };
512
513 struct _DMUS_IO_STYLEPART {
514         DMUS_IO_TIMESIG timeSig;
515         DWORD           dwVariationChoices[32];
516         GUID            guidPartID;
517         WORD            wNbrMeasures;
518         BYTE            bPlayModeFlags;
519         BYTE            bInvertUpper;
520         BYTE            bInvertLower;
521         BYTE            bPad[3];
522         DWORD           dwFlags;
523 };
524
525 struct _DMUS_IO_PARTREF {
526         GUID  guidPartID;
527         WORD  wLogicalPartID;
528         BYTE  bVariationLockID;
529         BYTE  bSubChordLevel;
530         BYTE  bPriority;
531         BYTE  bRandomVariation;
532         WORD  wPad;
533         DWORD dwPChannel;
534 };
535
536
537 struct _DMUS_IO_STYLENOTE {
538         MUSIC_TIME mtGridStart;
539         DWORD      dwVariation;
540         MUSIC_TIME mtDuration;
541         short      nTimeOffset;
542         WORD       wMusicValue;
543         BYTE       bVelocity;
544         BYTE       bTimeRange;
545         BYTE       bDurRange;
546         BYTE       bVelRange;
547         BYTE       bInversionID;
548         BYTE       bPlayModeFlags;
549          /* DX8 */
550         BYTE       bNoteFlags;
551 };
552
553 struct _DMUS_IO_STYLECURVE {
554         MUSIC_TIME mtGridStart;
555         DWORD      dwVariation;
556         MUSIC_TIME mtDuration;
557         MUSIC_TIME mtResetDuration;
558         short      nTimeOffset;
559         short      nStartValue;
560         short      nEndValue;
561         short      nResetValue;
562         BYTE       bEventType;
563         BYTE       bCurveShape;
564         BYTE       bCCData;
565         BYTE       bFlags;
566         /* DX8 */
567         WORD       wParamType;
568         WORD       wMergeIndex;
569 };
570
571 struct _DMUS_IO_STYLEMARKER {
572         MUSIC_TIME mtGridStart;
573         DWORD      dwVariation;
574         WORD       wMarkerFlags;
575 };
576
577 struct _DMUS_IO_STYLERESOLUTION {
578         DWORD dwVariation;
579         WORD  wMusicValue;
580         BYTE  bInversionID;
581         BYTE  bPlayModeFlags;
582 };
583
584 struct _DMUS_IO_STYLE_ANTICIPATION {
585         MUSIC_TIME mtGridStart;
586         DWORD      dwVariation;
587         short      nTimeOffset;
588         BYTE       bTimeRange;
589 };
590
591 struct _DMUS_IO_MOTIFSETTINGS {
592         DWORD      dwRepeats;
593         MUSIC_TIME mtPlayStart;
594         MUSIC_TIME mtLoopStart;
595         MUSIC_TIME mtLoopEnd;
596         DWORD      dwResolution;
597 };
598 #pragma pack()
599
600 struct _DMUS_IO_CHORD {
601         WCHAR      wszName[16];
602         MUSIC_TIME mtTime;
603         WORD       wMeasure;
604         BYTE       bBeat;
605         BYTE       bFlags;
606 };
607
608 struct _DMUS_IO_SUBCHORD {
609         DWORD dwChordPattern;
610         DWORD dwScalePattern;
611         DWORD dwInversionPoints;
612         DWORD dwLevels;
613         BYTE  bChordRoot;
614         BYTE  bScaleRoot;
615 };
616
617 struct _DMUS_IO_COMMAND {
618         MUSIC_TIME mtTime;
619         WORD       wMeasure;
620         BYTE       bBeat;
621         BYTE       bCommand;
622         BYTE       bGrooveLevel;
623         BYTE       bGrooveRange;
624         BYTE       bRepeatMode;
625 };
626
627 struct _DMUS_IO_TOOL_HEADER {
628         GUID   guidClassID;
629         long   lIndex;
630         DWORD  cPChannels;
631         FOURCC ckid;
632         FOURCC fccType;
633         DWORD  dwPChannels[1];
634 };
635
636 struct _DMUS_IO_PORTCONFIG_HEADER {
637         GUID  guidPort;
638         DWORD dwPChannelBase;
639         DWORD dwPChannelCount;
640         DWORD dwFlags;
641 };
642
643 struct _DMUS_IO_PCHANNELTOBUFFER_HEADER {
644         DWORD dwPChannelBase;
645         DWORD dwPChannelCount;
646         DWORD dwBufferCount;
647         DWORD dwFlags;
648 };
649
650 struct _DMUS_IO_BUFFER_ATTRIBUTES_HEADER {
651         GUID  guidBufferID;
652         DWORD dwFlags;
653 };
654
655 struct _DMUS_IO_BAND_TRACK_HEADER {
656         BOOL bAutoDownload;
657 };
658
659 struct _DMUS_IO_BAND_ITEM_HEADER {
660         MUSIC_TIME lBandTime;
661 };
662
663 struct _DMUS_IO_BAND_ITEM_HEADER2 {
664         MUSIC_TIME lBandTimeLogical;
665         MUSIC_TIME lBandTimePhysical;
666 };
667
668 struct _DMUS_IO_INSTRUMENT {
669         DWORD dwPatch;
670         DWORD dwAssignPatch;
671         DWORD dwNoteRanges[4];
672         DWORD dwPChannel;
673         DWORD dwFlags;
674         BYTE  bPan;
675         BYTE  bVolume;
676         short nTranspose;
677         DWORD dwChannelPriority;
678         short nPitchBendRange;
679 };
680
681 struct _DMUS_IO_WAVE_HEADER {
682         REFERENCE_TIME rtReadAhead;
683         DWORD          dwFlags;
684 };
685
686 struct _DMUS_IO_WAVE_TRACK_HEADER {
687         long  lVolume;
688         DWORD dwFlags;
689 };
690
691 struct _DMUS_IO_WAVE_PART_HEADER {
692     long  lVolume;
693     DWORD dwVariations;
694     DWORD dwPChannel;
695     DWORD dwLockToPart;
696     DWORD dwFlags;
697     DWORD dwIndex;
698 };
699
700 struct _DMUS_IO_WAVE_ITEM_HEADER  {
701         long           lVolume;
702         long           lPitch;
703         DWORD          dwVariations;
704         REFERENCE_TIME rtTime;
705         REFERENCE_TIME rtStartOffset;
706         REFERENCE_TIME rtReserved;
707         REFERENCE_TIME rtDuration;
708         MUSIC_TIME     mtLogicalTime;
709         DWORD          dwLoopStart;
710         DWORD          dwLoopEnd;
711         DWORD          dwFlags;
712         WORD           wVolumeRange;
713         WORD           wPitchRange;
714 };
715
716 struct _DMUS_IO_CONTAINER_HEADER {
717         DWORD dwFlags;
718 };
719
720 struct _DMUS_IO_CONTAINED_OBJECT_HEADER {
721         GUID   guidClassID;
722         DWORD  dwFlags;
723         FOURCC ckid;
724         FOURCC fccType;
725 };
726
727 struct _DMUS_IO_SEGMENT_HEADER {
728         DWORD          dwRepeats;
729         MUSIC_TIME     mtLength;
730         MUSIC_TIME     mtPlayStart;
731         MUSIC_TIME     mtLoopStart;
732         MUSIC_TIME     mtLoopEnd;
733         DWORD          dwResolution;
734         /* DX8 */
735         REFERENCE_TIME rtLength;
736         DWORD          dwFlags;
737         DWORD          dwReserved;
738         /* DX9 */
739         REFERENCE_TIME rtLoopStart;
740         REFERENCE_TIME rtLoopEnd;
741         REFERENCE_TIME rtPlayStart;
742 };
743
744 struct _DMUS_IO_TRACK_HEADER {
745         GUID   guidClassID;
746         DWORD  dwPosition;
747         DWORD  dwGroup;
748         FOURCC ckid;
749         FOURCC fccType;
750 };
751
752 struct _DMUS_IO_TRACK_EXTRAS_HEADER {
753         DWORD dwFlags;
754         DWORD dwPriority;
755 };
756
757 struct _DMUS_IO_REFERENCE {
758         GUID  guidClassID;
759         DWORD dwValidData;
760 };
761
762 struct _DMUS_IO_CHORDMAP {
763         WCHAR wszLoadName[20];
764         DWORD dwScalePattern;
765         DWORD dwFlags;
766 };
767
768 struct _DMUS_IO_CHORDMAP_SUBCHORD {
769         DWORD dwChordPattern;
770         DWORD dwScalePattern;
771         DWORD dwInvertPattern;
772         BYTE  bChordRoot;
773         BYTE  bScaleRoot;
774         WORD  wCFlags;
775         DWORD dwLevels;
776 };
777
778 struct _DMUS_IO_CHORDENTRY {
779         DWORD dwFlags;
780         WORD  wConnectionID;
781 };
782
783 struct _DMUS_IO_NEXTCHORD {
784         DWORD dwFlags;
785         WORD  nWeight;
786         WORD  wMinBeats;
787         WORD  wMaxBeats;
788         WORD  wConnectionID;
789 };
790
791 struct _DMUS_IO_CHORDMAP_SIGNPOST {
792         DWORD dwChords;
793         DWORD dwFlags;
794 };
795
796 struct _DMUS_IO_SCRIPT_HEADER {
797         DWORD dwFlags;
798 };
799
800 struct _DMUS_IO_SIGNPOST {
801         MUSIC_TIME mtTime;
802         DWORD      dwChords;
803         WORD       wMeasure;
804 };
805
806 struct _DMUS_IO_MUTE {
807         MUSIC_TIME mtTime;
808         DWORD      dwPChannel;
809         DWORD      dwPChannelMap;
810 };
811
812 struct _DMUS_IO_TIMESIGNATURE_ITEM {
813         MUSIC_TIME lTime;
814         BYTE       bBeatsPerMeasure;
815         BYTE       bBeat;
816         WORD       wGridsPerBeat;
817 };
818
819 struct _DMUS_IO_VALID_START {
820         MUSIC_TIME mtTime;
821 };
822
823 struct _DMUS_IO_PLAY_MARKER {
824         MUSIC_TIME mtTime;
825 };
826
827 struct _DMUS_IO_SEGMENT_TRACK_HEADER {
828         DWORD dwFlags;
829 };
830
831 struct _DMUS_IO_SEGMENT_ITEM_HEADER {
832         MUSIC_TIME lTimeLogical;
833         MUSIC_TIME lTimePhysical;
834         DWORD      dwPlayFlags;
835         DWORD      dwFlags;
836 };
837
838 struct _DMUS_IO_SCRIPTTRACK_EVENTHEADER {
839         DWORD      dwFlags;
840         MUSIC_TIME lTimeLogical;
841         MUSIC_TIME lTimePhysical;
842 };
843
844 struct _DMUS_IO_LYRICSTRACK_EVENTHEADER {
845         DWORD dwFlags;
846         DWORD dwTimingFlags;
847         MUSIC_TIME lTimeLogical;
848         MUSIC_TIME lTimePhysical;
849 };
850
851 struct _DMUS_IO_PARAMCONTROLTRACK_OBJECTHEADER {
852         DWORD dwFlags;
853         GUID guidTimeFormat;
854         DWORD dwPChannel;
855         DWORD dwStage;
856         DWORD dwBuffer;
857         GUID guidObject;
858         DWORD dwIndex;
859 };
860
861 struct _DMUS_IO_PARAMCONTROLTRACK_PARAMHEADER {
862         DWORD dwFlags;
863         DWORD dwIndex;
864 };
865
866 struct _DMUS_IO_PARAMCONTROLTRACK_CURVEINFO {
867         MUSIC_TIME mtStartTime;
868         MUSIC_TIME mtEndTime;
869         float      fltStartValue;
870         float      fltEndValue;
871         DWORD      dwCurveType;
872         DWORD      dwFlags;
873 };
874
875 struct _DSOUND_IO_DSBUFFERDESC {
876         DWORD dwFlags;
877         WORD  nChannels;
878         LONG  lVolume;
879         LONG  lPan;
880         DWORD dwReserved;
881 };
882
883 struct _DSOUND_IO_DSBUSID {
884         DWORD busid[1];
885 };
886
887 struct _DSOUND_IO_3D {
888         GUID guid3DAlgorithm;
889         DS3DBUFFER ds3d;
890 };
891
892 struct _DSOUND_IO_DXDMO_HEADER {
893         DWORD dwEffectFlags;
894         GUID  guidDSFXClass;
895         GUID  guidReserved;
896         GUID  guidSendBuffer;
897         DWORD dwReserved;
898 };
899
900 struct _DSOUND_IO_DXDMO_DATA {
901         DWORD data[1];
902 };
903
904 #ifdef __cplusplus
905 }
906 #endif
907
908 #include <poppack.h>
909
910 #endif /* __WINE_DMUSIC_FILEFORMATS_H */