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