annotate lib/legacy_dx/dmerror.h @ 395:6c3f8694005f

m
author Ritor1
date Fri, 22 Feb 2013 21:47:42 +0600
parents 9c0607679772
children
rev   line source
0
Ritor1
parents:
diff changeset
1 /************************************************************************
Ritor1
parents:
diff changeset
2 * *
Ritor1
parents:
diff changeset
3 * dmerror.h -- Error codes returned by DirectMusic API's *
Ritor1
parents:
diff changeset
4 * *
Ritor1
parents:
diff changeset
5 * Copyright (c) Microsoft Corporation. All rights reserved. *
Ritor1
parents:
diff changeset
6 * *
Ritor1
parents:
diff changeset
7 ************************************************************************/
Ritor1
parents:
diff changeset
8
Ritor1
parents:
diff changeset
9 #ifndef _DMERROR_
Ritor1
parents:
diff changeset
10 #define _DMERROR_
Ritor1
parents:
diff changeset
11
Ritor1
parents:
diff changeset
12 #define FACILITY_DIRECTMUSIC 0x878 /* Shared with DirectSound */
Ritor1
parents:
diff changeset
13 #define DMUS_ERRBASE 0x1000 /* Make error codes human readable in hex */
Ritor1
parents:
diff changeset
14
Ritor1
parents:
diff changeset
15 #ifndef MAKE_HRESULT
Ritor1
parents:
diff changeset
16 #define MAKE_HRESULT(sev,fac,code) \
Ritor1
parents:
diff changeset
17 ((HRESULT) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) )
Ritor1
parents:
diff changeset
18 #endif
Ritor1
parents:
diff changeset
19
Ritor1
parents:
diff changeset
20 #define MAKE_DMHRESULTSUCCESS(code) MAKE_HRESULT(0, FACILITY_DIRECTMUSIC, (DMUS_ERRBASE + (code)))
Ritor1
parents:
diff changeset
21 #define MAKE_DMHRESULTERROR(code) MAKE_HRESULT(1, FACILITY_DIRECTMUSIC, (DMUS_ERRBASE + (code)))
Ritor1
parents:
diff changeset
22
Ritor1
parents:
diff changeset
23 /* DMUS_S_PARTIALLOAD
Ritor1
parents:
diff changeset
24 *
Ritor1
parents:
diff changeset
25 * The object could only load partially. This can happen if some components are
Ritor1
parents:
diff changeset
26 * not registered properly, such as embedded tracks and tools. This can also happen
Ritor1
parents:
diff changeset
27 * if some content is missing. For example, if a segment uses a DLS collection that
Ritor1
parents:
diff changeset
28 * is not in the loader's current search directory.
Ritor1
parents:
diff changeset
29 */
Ritor1
parents:
diff changeset
30 #define DMUS_S_PARTIALLOAD MAKE_DMHRESULTSUCCESS(0x091)
Ritor1
parents:
diff changeset
31
Ritor1
parents:
diff changeset
32 /* DMUS_S_PARTIALDOWNLOAD
Ritor1
parents:
diff changeset
33 *
Ritor1
parents:
diff changeset
34 * Return value from IDirectMusicBand::Download() which indicates that
Ritor1
parents:
diff changeset
35 * some of the instruments safely downloaded, but others failed. This usually
Ritor1
parents:
diff changeset
36 * occurs when some instruments are on PChannels not supported by the performance
Ritor1
parents:
diff changeset
37 * or port.
Ritor1
parents:
diff changeset
38 */
Ritor1
parents:
diff changeset
39 #define DMUS_S_PARTIALDOWNLOAD MAKE_DMHRESULTSUCCESS(0x092)
Ritor1
parents:
diff changeset
40
Ritor1
parents:
diff changeset
41 /* DMUS_S_REQUEUE
Ritor1
parents:
diff changeset
42 *
Ritor1
parents:
diff changeset
43 * Return value from IDirectMusicTool::ProcessPMsg() which indicates to the
Ritor1
parents:
diff changeset
44 * performance that it should cue the PMsg again automatically.
Ritor1
parents:
diff changeset
45 */
Ritor1
parents:
diff changeset
46 #define DMUS_S_REQUEUE MAKE_DMHRESULTSUCCESS(0x200)
Ritor1
parents:
diff changeset
47
Ritor1
parents:
diff changeset
48 /* DMUS_S_FREE
Ritor1
parents:
diff changeset
49 *
Ritor1
parents:
diff changeset
50 * Return value from IDirectMusicTool::ProcessPMsg() which indicates to the
Ritor1
parents:
diff changeset
51 * performance that it should free the PMsg automatically.
Ritor1
parents:
diff changeset
52 */
Ritor1
parents:
diff changeset
53 #define DMUS_S_FREE MAKE_DMHRESULTSUCCESS(0x201)
Ritor1
parents:
diff changeset
54
Ritor1
parents:
diff changeset
55 /* DMUS_S_END
Ritor1
parents:
diff changeset
56 *
Ritor1
parents:
diff changeset
57 * Return value from IDirectMusicTrack::Play() which indicates to the
Ritor1
parents:
diff changeset
58 * segment that the track has no more data after mtEnd.
Ritor1
parents:
diff changeset
59 */
Ritor1
parents:
diff changeset
60 #define DMUS_S_END MAKE_DMHRESULTSUCCESS(0x202)
Ritor1
parents:
diff changeset
61
Ritor1
parents:
diff changeset
62 /* DMUS_S_STRING_TRUNCATED
Ritor1
parents:
diff changeset
63 *
Ritor1
parents:
diff changeset
64 * Returned string has been truncated to fit the buffer size.
Ritor1
parents:
diff changeset
65 */
Ritor1
parents:
diff changeset
66 #define DMUS_S_STRING_TRUNCATED MAKE_DMHRESULTSUCCESS(0x210)
Ritor1
parents:
diff changeset
67
Ritor1
parents:
diff changeset
68 /* DMUS_S_LAST_TOOL
Ritor1
parents:
diff changeset
69 *
Ritor1
parents:
diff changeset
70 * Returned from IDirectMusicGraph::StampPMsg(), this indicates that the PMsg
Ritor1
parents:
diff changeset
71 * is already stamped with the last tool in the graph. The returned PMsg's
Ritor1
parents:
diff changeset
72 * tool pointer is now NULL.
Ritor1
parents:
diff changeset
73 */
Ritor1
parents:
diff changeset
74 #define DMUS_S_LAST_TOOL MAKE_DMHRESULTSUCCESS(0x211)
Ritor1
parents:
diff changeset
75
Ritor1
parents:
diff changeset
76 /* DMUS_S_OVER_CHORD
Ritor1
parents:
diff changeset
77 *
Ritor1
parents:
diff changeset
78 * Returned from IDirectMusicPerformance::MusicToMIDI(), this indicates
Ritor1
parents:
diff changeset
79 * that no note has been calculated because the music value has the note
Ritor1
parents:
diff changeset
80 * at a position higher than the top note of the chord. This applies only
Ritor1
parents:
diff changeset
81 * to DMUS_PLAYMODE_NORMALCHORD play mode. This success code indicates
Ritor1
parents:
diff changeset
82 * that the caller should not do anything with the note. It is not meant
Ritor1
parents:
diff changeset
83 * to be played against this chord.
Ritor1
parents:
diff changeset
84 */
Ritor1
parents:
diff changeset
85 #define DMUS_S_OVER_CHORD MAKE_DMHRESULTSUCCESS(0x212)
Ritor1
parents:
diff changeset
86
Ritor1
parents:
diff changeset
87 /* DMUS_S_UP_OCTAVE
Ritor1
parents:
diff changeset
88 *
Ritor1
parents:
diff changeset
89 * Returned from IDirectMusicPerformance::MIDIToMusic(), and
Ritor1
parents:
diff changeset
90 * IDirectMusicPerformance::MusicToMIDI(), this indicates
Ritor1
parents:
diff changeset
91 * that the note conversion generated a note value that is below 0,
Ritor1
parents:
diff changeset
92 * so it has been bumped up one or more octaves to be in the proper
Ritor1
parents:
diff changeset
93 * MIDI range of 0 through 127.
Ritor1
parents:
diff changeset
94 * Note that this is valid for MIDIToMusic() when using play modes
Ritor1
parents:
diff changeset
95 * DMUS_PLAYMODE_FIXEDTOCHORD and DMUS_PLAYMODE_FIXEDTOKEY, both of
Ritor1
parents:
diff changeset
96 * which store MIDI values in wMusicValue. With MusicToMIDI(), it is
Ritor1
parents:
diff changeset
97 * valid for all play modes.
Ritor1
parents:
diff changeset
98 * Ofcourse, DMUS_PLAYMODE_FIXED will never return this success code.
Ritor1
parents:
diff changeset
99 */
Ritor1
parents:
diff changeset
100 #define DMUS_S_UP_OCTAVE MAKE_DMHRESULTSUCCESS(0x213)
Ritor1
parents:
diff changeset
101
Ritor1
parents:
diff changeset
102 /* DMUS_S_DOWN_OCTAVE
Ritor1
parents:
diff changeset
103 *
Ritor1
parents:
diff changeset
104 * Returned from IDirectMusicPerformance::MIDIToMusic(), and
Ritor1
parents:
diff changeset
105 * IDirectMusicPerformance::MusicToMIDI(), this indicates
Ritor1
parents:
diff changeset
106 * that the note conversion generated a note value that is above 127,
Ritor1
parents:
diff changeset
107 * so it has been bumped down one or more octaves to be in the proper
Ritor1
parents:
diff changeset
108 * MIDI range of 0 through 127.
Ritor1
parents:
diff changeset
109 * Note that this is valid for MIDIToMusic() when using play modes
Ritor1
parents:
diff changeset
110 * DMUS_PLAYMODE_FIXEDTOCHORD and DMUS_PLAYMODE_FIXEDTOKEY, both of
Ritor1
parents:
diff changeset
111 * which store MIDI values in wMusicValue. With MusicToMIDI(), it is
Ritor1
parents:
diff changeset
112 * valid for all play modes.
Ritor1
parents:
diff changeset
113 * Ofcourse, DMUS_PLAYMODE_FIXED will never return this success code.
Ritor1
parents:
diff changeset
114 */
Ritor1
parents:
diff changeset
115 #define DMUS_S_DOWN_OCTAVE MAKE_DMHRESULTSUCCESS(0x214)
Ritor1
parents:
diff changeset
116
Ritor1
parents:
diff changeset
117 /* DMUS_S_NOBUFFERCONTROL
Ritor1
parents:
diff changeset
118 *
Ritor1
parents:
diff changeset
119 * Although the audio output from the port will be routed to the
Ritor1
parents:
diff changeset
120 * same device as the given DirectSound buffer, buffer controls
Ritor1
parents:
diff changeset
121 * such as pan and volume will not affect the output.
Ritor1
parents:
diff changeset
122 *
Ritor1
parents:
diff changeset
123 */
Ritor1
parents:
diff changeset
124 #define DMUS_S_NOBUFFERCONTROL MAKE_DMHRESULTSUCCESS(0x215)
Ritor1
parents:
diff changeset
125
Ritor1
parents:
diff changeset
126 /* DMUS_S_GARBAGE_COLLECTED
Ritor1
parents:
diff changeset
127 *
Ritor1
parents:
diff changeset
128 * The requested operation was not performed because during CollectGarbage
Ritor1
parents:
diff changeset
129 * the loader determined that the object had been released.
Ritor1
parents:
diff changeset
130 */
Ritor1
parents:
diff changeset
131 #define DMUS_S_GARBAGE_COLLECTED MAKE_DMHRESULTSUCCESS(0x216)
Ritor1
parents:
diff changeset
132
Ritor1
parents:
diff changeset
133 /* DMUS_E_DRIVER_FAILED
Ritor1
parents:
diff changeset
134 *
Ritor1
parents:
diff changeset
135 * An unexpected error was returned from a device driver, indicating
Ritor1
parents:
diff changeset
136 * possible failure of the driver or hardware.
Ritor1
parents:
diff changeset
137 */
Ritor1
parents:
diff changeset
138 #define DMUS_E_DRIVER_FAILED MAKE_DMHRESULTERROR(0x0101)
Ritor1
parents:
diff changeset
139
Ritor1
parents:
diff changeset
140 /* DMUS_E_PORTS_OPEN
Ritor1
parents:
diff changeset
141 *
Ritor1
parents:
diff changeset
142 * The requested operation cannot be performed while there are
Ritor1
parents:
diff changeset
143 * instantiated ports in any process in the system.
Ritor1
parents:
diff changeset
144 */
Ritor1
parents:
diff changeset
145 #define DMUS_E_PORTS_OPEN MAKE_DMHRESULTERROR(0x0102)
Ritor1
parents:
diff changeset
146
Ritor1
parents:
diff changeset
147 /* DMUS_E_DEVICE_IN_USE
Ritor1
parents:
diff changeset
148 *
Ritor1
parents:
diff changeset
149 * The requested device is already in use (possibly by a non-DirectMusic
Ritor1
parents:
diff changeset
150 * client) and cannot be opened again.
Ritor1
parents:
diff changeset
151 */
Ritor1
parents:
diff changeset
152 #define DMUS_E_DEVICE_IN_USE MAKE_DMHRESULTERROR(0x0103)
Ritor1
parents:
diff changeset
153
Ritor1
parents:
diff changeset
154 /* DMUS_E_INSUFFICIENTBUFFER
Ritor1
parents:
diff changeset
155 *
Ritor1
parents:
diff changeset
156 * Buffer is not large enough for requested operation.
Ritor1
parents:
diff changeset
157 */
Ritor1
parents:
diff changeset
158 #define DMUS_E_INSUFFICIENTBUFFER MAKE_DMHRESULTERROR(0x0104)
Ritor1
parents:
diff changeset
159
Ritor1
parents:
diff changeset
160 /* DMUS_E_BUFFERNOTSET
Ritor1
parents:
diff changeset
161 *
Ritor1
parents:
diff changeset
162 * No buffer was prepared for the download data.
Ritor1
parents:
diff changeset
163 */
Ritor1
parents:
diff changeset
164 #define DMUS_E_BUFFERNOTSET MAKE_DMHRESULTERROR(0x0105)
Ritor1
parents:
diff changeset
165
Ritor1
parents:
diff changeset
166 /* DMUS_E_BUFFERNOTAVAILABLE
Ritor1
parents:
diff changeset
167 *
Ritor1
parents:
diff changeset
168 * Download failed due to inability to access or create download buffer.
Ritor1
parents:
diff changeset
169 */
Ritor1
parents:
diff changeset
170 #define DMUS_E_BUFFERNOTAVAILABLE MAKE_DMHRESULTERROR(0x0106)
Ritor1
parents:
diff changeset
171
Ritor1
parents:
diff changeset
172 /* DMUS_E_NOTADLSCOL
Ritor1
parents:
diff changeset
173 *
Ritor1
parents:
diff changeset
174 * Error parsing DLS collection. File is corrupt.
Ritor1
parents:
diff changeset
175 */
Ritor1
parents:
diff changeset
176 #define DMUS_E_NOTADLSCOL MAKE_DMHRESULTERROR(0x0108)
Ritor1
parents:
diff changeset
177
Ritor1
parents:
diff changeset
178 /* DMUS_E_INVALIDOFFSET
Ritor1
parents:
diff changeset
179 *
Ritor1
parents:
diff changeset
180 * Wave chunks in DLS collection file are at incorrect offsets.
Ritor1
parents:
diff changeset
181 */
Ritor1
parents:
diff changeset
182 #define DMUS_E_INVALIDOFFSET MAKE_DMHRESULTERROR(0x0109)
Ritor1
parents:
diff changeset
183
Ritor1
parents:
diff changeset
184 /* DMUS_E_ALREADY_LOADED
Ritor1
parents:
diff changeset
185 *
Ritor1
parents:
diff changeset
186 * Second attempt to load a DLS collection that is currently open.
Ritor1
parents:
diff changeset
187 */
Ritor1
parents:
diff changeset
188 #define DMUS_E_ALREADY_LOADED MAKE_DMHRESULTERROR(0x0111)
Ritor1
parents:
diff changeset
189
Ritor1
parents:
diff changeset
190 /* DMUS_E_INVALIDPOS
Ritor1
parents:
diff changeset
191 *
Ritor1
parents:
diff changeset
192 * Error reading wave data from DLS collection. Indicates bad file.
Ritor1
parents:
diff changeset
193 */
Ritor1
parents:
diff changeset
194 #define DMUS_E_INVALIDPOS MAKE_DMHRESULTERROR(0x0113)
Ritor1
parents:
diff changeset
195
Ritor1
parents:
diff changeset
196 /* DMUS_E_INVALIDPATCH
Ritor1
parents:
diff changeset
197 *
Ritor1
parents:
diff changeset
198 * There is no instrument in the collection that matches patch number.
Ritor1
parents:
diff changeset
199 */
Ritor1
parents:
diff changeset
200 #define DMUS_E_INVALIDPATCH MAKE_DMHRESULTERROR(0x0114)
Ritor1
parents:
diff changeset
201
Ritor1
parents:
diff changeset
202 /* DMUS_E_CANNOTSEEK
Ritor1
parents:
diff changeset
203 *
Ritor1
parents:
diff changeset
204 * The IStream* doesn't support Seek().
Ritor1
parents:
diff changeset
205 */
Ritor1
parents:
diff changeset
206 #define DMUS_E_CANNOTSEEK MAKE_DMHRESULTERROR(0x0115)
Ritor1
parents:
diff changeset
207
Ritor1
parents:
diff changeset
208 /* DMUS_E_CANNOTWRITE
Ritor1
parents:
diff changeset
209 *
Ritor1
parents:
diff changeset
210 * The IStream* doesn't support Write().
Ritor1
parents:
diff changeset
211 */
Ritor1
parents:
diff changeset
212 #define DMUS_E_CANNOTWRITE MAKE_DMHRESULTERROR(0x0116)
Ritor1
parents:
diff changeset
213
Ritor1
parents:
diff changeset
214 /* DMUS_E_CHUNKNOTFOUND
Ritor1
parents:
diff changeset
215 *
Ritor1
parents:
diff changeset
216 * The RIFF parser doesn't contain a required chunk while parsing file.
Ritor1
parents:
diff changeset
217 */
Ritor1
parents:
diff changeset
218 #define DMUS_E_CHUNKNOTFOUND MAKE_DMHRESULTERROR(0x0117)
Ritor1
parents:
diff changeset
219
Ritor1
parents:
diff changeset
220 /* DMUS_E_INVALID_DOWNLOADID
Ritor1
parents:
diff changeset
221 *
Ritor1
parents:
diff changeset
222 * Invalid download id was used in the process of creating a download buffer.
Ritor1
parents:
diff changeset
223 */
Ritor1
parents:
diff changeset
224 #define DMUS_E_INVALID_DOWNLOADID MAKE_DMHRESULTERROR(0x0119)
Ritor1
parents:
diff changeset
225
Ritor1
parents:
diff changeset
226 /* DMUS_E_NOT_DOWNLOADED_TO_PORT
Ritor1
parents:
diff changeset
227 *
Ritor1
parents:
diff changeset
228 * Tried to unload an object that was not downloaded or previously unloaded.
Ritor1
parents:
diff changeset
229 */
Ritor1
parents:
diff changeset
230 #define DMUS_E_NOT_DOWNLOADED_TO_PORT MAKE_DMHRESULTERROR(0x0120)
Ritor1
parents:
diff changeset
231
Ritor1
parents:
diff changeset
232 /* DMUS_E_ALREADY_DOWNLOADED
Ritor1
parents:
diff changeset
233 *
Ritor1
parents:
diff changeset
234 * Buffer was already downloaded to synth.
Ritor1
parents:
diff changeset
235 */
Ritor1
parents:
diff changeset
236 #define DMUS_E_ALREADY_DOWNLOADED MAKE_DMHRESULTERROR(0x0121)
Ritor1
parents:
diff changeset
237
Ritor1
parents:
diff changeset
238 /* DMUS_E_UNKNOWN_PROPERTY
Ritor1
parents:
diff changeset
239 *
Ritor1
parents:
diff changeset
240 * The specified property item was not recognized by the target object.
Ritor1
parents:
diff changeset
241 */
Ritor1
parents:
diff changeset
242 #define DMUS_E_UNKNOWN_PROPERTY MAKE_DMHRESULTERROR(0x0122)
Ritor1
parents:
diff changeset
243
Ritor1
parents:
diff changeset
244 /* DMUS_E_SET_UNSUPPORTED
Ritor1
parents:
diff changeset
245 *
Ritor1
parents:
diff changeset
246 * The specified property item may not be set on the target object.
Ritor1
parents:
diff changeset
247 */
Ritor1
parents:
diff changeset
248 #define DMUS_E_SET_UNSUPPORTED MAKE_DMHRESULTERROR(0x0123)
Ritor1
parents:
diff changeset
249
Ritor1
parents:
diff changeset
250 /* DMUS_E_GET_UNSUPPORTED
Ritor1
parents:
diff changeset
251 *
Ritor1
parents:
diff changeset
252 * The specified property item may not be retrieved from the target object.
Ritor1
parents:
diff changeset
253 */
Ritor1
parents:
diff changeset
254 #define DMUS_E_GET_UNSUPPORTED MAKE_DMHRESULTERROR(0x0124)
Ritor1
parents:
diff changeset
255
Ritor1
parents:
diff changeset
256 /* DMUS_E_NOTMONO
Ritor1
parents:
diff changeset
257 *
Ritor1
parents:
diff changeset
258 * Wave chunk has more than one interleaved channel. DLS format requires MONO.
Ritor1
parents:
diff changeset
259 */
Ritor1
parents:
diff changeset
260 #define DMUS_E_NOTMONO MAKE_DMHRESULTERROR(0x0125)
Ritor1
parents:
diff changeset
261
Ritor1
parents:
diff changeset
262 /* DMUS_E_BADARTICULATION
Ritor1
parents:
diff changeset
263 *
Ritor1
parents:
diff changeset
264 * Invalid articulation chunk in DLS collection.
Ritor1
parents:
diff changeset
265 */
Ritor1
parents:
diff changeset
266 #define DMUS_E_BADARTICULATION MAKE_DMHRESULTERROR(0x0126)
Ritor1
parents:
diff changeset
267
Ritor1
parents:
diff changeset
268 /* DMUS_E_BADINSTRUMENT
Ritor1
parents:
diff changeset
269 *
Ritor1
parents:
diff changeset
270 * Invalid instrument chunk in DLS collection.
Ritor1
parents:
diff changeset
271 */
Ritor1
parents:
diff changeset
272 #define DMUS_E_BADINSTRUMENT MAKE_DMHRESULTERROR(0x0127)
Ritor1
parents:
diff changeset
273
Ritor1
parents:
diff changeset
274 /* DMUS_E_BADWAVELINK
Ritor1
parents:
diff changeset
275 *
Ritor1
parents:
diff changeset
276 * Wavelink chunk in DLS collection points to invalid wave.
Ritor1
parents:
diff changeset
277 */
Ritor1
parents:
diff changeset
278 #define DMUS_E_BADWAVELINK MAKE_DMHRESULTERROR(0x0128)
Ritor1
parents:
diff changeset
279
Ritor1
parents:
diff changeset
280 /* DMUS_E_NOARTICULATION
Ritor1
parents:
diff changeset
281 *
Ritor1
parents:
diff changeset
282 * Articulation missing from instrument in DLS collection.
Ritor1
parents:
diff changeset
283 */
Ritor1
parents:
diff changeset
284 #define DMUS_E_NOARTICULATION MAKE_DMHRESULTERROR(0x0129)
Ritor1
parents:
diff changeset
285
Ritor1
parents:
diff changeset
286 /* DMUS_E_NOTPCM
Ritor1
parents:
diff changeset
287 *
Ritor1
parents:
diff changeset
288 * Downoaded DLS wave is not in PCM format.
Ritor1
parents:
diff changeset
289 */
Ritor1
parents:
diff changeset
290 #define DMUS_E_NOTPCM MAKE_DMHRESULTERROR(0x012A)
Ritor1
parents:
diff changeset
291
Ritor1
parents:
diff changeset
292 /* DMUS_E_BADWAVE
Ritor1
parents:
diff changeset
293 *
Ritor1
parents:
diff changeset
294 * Bad wave chunk in DLS collection
Ritor1
parents:
diff changeset
295 */
Ritor1
parents:
diff changeset
296 #define DMUS_E_BADWAVE MAKE_DMHRESULTERROR(0x012B)
Ritor1
parents:
diff changeset
297
Ritor1
parents:
diff changeset
298 /* DMUS_E_BADOFFSETTABLE
Ritor1
parents:
diff changeset
299 *
Ritor1
parents:
diff changeset
300 * Offset Table for download buffer has errors.
Ritor1
parents:
diff changeset
301 */
Ritor1
parents:
diff changeset
302 #define DMUS_E_BADOFFSETTABLE MAKE_DMHRESULTERROR(0x012C)
Ritor1
parents:
diff changeset
303
Ritor1
parents:
diff changeset
304 /* DMUS_E_UNKNOWNDOWNLOAD
Ritor1
parents:
diff changeset
305 *
Ritor1
parents:
diff changeset
306 * Attempted to download unknown data type.
Ritor1
parents:
diff changeset
307 */
Ritor1
parents:
diff changeset
308 #define DMUS_E_UNKNOWNDOWNLOAD MAKE_DMHRESULTERROR(0x012D)
Ritor1
parents:
diff changeset
309
Ritor1
parents:
diff changeset
310 /* DMUS_E_NOSYNTHSINK
Ritor1
parents:
diff changeset
311 *
Ritor1
parents:
diff changeset
312 * The operation could not be completed because no sink was connected to
Ritor1
parents:
diff changeset
313 * the synthesizer.
Ritor1
parents:
diff changeset
314 */
Ritor1
parents:
diff changeset
315 #define DMUS_E_NOSYNTHSINK MAKE_DMHRESULTERROR(0x012E)
Ritor1
parents:
diff changeset
316
Ritor1
parents:
diff changeset
317 /* DMUS_E_ALREADYOPEN
Ritor1
parents:
diff changeset
318 *
Ritor1
parents:
diff changeset
319 * An attempt was made to open the software synthesizer while it was already
Ritor1
parents:
diff changeset
320 * open.
Ritor1
parents:
diff changeset
321 * ASSERT?
Ritor1
parents:
diff changeset
322 */
Ritor1
parents:
diff changeset
323 #define DMUS_E_ALREADYOPEN MAKE_DMHRESULTERROR(0x012F)
Ritor1
parents:
diff changeset
324
Ritor1
parents:
diff changeset
325 /* DMUS_E_ALREADYCLOSE
Ritor1
parents:
diff changeset
326 *
Ritor1
parents:
diff changeset
327 * An attempt was made to close the software synthesizer while it was already
Ritor1
parents:
diff changeset
328 * open.
Ritor1
parents:
diff changeset
329 * ASSERT?
Ritor1
parents:
diff changeset
330 */
Ritor1
parents:
diff changeset
331 #define DMUS_E_ALREADYCLOSED MAKE_DMHRESULTERROR(0x0130)
Ritor1
parents:
diff changeset
332
Ritor1
parents:
diff changeset
333 /* DMUS_E_SYNTHNOTCONFIGURED
Ritor1
parents:
diff changeset
334 *
Ritor1
parents:
diff changeset
335 * The operation could not be completed because the software synth has not
Ritor1
parents:
diff changeset
336 * yet been fully configured.
Ritor1
parents:
diff changeset
337 * ASSERT?
Ritor1
parents:
diff changeset
338 */
Ritor1
parents:
diff changeset
339 #define DMUS_E_SYNTHNOTCONFIGURED MAKE_DMHRESULTERROR(0x0131)
Ritor1
parents:
diff changeset
340
Ritor1
parents:
diff changeset
341 /* DMUS_E_SYNTHACTIVE
Ritor1
parents:
diff changeset
342 *
Ritor1
parents:
diff changeset
343 * The operation cannot be carried out while the synthesizer is active.
Ritor1
parents:
diff changeset
344 */
Ritor1
parents:
diff changeset
345 #define DMUS_E_SYNTHACTIVE MAKE_DMHRESULTERROR(0x0132)
Ritor1
parents:
diff changeset
346
Ritor1
parents:
diff changeset
347 /* DMUS_E_CANNOTREAD
Ritor1
parents:
diff changeset
348 *
Ritor1
parents:
diff changeset
349 * An error occurred while attempting to read from the IStream* object.
Ritor1
parents:
diff changeset
350 */
Ritor1
parents:
diff changeset
351 #define DMUS_E_CANNOTREAD MAKE_DMHRESULTERROR(0x0133)
Ritor1
parents:
diff changeset
352
Ritor1
parents:
diff changeset
353 /* DMUS_E_DMUSIC_RELEASED
Ritor1
parents:
diff changeset
354 *
Ritor1
parents:
diff changeset
355 * The operation cannot be performed because the final instance of the
Ritor1
parents:
diff changeset
356 * DirectMusic object was released. Ports cannot be used after final
Ritor1
parents:
diff changeset
357 * release of the DirectMusic object.
Ritor1
parents:
diff changeset
358 */
Ritor1
parents:
diff changeset
359 #define DMUS_E_DMUSIC_RELEASED MAKE_DMHRESULTERROR(0x0134)
Ritor1
parents:
diff changeset
360
Ritor1
parents:
diff changeset
361 /* DMUS_E_BUFFER_EMPTY
Ritor1
parents:
diff changeset
362 *
Ritor1
parents:
diff changeset
363 * There was no data in the referenced buffer.
Ritor1
parents:
diff changeset
364 */
Ritor1
parents:
diff changeset
365 #define DMUS_E_BUFFER_EMPTY MAKE_DMHRESULTERROR(0x0135)
Ritor1
parents:
diff changeset
366
Ritor1
parents:
diff changeset
367 /* DMUS_E_BUFFER_FULL
Ritor1
parents:
diff changeset
368 *
Ritor1
parents:
diff changeset
369 * There is insufficient space to insert the given event into the buffer.
Ritor1
parents:
diff changeset
370 */
Ritor1
parents:
diff changeset
371 #define DMUS_E_BUFFER_FULL MAKE_DMHRESULTERROR(0x0136)
Ritor1
parents:
diff changeset
372
Ritor1
parents:
diff changeset
373 /* DMUS_E_PORT_NOT_CAPTURE
Ritor1
parents:
diff changeset
374 *
Ritor1
parents:
diff changeset
375 * The given operation could not be carried out because the port is a
Ritor1
parents:
diff changeset
376 * capture port.
Ritor1
parents:
diff changeset
377 */
Ritor1
parents:
diff changeset
378 #define DMUS_E_PORT_NOT_CAPTURE MAKE_DMHRESULTERROR(0x0137)
Ritor1
parents:
diff changeset
379
Ritor1
parents:
diff changeset
380 /* DMUS_E_PORT_NOT_RENDER
Ritor1
parents:
diff changeset
381 *
Ritor1
parents:
diff changeset
382 * The given operation could not be carried out because the port is a
Ritor1
parents:
diff changeset
383 * render port.
Ritor1
parents:
diff changeset
384 */
Ritor1
parents:
diff changeset
385 #define DMUS_E_PORT_NOT_RENDER MAKE_DMHRESULTERROR(0x0138)
Ritor1
parents:
diff changeset
386
Ritor1
parents:
diff changeset
387 /* DMUS_E_DSOUND_NOT_SET
Ritor1
parents:
diff changeset
388 *
Ritor1
parents:
diff changeset
389 * The port could not be created because no DirectSound has been specified.
Ritor1
parents:
diff changeset
390 * Specify a DirectSound interface via the IDirectMusic::SetDirectSound
Ritor1
parents:
diff changeset
391 * method; pass NULL to have DirectMusic manage usage of DirectSound.
Ritor1
parents:
diff changeset
392 */
Ritor1
parents:
diff changeset
393 #define DMUS_E_DSOUND_NOT_SET MAKE_DMHRESULTERROR(0x0139)
Ritor1
parents:
diff changeset
394
Ritor1
parents:
diff changeset
395 /* DMUS_E_ALREADY_ACTIVATED
Ritor1
parents:
diff changeset
396 *
Ritor1
parents:
diff changeset
397 * The operation cannot be carried out while the port is active.
Ritor1
parents:
diff changeset
398 */
Ritor1
parents:
diff changeset
399 #define DMUS_E_ALREADY_ACTIVATED MAKE_DMHRESULTERROR(0x013A)
Ritor1
parents:
diff changeset
400
Ritor1
parents:
diff changeset
401 /* DMUS_E_INVALIDBUFFER
Ritor1
parents:
diff changeset
402 *
Ritor1
parents:
diff changeset
403 * Invalid DirectSound buffer was handed to port.
Ritor1
parents:
diff changeset
404 */
Ritor1
parents:
diff changeset
405 #define DMUS_E_INVALIDBUFFER MAKE_DMHRESULTERROR(0x013B)
Ritor1
parents:
diff changeset
406
Ritor1
parents:
diff changeset
407 /* DMUS_E_WAVEFORMATNOTSUPPORTED
Ritor1
parents:
diff changeset
408 *
Ritor1
parents:
diff changeset
409 * Invalid buffer format was handed to the synth sink.
Ritor1
parents:
diff changeset
410 */
Ritor1
parents:
diff changeset
411 #define DMUS_E_WAVEFORMATNOTSUPPORTED MAKE_DMHRESULTERROR(0x013C)
Ritor1
parents:
diff changeset
412
Ritor1
parents:
diff changeset
413 /* DMUS_E_SYNTHINACTIVE
Ritor1
parents:
diff changeset
414 *
Ritor1
parents:
diff changeset
415 * The operation cannot be carried out while the synthesizer is inactive.
Ritor1
parents:
diff changeset
416 */
Ritor1
parents:
diff changeset
417 #define DMUS_E_SYNTHINACTIVE MAKE_DMHRESULTERROR(0x013D)
Ritor1
parents:
diff changeset
418
Ritor1
parents:
diff changeset
419 /* DMUS_E_DSOUND_ALREADY_SET
Ritor1
parents:
diff changeset
420 *
Ritor1
parents:
diff changeset
421 * IDirectMusic::SetDirectSound has already been called. It may not be
Ritor1
parents:
diff changeset
422 * changed while in use.
Ritor1
parents:
diff changeset
423 */
Ritor1
parents:
diff changeset
424 #define DMUS_E_DSOUND_ALREADY_SET MAKE_DMHRESULTERROR(0x013E)
Ritor1
parents:
diff changeset
425
Ritor1
parents:
diff changeset
426 /* DMUS_E_INVALID_EVENT
Ritor1
parents:
diff changeset
427 *
Ritor1
parents:
diff changeset
428 * The given event is invalid (either it is not a valid MIDI message
Ritor1
parents:
diff changeset
429 * or it makes use of running status). The event cannot be packed
Ritor1
parents:
diff changeset
430 * into the buffer.
Ritor1
parents:
diff changeset
431 */
Ritor1
parents:
diff changeset
432 #define DMUS_E_INVALID_EVENT MAKE_DMHRESULTERROR(0x013F)
Ritor1
parents:
diff changeset
433
Ritor1
parents:
diff changeset
434 /* DMUS_E_UNSUPPORTED_STREAM
Ritor1
parents:
diff changeset
435 *
Ritor1
parents:
diff changeset
436 * The IStream* object does not contain data supported by the loading object.
Ritor1
parents:
diff changeset
437 */
Ritor1
parents:
diff changeset
438 #define DMUS_E_UNSUPPORTED_STREAM MAKE_DMHRESULTERROR(0x0150)
Ritor1
parents:
diff changeset
439
Ritor1
parents:
diff changeset
440 /* DMUS_E_ALREADY_INITED
Ritor1
parents:
diff changeset
441 *
Ritor1
parents:
diff changeset
442 * The object has already been initialized.
Ritor1
parents:
diff changeset
443 */
Ritor1
parents:
diff changeset
444 #define DMUS_E_ALREADY_INITED MAKE_DMHRESULTERROR(0x0151)
Ritor1
parents:
diff changeset
445
Ritor1
parents:
diff changeset
446 /* DMUS_E_INVALID_BAND
Ritor1
parents:
diff changeset
447 *
Ritor1
parents:
diff changeset
448 * The file does not contain a valid band.
Ritor1
parents:
diff changeset
449 */
Ritor1
parents:
diff changeset
450 #define DMUS_E_INVALID_BAND MAKE_DMHRESULTERROR(0x0152)
Ritor1
parents:
diff changeset
451
Ritor1
parents:
diff changeset
452 /* DMUS_E_TRACK_HDR_NOT_FIRST_CK
Ritor1
parents:
diff changeset
453 *
Ritor1
parents:
diff changeset
454 * The IStream* object's data does not have a track header as the first chunk,
Ritor1
parents:
diff changeset
455 * and therefore can not be read by the segment object.
Ritor1
parents:
diff changeset
456 */
Ritor1
parents:
diff changeset
457 #define DMUS_E_TRACK_HDR_NOT_FIRST_CK MAKE_DMHRESULTERROR(0x0155)
Ritor1
parents:
diff changeset
458
Ritor1
parents:
diff changeset
459 /* DMUS_E_TOOL_HDR_NOT_FIRST_CK
Ritor1
parents:
diff changeset
460 *
Ritor1
parents:
diff changeset
461 * The IStream* object's data does not have a tool header as the first chunk,
Ritor1
parents:
diff changeset
462 * and therefore can not be read by the graph object.
Ritor1
parents:
diff changeset
463 */
Ritor1
parents:
diff changeset
464 #define DMUS_E_TOOL_HDR_NOT_FIRST_CK MAKE_DMHRESULTERROR(0x0156)
Ritor1
parents:
diff changeset
465
Ritor1
parents:
diff changeset
466 /* DMUS_E_INVALID_TRACK_HDR
Ritor1
parents:
diff changeset
467 *
Ritor1
parents:
diff changeset
468 * The IStream* object's data contains an invalid track header (ckid is 0 and
Ritor1
parents:
diff changeset
469 * fccType is NULL,) and therefore can not be read by the segment object.
Ritor1
parents:
diff changeset
470 */
Ritor1
parents:
diff changeset
471 #define DMUS_E_INVALID_TRACK_HDR MAKE_DMHRESULTERROR(0x0157)
Ritor1
parents:
diff changeset
472
Ritor1
parents:
diff changeset
473 /* DMUS_E_INVALID_TOOL_HDR
Ritor1
parents:
diff changeset
474 *
Ritor1
parents:
diff changeset
475 * The IStream* object's data contains an invalid tool header (ckid is 0 and
Ritor1
parents:
diff changeset
476 * fccType is NULL,) and therefore can not be read by the graph object.
Ritor1
parents:
diff changeset
477 */
Ritor1
parents:
diff changeset
478 #define DMUS_E_INVALID_TOOL_HDR MAKE_DMHRESULTERROR(0x0158)
Ritor1
parents:
diff changeset
479
Ritor1
parents:
diff changeset
480 /* DMUS_E_ALL_TOOLS_FAILED
Ritor1
parents:
diff changeset
481 *
Ritor1
parents:
diff changeset
482 * The graph object was unable to load all tools from the IStream* object data.
Ritor1
parents:
diff changeset
483 * This may be due to errors in the stream, or the tools being incorrectly
Ritor1
parents:
diff changeset
484 * registered on the client.
Ritor1
parents:
diff changeset
485 */
Ritor1
parents:
diff changeset
486 #define DMUS_E_ALL_TOOLS_FAILED MAKE_DMHRESULTERROR(0x0159)
Ritor1
parents:
diff changeset
487
Ritor1
parents:
diff changeset
488 /* DMUS_E_ALL_TRACKS_FAILED
Ritor1
parents:
diff changeset
489 *
Ritor1
parents:
diff changeset
490 * The segment object was unable to load all tracks from the IStream* object data.
Ritor1
parents:
diff changeset
491 * This may be due to errors in the stream, or the tracks being incorrectly
Ritor1
parents:
diff changeset
492 * registered on the client.
Ritor1
parents:
diff changeset
493 */
Ritor1
parents:
diff changeset
494 #define DMUS_E_ALL_TRACKS_FAILED MAKE_DMHRESULTERROR(0x0160)
Ritor1
parents:
diff changeset
495
Ritor1
parents:
diff changeset
496 /* DMUS_E_NOT_FOUND
Ritor1
parents:
diff changeset
497 *
Ritor1
parents:
diff changeset
498 * The requested item was not contained by the object.
Ritor1
parents:
diff changeset
499 */
Ritor1
parents:
diff changeset
500 #define DMUS_E_NOT_FOUND MAKE_DMHRESULTERROR(0x0161)
Ritor1
parents:
diff changeset
501
Ritor1
parents:
diff changeset
502 /* DMUS_E_NOT_INIT
Ritor1
parents:
diff changeset
503 *
Ritor1
parents:
diff changeset
504 * A required object is not initialized or failed to initialize.
Ritor1
parents:
diff changeset
505 */
Ritor1
parents:
diff changeset
506 #define DMUS_E_NOT_INIT MAKE_DMHRESULTERROR(0x0162)
Ritor1
parents:
diff changeset
507
Ritor1
parents:
diff changeset
508 /* DMUS_E_TYPE_DISABLED
Ritor1
parents:
diff changeset
509 *
Ritor1
parents:
diff changeset
510 * The requested parameter type is currently disabled. Parameter types may
Ritor1
parents:
diff changeset
511 * be enabled and disabled by certain calls to SetParam().
Ritor1
parents:
diff changeset
512 */
Ritor1
parents:
diff changeset
513 #define DMUS_E_TYPE_DISABLED MAKE_DMHRESULTERROR(0x0163)
Ritor1
parents:
diff changeset
514
Ritor1
parents:
diff changeset
515 /* DMUS_E_TYPE_UNSUPPORTED
Ritor1
parents:
diff changeset
516 *
Ritor1
parents:
diff changeset
517 * The requested parameter type is not supported on the object.
Ritor1
parents:
diff changeset
518 */
Ritor1
parents:
diff changeset
519 #define DMUS_E_TYPE_UNSUPPORTED MAKE_DMHRESULTERROR(0x0164)
Ritor1
parents:
diff changeset
520
Ritor1
parents:
diff changeset
521 /* DMUS_E_TIME_PAST
Ritor1
parents:
diff changeset
522 *
Ritor1
parents:
diff changeset
523 * The time is in the past, and the operation can not succeed.
Ritor1
parents:
diff changeset
524 */
Ritor1
parents:
diff changeset
525 #define DMUS_E_TIME_PAST MAKE_DMHRESULTERROR(0x0165)
Ritor1
parents:
diff changeset
526
Ritor1
parents:
diff changeset
527 /* DMUS_E_TRACK_NOT_FOUND
Ritor1
parents:
diff changeset
528 *
Ritor1
parents:
diff changeset
529 * The requested track is not contained by the segment.
Ritor1
parents:
diff changeset
530 */
Ritor1
parents:
diff changeset
531 #define DMUS_E_TRACK_NOT_FOUND MAKE_DMHRESULTERROR(0x0166)
Ritor1
parents:
diff changeset
532
Ritor1
parents:
diff changeset
533 /* DMUS_E_TRACK_NO_CLOCKTIME_SUPPORT
Ritor1
parents:
diff changeset
534 *
Ritor1
parents:
diff changeset
535 * The track does not support Timer time playback or getparam.
Ritor1
parents:
diff changeset
536 */
Ritor1
parents:
diff changeset
537 #define DMUS_E_TRACK_NO_CLOCKTIME_SUPPORT MAKE_DMHRESULTERROR(0x0167)
Ritor1
parents:
diff changeset
538
Ritor1
parents:
diff changeset
539 /* DMUS_E_NO_MASTER_CLOCK
Ritor1
parents:
diff changeset
540 *
Ritor1
parents:
diff changeset
541 * There is no master Timer in the performance. Be sure to call
Ritor1
parents:
diff changeset
542 * IDirectMusicPerformance::Init().
Ritor1
parents:
diff changeset
543 */
Ritor1
parents:
diff changeset
544 #define DMUS_E_NO_MASTER_CLOCK MAKE_DMHRESULTERROR(0x0170)
Ritor1
parents:
diff changeset
545
Ritor1
parents:
diff changeset
546 /* DMUS_E_LOADER_NOCLASSID
Ritor1
parents:
diff changeset
547 *
Ritor1
parents:
diff changeset
548 * The class id field is required and missing in the DMUS_OBJECTDESC.
Ritor1
parents:
diff changeset
549 */
Ritor1
parents:
diff changeset
550 #define DMUS_E_LOADER_NOCLASSID MAKE_DMHRESULTERROR(0x0180)
Ritor1
parents:
diff changeset
551
Ritor1
parents:
diff changeset
552 /* DMUS_E_LOADER_BADPATH
Ritor1
parents:
diff changeset
553 *
Ritor1
parents:
diff changeset
554 * The requested file path is invalid.
Ritor1
parents:
diff changeset
555 */
Ritor1
parents:
diff changeset
556 #define DMUS_E_LOADER_BADPATH MAKE_DMHRESULTERROR(0x0181)
Ritor1
parents:
diff changeset
557
Ritor1
parents:
diff changeset
558 /* DMUS_E_LOADER_FAILEDOPEN
Ritor1
parents:
diff changeset
559 *
Ritor1
parents:
diff changeset
560 * File open failed - either file doesn't exist or is locked.
Ritor1
parents:
diff changeset
561 */
Ritor1
parents:
diff changeset
562 #define DMUS_E_LOADER_FAILEDOPEN MAKE_DMHRESULTERROR(0x0182)
Ritor1
parents:
diff changeset
563
Ritor1
parents:
diff changeset
564 /* DMUS_E_LOADER_FORMATNOTSUPPORTED
Ritor1
parents:
diff changeset
565 *
Ritor1
parents:
diff changeset
566 * Search data type is not supported.
Ritor1
parents:
diff changeset
567 */
Ritor1
parents:
diff changeset
568 #define DMUS_E_LOADER_FORMATNOTSUPPORTED MAKE_DMHRESULTERROR(0x0183)
Ritor1
parents:
diff changeset
569
Ritor1
parents:
diff changeset
570 /* DMUS_E_LOADER_FAILEDCREATE
Ritor1
parents:
diff changeset
571 *
Ritor1
parents:
diff changeset
572 * Unable to find or create object.
Ritor1
parents:
diff changeset
573 */
Ritor1
parents:
diff changeset
574 #define DMUS_E_LOADER_FAILEDCREATE MAKE_DMHRESULTERROR(0x0184)
Ritor1
parents:
diff changeset
575
Ritor1
parents:
diff changeset
576 /* DMUS_E_LOADER_OBJECTNOTFOUND
Ritor1
parents:
diff changeset
577 *
Ritor1
parents:
diff changeset
578 * Object was not found.
Ritor1
parents:
diff changeset
579 */
Ritor1
parents:
diff changeset
580 #define DMUS_E_LOADER_OBJECTNOTFOUND MAKE_DMHRESULTERROR(0x0185)
Ritor1
parents:
diff changeset
581
Ritor1
parents:
diff changeset
582 /* DMUS_E_LOADER_NOFILENAME
Ritor1
parents:
diff changeset
583 *
Ritor1
parents:
diff changeset
584 * The file name is missing from the DMUS_OBJECTDESC.
Ritor1
parents:
diff changeset
585 */
Ritor1
parents:
diff changeset
586 #define DMUS_E_LOADER_NOFILENAME MAKE_DMHRESULTERROR(0x0186)
Ritor1
parents:
diff changeset
587
Ritor1
parents:
diff changeset
588 /* DMUS_E_INVALIDFILE
Ritor1
parents:
diff changeset
589 *
Ritor1
parents:
diff changeset
590 * The file requested is not a valid file.
Ritor1
parents:
diff changeset
591 */
Ritor1
parents:
diff changeset
592 #define DMUS_E_INVALIDFILE MAKE_DMHRESULTERROR(0x0200)
Ritor1
parents:
diff changeset
593
Ritor1
parents:
diff changeset
594 /* DMUS_E_ALREADY_EXISTS
Ritor1
parents:
diff changeset
595 *
Ritor1
parents:
diff changeset
596 * The tool is already contained in the graph. Create a new instance.
Ritor1
parents:
diff changeset
597 */
Ritor1
parents:
diff changeset
598 #define DMUS_E_ALREADY_EXISTS MAKE_DMHRESULTERROR(0x0201)
Ritor1
parents:
diff changeset
599
Ritor1
parents:
diff changeset
600 /* DMUS_E_OUT_OF_RANGE
Ritor1
parents:
diff changeset
601 *
Ritor1
parents:
diff changeset
602 * Value is out of range, for instance the requested length is longer than
Ritor1
parents:
diff changeset
603 * the segment.
Ritor1
parents:
diff changeset
604 */
Ritor1
parents:
diff changeset
605 #define DMUS_E_OUT_OF_RANGE MAKE_DMHRESULTERROR(0x0202)
Ritor1
parents:
diff changeset
606
Ritor1
parents:
diff changeset
607 /* DMUS_E_SEGMENT_INIT_FAILED
Ritor1
parents:
diff changeset
608 *
Ritor1
parents:
diff changeset
609 * Segment initialization failed, most likely due to a critical memory situation.
Ritor1
parents:
diff changeset
610 */
Ritor1
parents:
diff changeset
611 #define DMUS_E_SEGMENT_INIT_FAILED MAKE_DMHRESULTERROR(0x0203)
Ritor1
parents:
diff changeset
612
Ritor1
parents:
diff changeset
613 /* DMUS_E_ALREADY_SENT
Ritor1
parents:
diff changeset
614 *
Ritor1
parents:
diff changeset
615 * The DMUS_PMSG has already been sent to the performance object via
Ritor1
parents:
diff changeset
616 * IDirectMusicPerformance::SendPMsg().
Ritor1
parents:
diff changeset
617 */
Ritor1
parents:
diff changeset
618 #define DMUS_E_ALREADY_SENT MAKE_DMHRESULTERROR(0x0204)
Ritor1
parents:
diff changeset
619
Ritor1
parents:
diff changeset
620 /* DMUS_E_CANNOT_FREE
Ritor1
parents:
diff changeset
621 *
Ritor1
parents:
diff changeset
622 * The DMUS_PMSG was either not allocated by the performance via
Ritor1
parents:
diff changeset
623 * IDirectMusicPerformance::AllocPMsg(), or it was already freed via
Ritor1
parents:
diff changeset
624 * IDirectMusicPerformance::FreePMsg().
Ritor1
parents:
diff changeset
625 */
Ritor1
parents:
diff changeset
626 #define DMUS_E_CANNOT_FREE MAKE_DMHRESULTERROR(0x0205)
Ritor1
parents:
diff changeset
627
Ritor1
parents:
diff changeset
628 /* DMUS_E_CANNOT_OPEN_PORT
Ritor1
parents:
diff changeset
629 *
Ritor1
parents:
diff changeset
630 * The default system port could not be opened.
Ritor1
parents:
diff changeset
631 */
Ritor1
parents:
diff changeset
632 #define DMUS_E_CANNOT_OPEN_PORT MAKE_DMHRESULTERROR(0x0206)
Ritor1
parents:
diff changeset
633
Ritor1
parents:
diff changeset
634 /* DMUS_E_CANNOT_CONVERT
Ritor1
parents:
diff changeset
635 *
Ritor1
parents:
diff changeset
636 * A call to MIDIToMusic() or MusicToMIDI() resulted in an error because
Ritor1
parents:
diff changeset
637 * the requested conversion could not happen. This usually occurs when the
Ritor1
parents:
diff changeset
638 * provided DMUS_CHORD_KEY structure has an invalid chord or scale pattern.
Ritor1
parents:
diff changeset
639 */
Ritor1
parents:
diff changeset
640 #define DMUS_E_CANNOT_CONVERT MAKE_DMHRESULTERROR(0x0207)
Ritor1
parents:
diff changeset
641 /* misspelling in previous versions of DirectX preserved for backward compatibility */
Ritor1
parents:
diff changeset
642 #define DMUS_E_CONNOT_CONVERT DMUS_E_CANNOT_CONVERT
Ritor1
parents:
diff changeset
643
Ritor1
parents:
diff changeset
644 /* DMUS_E_DESCEND_CHUNK_FAIL
Ritor1
parents:
diff changeset
645 *
Ritor1
parents:
diff changeset
646 * DMUS_E_DESCEND_CHUNK_FAIL is returned when the end of the file
Ritor1
parents:
diff changeset
647 * was reached before the desired chunk was found.
Ritor1
parents:
diff changeset
648 */
Ritor1
parents:
diff changeset
649 #define DMUS_E_DESCEND_CHUNK_FAIL MAKE_DMHRESULTERROR(0x0210)
Ritor1
parents:
diff changeset
650
Ritor1
parents:
diff changeset
651 /* DMUS_E_NOT_LOADED
Ritor1
parents:
diff changeset
652 *
Ritor1
parents:
diff changeset
653 * An attempt to use this object failed because it first needs to
Ritor1
parents:
diff changeset
654 * be loaded.
Ritor1
parents:
diff changeset
655 */
Ritor1
parents:
diff changeset
656 #define DMUS_E_NOT_LOADED MAKE_DMHRESULTERROR(0x0211)
Ritor1
parents:
diff changeset
657
Ritor1
parents:
diff changeset
658 /* DMUS_E_SCRIPT_LANGUAGE_INCOMPATIBLE
Ritor1
parents:
diff changeset
659 *
Ritor1
parents:
diff changeset
660 * The activeX scripting engine for the script's language is not compatible with
Ritor1
parents:
diff changeset
661 * DirectMusic.
Ritor1
parents:
diff changeset
662 *
Ritor1
parents:
diff changeset
663 */
Ritor1
parents:
diff changeset
664 #define DMUS_E_SCRIPT_LANGUAGE_INCOMPATIBLE MAKE_DMHRESULTERROR(0x0213)
Ritor1
parents:
diff changeset
665
Ritor1
parents:
diff changeset
666 /* DMUS_E_SCRIPT_UNSUPPORTED_VARTYPE
Ritor1
parents:
diff changeset
667 *
Ritor1
parents:
diff changeset
668 * A varient was used that had a type that is not supported by DirectMusic.
Ritor1
parents:
diff changeset
669 *
Ritor1
parents:
diff changeset
670 */
Ritor1
parents:
diff changeset
671 #define DMUS_E_SCRIPT_UNSUPPORTED_VARTYPE MAKE_DMHRESULTERROR(0x0214)
Ritor1
parents:
diff changeset
672
Ritor1
parents:
diff changeset
673 /* DMUS_E_SCRIPT_ERROR_IN_SCRIPT
Ritor1
parents:
diff changeset
674 *
Ritor1
parents:
diff changeset
675 * An error was encountered while parsing or executing the script.
Ritor1
parents:
diff changeset
676 * The pErrorInfo parameter (if supplied) was filled with information about the error.
Ritor1
parents:
diff changeset
677 */
Ritor1
parents:
diff changeset
678 #define DMUS_E_SCRIPT_ERROR_IN_SCRIPT MAKE_DMHRESULTERROR(0x0215)
Ritor1
parents:
diff changeset
679
Ritor1
parents:
diff changeset
680 /* DMUS_E_SCRIPT_CANTLOAD_OLEAUT32
Ritor1
parents:
diff changeset
681 *
Ritor1
parents:
diff changeset
682 * Loading of oleaut32.dll failed. VBScript and other activeX scripting languages
Ritor1
parents:
diff changeset
683 * require use of oleaut32.dll. On platforms where oleaut32.dll is not present, only
Ritor1
parents:
diff changeset
684 * the DirectMusicScript language, which doesn't require oleaut32.dll can be used.
Ritor1
parents:
diff changeset
685 */
Ritor1
parents:
diff changeset
686 #define DMUS_E_SCRIPT_CANTLOAD_OLEAUT32 MAKE_DMHRESULTERROR(0x0216)
Ritor1
parents:
diff changeset
687
Ritor1
parents:
diff changeset
688 /* DMUS_E_SCRIPT_LOADSCRIPT_ERROR
Ritor1
parents:
diff changeset
689 *
Ritor1
parents:
diff changeset
690 * An error occured while parsing a script loaded using LoadScript. The script that
Ritor1
parents:
diff changeset
691 * was loaded contains an error.
Ritor1
parents:
diff changeset
692 */
Ritor1
parents:
diff changeset
693 #define DMUS_E_SCRIPT_LOADSCRIPT_ERROR MAKE_DMHRESULTERROR(0x0217)
Ritor1
parents:
diff changeset
694
Ritor1
parents:
diff changeset
695 /* DMUS_E_SCRIPT_INVALID_FILE
Ritor1
parents:
diff changeset
696 *
Ritor1
parents:
diff changeset
697 * The script file is invalid.
Ritor1
parents:
diff changeset
698 */
Ritor1
parents:
diff changeset
699 #define DMUS_E_SCRIPT_INVALID_FILE MAKE_DMHRESULTERROR(0x0218)
Ritor1
parents:
diff changeset
700
Ritor1
parents:
diff changeset
701 /* DMUS_E_INVALID_SCRIPTTRACK
Ritor1
parents:
diff changeset
702 *
Ritor1
parents:
diff changeset
703 * The file contains an invalid script track.
Ritor1
parents:
diff changeset
704 */
Ritor1
parents:
diff changeset
705 #define DMUS_E_INVALID_SCRIPTTRACK MAKE_DMHRESULTERROR(0x0219)
Ritor1
parents:
diff changeset
706
Ritor1
parents:
diff changeset
707 /* DMUS_E_SCRIPT_VARIABLE_NOT_FOUND
Ritor1
parents:
diff changeset
708 *
Ritor1
parents:
diff changeset
709 * The script does not contain a variable with the specified name.
Ritor1
parents:
diff changeset
710 */
Ritor1
parents:
diff changeset
711 #define DMUS_E_SCRIPT_VARIABLE_NOT_FOUND MAKE_DMHRESULTERROR(0x021A)
Ritor1
parents:
diff changeset
712
Ritor1
parents:
diff changeset
713 /* DMUS_E_SCRIPT_ROUTINE_NOT_FOUND
Ritor1
parents:
diff changeset
714 *
Ritor1
parents:
diff changeset
715 * The script does not contain a routine with the specified name.
Ritor1
parents:
diff changeset
716 */
Ritor1
parents:
diff changeset
717 #define DMUS_E_SCRIPT_ROUTINE_NOT_FOUND MAKE_DMHRESULTERROR(0x021B)
Ritor1
parents:
diff changeset
718
Ritor1
parents:
diff changeset
719 /* DMUS_E_SCRIPT_CONTENT_READONLY
Ritor1
parents:
diff changeset
720 *
Ritor1
parents:
diff changeset
721 * Scripts variables for content referenced or embedded in a script cannot be set.
Ritor1
parents:
diff changeset
722 */
Ritor1
parents:
diff changeset
723 #define DMUS_E_SCRIPT_CONTENT_READONLY MAKE_DMHRESULTERROR(0x021C)
Ritor1
parents:
diff changeset
724
Ritor1
parents:
diff changeset
725 /* DMUS_E_SCRIPT_NOT_A_REFERENCE
Ritor1
parents:
diff changeset
726 *
Ritor1
parents:
diff changeset
727 * Attempt was made to set a script's variable by reference to a value that was
Ritor1
parents:
diff changeset
728 * not an object type.
Ritor1
parents:
diff changeset
729 */
Ritor1
parents:
diff changeset
730 #define DMUS_E_SCRIPT_NOT_A_REFERENCE MAKE_DMHRESULTERROR(0x021D)
Ritor1
parents:
diff changeset
731
Ritor1
parents:
diff changeset
732 /* DMUS_E_SCRIPT_VALUE_NOT_SUPPORTED
Ritor1
parents:
diff changeset
733 *
Ritor1
parents:
diff changeset
734 * Attempt was made to set a script's variable by value to an object that does
Ritor1
parents:
diff changeset
735 * not support a default value property.
Ritor1
parents:
diff changeset
736 */
Ritor1
parents:
diff changeset
737 #define DMUS_E_SCRIPT_VALUE_NOT_SUPPORTED MAKE_DMHRESULTERROR(0x021E)
Ritor1
parents:
diff changeset
738
Ritor1
parents:
diff changeset
739 /* DMUS_E_INVALID_SEGMENTTRIGGERTRACK
Ritor1
parents:
diff changeset
740 *
Ritor1
parents:
diff changeset
741 * The file contains an invalid segment trigger track.
Ritor1
parents:
diff changeset
742 */
Ritor1
parents:
diff changeset
743 #define DMUS_E_INVALID_SEGMENTTRIGGERTRACK MAKE_DMHRESULTERROR(0x0220)
Ritor1
parents:
diff changeset
744
Ritor1
parents:
diff changeset
745 /* DMUS_E_INVALID_LYRICSTRACK
Ritor1
parents:
diff changeset
746 *
Ritor1
parents:
diff changeset
747 * The file contains an invalid lyrics track.
Ritor1
parents:
diff changeset
748 */
Ritor1
parents:
diff changeset
749 #define DMUS_E_INVALID_LYRICSTRACK MAKE_DMHRESULTERROR(0x0221)
Ritor1
parents:
diff changeset
750
Ritor1
parents:
diff changeset
751 /* DMUS_E_INVALID_PARAMCONTROLTRACK
Ritor1
parents:
diff changeset
752 *
Ritor1
parents:
diff changeset
753 * The file contains an invalid parameter control track.
Ritor1
parents:
diff changeset
754 */
Ritor1
parents:
diff changeset
755 #define DMUS_E_INVALID_PARAMCONTROLTRACK MAKE_DMHRESULTERROR(0x0222)
Ritor1
parents:
diff changeset
756
Ritor1
parents:
diff changeset
757 /* DMUS_E_AUDIOVBSCRIPT_SYNTAXERROR
Ritor1
parents:
diff changeset
758 *
Ritor1
parents:
diff changeset
759 * A script written in AudioVBScript could not be read because it contained a statement that
Ritor1
parents:
diff changeset
760 * is not allowed by the AudioVBScript language.
Ritor1
parents:
diff changeset
761 */
Ritor1
parents:
diff changeset
762 #define DMUS_E_AUDIOVBSCRIPT_SYNTAXERROR MAKE_DMHRESULTERROR(0x0223)
Ritor1
parents:
diff changeset
763
Ritor1
parents:
diff changeset
764 /* DMUS_E_AUDIOVBSCRIPT_RUNTIMEERROR
Ritor1
parents:
diff changeset
765 *
Ritor1
parents:
diff changeset
766 * A script routine written in AudioVBScript failed because an invalid operation occurred. For example,
Ritor1
parents:
diff changeset
767 * adding the number 3 to a segment object would produce this error. So would attempting to call a routine
Ritor1
parents:
diff changeset
768 * that doesn't exist.
Ritor1
parents:
diff changeset
769 */
Ritor1
parents:
diff changeset
770 #define DMUS_E_AUDIOVBSCRIPT_RUNTIMEERROR MAKE_DMHRESULTERROR(0x0224)
Ritor1
parents:
diff changeset
771
Ritor1
parents:
diff changeset
772 /* DMUS_E_AUDIOVBSCRIPT_OPERATIONFAILURE
Ritor1
parents:
diff changeset
773 *
Ritor1
parents:
diff changeset
774 * A script routine written in AudioVBScript failed because a function outside of a script failed to complete.
Ritor1
parents:
diff changeset
775 * For example, a call to PlaySegment that fails to play because of low memory would return this error.
Ritor1
parents:
diff changeset
776 */
Ritor1
parents:
diff changeset
777 #define DMUS_E_AUDIOVBSCRIPT_OPERATIONFAILURE MAKE_DMHRESULTERROR(0x0225)
Ritor1
parents:
diff changeset
778
Ritor1
parents:
diff changeset
779 /* DMUS_E_AUDIOPATHS_NOT_VALID
Ritor1
parents:
diff changeset
780 *
Ritor1
parents:
diff changeset
781 * The Performance has set up some PChannels using the AssignPChannel command, which
Ritor1
parents:
diff changeset
782 * makes it not capable of supporting audio paths.
Ritor1
parents:
diff changeset
783 */
Ritor1
parents:
diff changeset
784 #define DMUS_E_AUDIOPATHS_NOT_VALID MAKE_DMHRESULTERROR(0x0226)
Ritor1
parents:
diff changeset
785
Ritor1
parents:
diff changeset
786 /* DMUS_E_AUDIOPATHS_IN_USE
Ritor1
parents:
diff changeset
787 *
Ritor1
parents:
diff changeset
788 * This is the inverse of the previous error.
Ritor1
parents:
diff changeset
789 * The Performance has set up some audio paths, which makes is incompatible
Ritor1
parents:
diff changeset
790 * with the calls to allocate pchannels, etc.
Ritor1
parents:
diff changeset
791 */
Ritor1
parents:
diff changeset
792 #define DMUS_E_AUDIOPATHS_IN_USE MAKE_DMHRESULTERROR(0x0227)
Ritor1
parents:
diff changeset
793
Ritor1
parents:
diff changeset
794 /* DMUS_E_NO_AUDIOPATH_CONFIG
Ritor1
parents:
diff changeset
795 *
Ritor1
parents:
diff changeset
796 * A segment was asked for its embedded audio path configuration,
Ritor1
parents:
diff changeset
797 * but there isn't any.
Ritor1
parents:
diff changeset
798 */
Ritor1
parents:
diff changeset
799 #define DMUS_E_NO_AUDIOPATH_CONFIG MAKE_DMHRESULTERROR(0x0228)
Ritor1
parents:
diff changeset
800
Ritor1
parents:
diff changeset
801 /* DMUS_E_AUDIOPATH_INACTIVE
Ritor1
parents:
diff changeset
802 *
Ritor1
parents:
diff changeset
803 * An audiopath is inactive, perhaps because closedown was called.
Ritor1
parents:
diff changeset
804 */
Ritor1
parents:
diff changeset
805 #define DMUS_E_AUDIOPATH_INACTIVE MAKE_DMHRESULTERROR(0x0229)
Ritor1
parents:
diff changeset
806
Ritor1
parents:
diff changeset
807 /* DMUS_E_AUDIOPATH_NOBUFFER
Ritor1
parents:
diff changeset
808 *
Ritor1
parents:
diff changeset
809 * An audiopath failed to create because a requested buffer could not be created.
Ritor1
parents:
diff changeset
810 */
Ritor1
parents:
diff changeset
811 #define DMUS_E_AUDIOPATH_NOBUFFER MAKE_DMHRESULTERROR(0x022A)
Ritor1
parents:
diff changeset
812
Ritor1
parents:
diff changeset
813 /* DMUS_E_AUDIOPATH_NOPORT
Ritor1
parents:
diff changeset
814 *
Ritor1
parents:
diff changeset
815 * An audiopath could not be used for playback because it lacked port assignments.
Ritor1
parents:
diff changeset
816 */
Ritor1
parents:
diff changeset
817 #define DMUS_E_AUDIOPATH_NOPORT MAKE_DMHRESULTERROR(0x022B)
Ritor1
parents:
diff changeset
818
Ritor1
parents:
diff changeset
819 /* DMUS_E_NO_AUDIOPATH
Ritor1
parents:
diff changeset
820 *
Ritor1
parents:
diff changeset
821 * Attempt was made to play segment in audiopath mode and there was no audiopath.
Ritor1
parents:
diff changeset
822 */
Ritor1
parents:
diff changeset
823 #define DMUS_E_NO_AUDIOPATH MAKE_DMHRESULTERROR(0x022C)
Ritor1
parents:
diff changeset
824
Ritor1
parents:
diff changeset
825 /* DMUS_E_INVALIDCHUNK
Ritor1
parents:
diff changeset
826 *
Ritor1
parents:
diff changeset
827 * Invalid data was found in a RIFF file chunk.
Ritor1
parents:
diff changeset
828 */
Ritor1
parents:
diff changeset
829 #define DMUS_E_INVALIDCHUNK MAKE_DMHRESULTERROR(0x022D)
Ritor1
parents:
diff changeset
830
Ritor1
parents:
diff changeset
831 /* DMUS_E_AUDIOPATH_NOGLOBALFXBUFFER
Ritor1
parents:
diff changeset
832 *
Ritor1
parents:
diff changeset
833 * Attempt was made to create an audiopath that sends to a global effects buffer which did not exist.
Ritor1
parents:
diff changeset
834 */
Ritor1
parents:
diff changeset
835 #define DMUS_E_AUDIOPATH_NOGLOBALFXBUFFER MAKE_DMHRESULTERROR(0x022E)
Ritor1
parents:
diff changeset
836
Ritor1
parents:
diff changeset
837 /* DMUS_E_INVALID_CONTAINER_OBJECT
Ritor1
parents:
diff changeset
838 *
Ritor1
parents:
diff changeset
839 * The file does not contain a valid container object.
Ritor1
parents:
diff changeset
840 */
Ritor1
parents:
diff changeset
841 #define DMUS_E_INVALID_CONTAINER_OBJECT MAKE_DMHRESULTERROR(0x022F)
Ritor1
parents:
diff changeset
842
Ritor1
parents:
diff changeset
843 #endif