Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

843 lines
27 KiB

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