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.

635 lines
20 KiB

  1. /************************************************************************
  2. * *
  3. * dmerror.h -- Error code returned by DirectMusic API's *
  4. * *
  5. * Copyright (c) 1998, Microsoft Corp. All rights reserved. *
  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.
  22. */
  23. #define DMUS_S_PARTIALLOAD MAKE_DMHRESULTSUCCESS(0x091)
  24. /* DMUS_S_PARTIALDOWNLOAD
  25. *
  26. * This code indicates that a band download was only successful in reaching
  27. * some, but not all, of the referenced ports. Some samples may not play
  28. * correctly.
  29. */
  30. #define DMUS_S_PARTIALDOWNLOAD MAKE_DMHRESULTSUCCESS(0x092)
  31. /* DMUS_S_REQUEUE
  32. *
  33. * Return value from IDirectMusicTool::ProcessPMsg() which indicates to the
  34. * performance that it should cue the PMsg again automatically.
  35. */
  36. #define DMUS_S_REQUEUE MAKE_DMHRESULTSUCCESS(0x200)
  37. /* DMUS_S_FREE
  38. *
  39. * Return value from IDirectMusicTool::ProcessPMsg() which indicates to the
  40. * performance that it should free the PMsg automatically.
  41. */
  42. #define DMUS_S_FREE MAKE_DMHRESULTSUCCESS(0x201)
  43. /* DMUS_S_END
  44. *
  45. * Return value from IDirectMusicTrack::Play() which indicates to the
  46. * segment that the track has no more data after mtEnd.
  47. */
  48. #define DMUS_S_END MAKE_DMHRESULTSUCCESS(0x202)
  49. /* DMUS_S_STRING_TRUNCATED
  50. *
  51. * Returned string has been truncated to fit the buffer size.
  52. */
  53. #define DMUS_S_STRING_TRUNCATED MAKE_DMHRESULTSUCCESS(0x210)
  54. /* DMUS_S_LAST_TOOL
  55. *
  56. * Returned from IDirectMusicGraph::StampPMsg(), this indicates that the PMsg
  57. * is already stamped with the last tool in the graph. The returned PMsg's
  58. * tool pointer is now NULL.
  59. */
  60. #define DMUS_S_LAST_TOOL MAKE_DMHRESULTSUCCESS(0x211)
  61. /* DMUS_S_OVER_CHORD
  62. *
  63. * Returned from IDirectMusicPerformance::MusicToMIDI(), this indicates
  64. * that no note has been calculated because the music value has the note
  65. * at a position higher than the top note of the chord. This applies only
  66. * to DMUS_PLAYMODE_NORMALCHORD play mode. This success code indicates
  67. * that the caller should not do anything with the note. It is not meant
  68. * to be played against this chord.
  69. */
  70. #define DMUS_S_OVER_CHORD MAKE_DMHRESULTSUCCESS(0x212)
  71. /* DMUS_S_UP_OCTAVE
  72. *
  73. * Returned from IDirectMusicPerformance::MIDIToMusic(), and
  74. * IDirectMusicPerformance::MusicToMIDI(), this indicates
  75. * that the note conversion generated a note value that is below 0,
  76. * so it has been bumped up one or more octaves to be in the proper
  77. * MIDI range of 0 through 127.
  78. * Note that this is valid for MIDIToMusic() when using play modes
  79. * DMUS_PLAYMODE_FIXEDTOCHORD and DMUS_PLAYMODE_FIXEDTOKEY, both of
  80. * which store MIDI values in wMusicValue. With MusicToMIDI(), it is
  81. * valid for all play modes.
  82. * Ofcourse, DMUS_PLAYMODE_FIXED will never return this success code.
  83. */
  84. #define DMUS_S_UP_OCTAVE MAKE_DMHRESULTSUCCESS(0x213)
  85. /* DMUS_S_DOWN_OCTAVE
  86. *
  87. * Returned from IDirectMusicPerformance::MIDIToMusic(), and
  88. * IDirectMusicPerformance::MusicToMIDI(), this indicates
  89. * that the note conversion generated a note value that is above 127,
  90. * so it has been bumped down one or more octaves to be in the proper
  91. * MIDI range of 0 through 127.
  92. * Note that this is valid for MIDIToMusic() when using play modes
  93. * DMUS_PLAYMODE_FIXEDTOCHORD and DMUS_PLAYMODE_FIXEDTOKEY, both of
  94. * which store MIDI values in wMusicValue. With MusicToMIDI(), it is
  95. * valid for all play modes.
  96. * Ofcourse, DMUS_PLAYMODE_FIXED will never return this success code.
  97. */
  98. #define DMUS_S_DOWN_OCTAVE MAKE_DMHRESULTSUCCESS(0x214)
  99. /* DMUS_S_NOBUFFERCONTROL
  100. *
  101. * Although the audio output from the port will be routed to the
  102. * same device as the given DirectSound buffer, buffer controls
  103. * such as pan and volume will not affect the output.
  104. *
  105. */
  106. #define DMUS_S_NOBUFFERCONTROL MAKE_DMHRESULTSUCCESS(0x215)
  107. /* DMUS_E_DRIVER_FAILED
  108. *
  109. * An unexpected error was returned from a device driver, indicating
  110. * possible failure of the driver or hardware.
  111. */
  112. #define DMUS_E_DRIVER_FAILED MAKE_DMHRESULTERROR(0x0101)
  113. /* DMUS_E_PORTS_OPEN
  114. *
  115. * The requested operation cannot be performed while there are
  116. * instantiated ports in any process in the system.
  117. */
  118. #define DMUS_E_PORTS_OPEN MAKE_DMHRESULTERROR(0x0102)
  119. /* DMUS_E_DEVICE_IN_USE
  120. *
  121. * The requested device is already in use (possibly by a non-DirectMusic
  122. * client) and cannot be opened again.
  123. */
  124. #define DMUS_E_DEVICE_IN_USE MAKE_DMHRESULTERROR(0x0103)
  125. /* DMUS_E_INSUFFICIENTBUFFER
  126. *
  127. * Buffer is not large enough for requested operation.
  128. */
  129. #define DMUS_E_INSUFFICIENTBUFFER MAKE_DMHRESULTERROR(0x0104)
  130. /* DMUS_E_BUFFERNOTSET
  131. *
  132. * No buffer was prepared for the download data.
  133. */
  134. #define DMUS_E_BUFFERNOTSET MAKE_DMHRESULTERROR(0x0105)
  135. /* DMUS_E_BUFFERNOTAVAILABLE
  136. *
  137. * Download failed due to inability to access or create download buffer.
  138. */
  139. #define DMUS_E_BUFFERNOTAVAILABLE MAKE_DMHRESULTERROR(0x0106)
  140. /* DMUS_E_NOTADLSCOL
  141. *
  142. * Error parsing DLS collection. File is corrupt.
  143. */
  144. #define DMUS_E_NOTADLSCOL MAKE_DMHRESULTERROR(0x0108)
  145. /* DMUS_E_INVALIDOFFSET
  146. *
  147. * Wave chunks in DLS collection file are at incorrect offsets.
  148. */
  149. #define DMUS_E_INVALIDOFFSET MAKE_DMHRESULTERROR(0x0109)
  150. /* DMUS_E_ALREADY_LOADED
  151. *
  152. * Second attempt to load a DLS collection that is currently open.
  153. */
  154. #define DMUS_E_ALREADY_LOADED MAKE_DMHRESULTERROR(0x0111)
  155. /* DMUS_E_INVALIDPOS
  156. *
  157. * Error reading wave data from DLS collection. Indicates bad file.
  158. */
  159. #define DMUS_E_INVALIDPOS MAKE_DMHRESULTERROR(0x0113)
  160. /* DMUS_E_INVALIDPATCH
  161. *
  162. * There is no instrument in the collection that matches patch number.
  163. */
  164. #define DMUS_E_INVALIDPATCH MAKE_DMHRESULTERROR(0x0114)
  165. /* DMUS_E_CANNOTSEEK
  166. *
  167. * The IStream* doesn't support Seek().
  168. */
  169. #define DMUS_E_CANNOTSEEK MAKE_DMHRESULTERROR(0x0115)
  170. /* DMUS_E_CANNOTWRITE
  171. *
  172. * The IStream* doesn't support Write().
  173. */
  174. #define DMUS_E_CANNOTWRITE MAKE_DMHRESULTERROR(0x0116)
  175. /* DMUS_E_CHUNKNOTFOUND
  176. *
  177. * The RIFF parser doesn't contain a required chunk while parsing file.
  178. */
  179. #define DMUS_E_CHUNKNOTFOUND MAKE_DMHRESULTERROR(0x0117)
  180. /* DMUS_E_INVALID_DOWNLOADID
  181. *
  182. * Invalid download id was used in the process of creating a download buffer.
  183. */
  184. #define DMUS_E_INVALID_DOWNLOADID MAKE_DMHRESULTERROR(0x0119)
  185. /* DMUS_E_NOT_DOWNLOADED_TO_PORT
  186. *
  187. * Tried to unload an object that was not downloaded or previously unloaded.
  188. */
  189. #define DMUS_E_NOT_DOWNLOADED_TO_PORT MAKE_DMHRESULTERROR(0x0120)
  190. /* DMUS_E_ALREADY_DOWNLOADED
  191. *
  192. * Buffer was already downloaded to synth.
  193. */
  194. #define DMUS_E_ALREADY_DOWNLOADED MAKE_DMHRESULTERROR(0x0121)
  195. /* DMUS_E_UNKNOWN_PROPERTY
  196. *
  197. * The specified property item was not recognized by the target object.
  198. */
  199. #define DMUS_E_UNKNOWN_PROPERTY MAKE_DMHRESULTERROR(0x0122)
  200. /* DMUS_E_SET_UNSUPPORTED
  201. *
  202. * The specified property item may not be set on the target object.
  203. */
  204. #define DMUS_E_SET_UNSUPPORTED MAKE_DMHRESULTERROR(0x0123)
  205. /* DMUS_E_GET_UNSUPPORTED
  206. *
  207. * The specified property item may not be retrieved from the target object.
  208. */
  209. #define DMUS_E_GET_UNSUPPORTED MAKE_DMHRESULTERROR(0x0124)
  210. /* DMUS_E_NOTMONO
  211. *
  212. * Wave chunk has more than one interleaved channel. DLS format requires MONO.
  213. */
  214. #define DMUS_E_NOTMONO MAKE_DMHRESULTERROR(0x0125)
  215. /* DMUS_E_BADARTICULATION
  216. *
  217. * Invalid articulation chunk in DLS collection.
  218. */
  219. #define DMUS_E_BADARTICULATION MAKE_DMHRESULTERROR(0x0126)
  220. /* DMUS_E_BADINSTRUMENT
  221. *
  222. * Invalid instrument chunk in DLS collection.
  223. */
  224. #define DMUS_E_BADINSTRUMENT MAKE_DMHRESULTERROR(0x0127)
  225. /* DMUS_E_BADWAVELINK
  226. *
  227. * Wavelink chunk in DLS collection points to invalid wave.
  228. */
  229. #define DMUS_E_BADWAVELINK MAKE_DMHRESULTERROR(0x0128)
  230. /* DMUS_E_NOARTICULATION
  231. *
  232. * Articulation missing from instrument in DLS collection.
  233. */
  234. #define DMUS_E_NOARTICULATION MAKE_DMHRESULTERROR(0x0129)
  235. /* DMUS_E_NOTPCM
  236. *
  237. * Downoaded DLS wave is not in PCM format.
  238. */
  239. #define DMUS_E_NOTPCM MAKE_DMHRESULTERROR(0x012A)
  240. /* DMUS_E_BADWAVE
  241. *
  242. * Bad wave chunk in DLS collection
  243. */
  244. #define DMUS_E_BADWAVE MAKE_DMHRESULTERROR(0x012B)
  245. /* DMUS_E_BADOFFSETTABLE
  246. *
  247. * Offset Table for download buffer has errors.
  248. */
  249. #define DMUS_E_BADOFFSETTABLE MAKE_DMHRESULTERROR(0x012C)
  250. /* DMUS_E_UNKNOWNDOWNLOAD
  251. *
  252. * Attempted to download unknown data type.
  253. */
  254. #define DMUS_E_UNKNOWNDOWNLOAD MAKE_DMHRESULTERROR(0x012D)
  255. /* DMUS_E_NOSYNTHSINK
  256. *
  257. * The operation could not be completed because no sink was connected to
  258. * the synthesizer.
  259. */
  260. #define DMUS_E_NOSYNTHSINK MAKE_DMHRESULTERROR(0x012E)
  261. /* DMUS_E_ALREADYOPEN
  262. *
  263. * An attempt was made to open the software synthesizer while it was already
  264. * open.
  265. * ASSERT?
  266. */
  267. #define DMUS_E_ALREADYOPEN MAKE_DMHRESULTERROR(0x012F)
  268. /* DMUS_E_ALREADYCLOSE
  269. *
  270. * An attempt was made to close the software synthesizer while it was already
  271. * open.
  272. * ASSERT?
  273. */
  274. #define DMUS_E_ALREADYCLOSED MAKE_DMHRESULTERROR(0x0130)
  275. /* DMUS_E_SYNTHNOTCONFIGURED
  276. *
  277. * The operation could not be completed because the software synth has not
  278. * yet been fully configured.
  279. * ASSERT?
  280. */
  281. #define DMUS_E_SYNTHNOTCONFIGURED MAKE_DMHRESULTERROR(0x0131)
  282. /* DMUS_E_SYNTHACTIVE
  283. *
  284. * The operation cannot be carried out while the synthesizer is active.
  285. */
  286. #define DMUS_E_SYNTHACTIVE MAKE_DMHRESULTERROR(0x0132)
  287. /* DMUS_E_CANNOTREAD
  288. *
  289. * An error occurred while attempting to read from the IStream* object.
  290. */
  291. #define DMUS_E_CANNOTREAD MAKE_DMHRESULTERROR(0x0133)
  292. /* DMUS_E_DMUSIC_RELEASED
  293. *
  294. * The operation cannot be performed because the final instance of the
  295. * DirectMusic object was released. Ports cannot be used after final
  296. * release of the DirectMusic object.
  297. */
  298. #define DMUS_E_DMUSIC_RELEASED MAKE_DMHRESULTERROR(0x0134)
  299. /* DMUS_E_BUFFER_EMPTY
  300. *
  301. * There was no data in the referenced buffer.
  302. */
  303. #define DMUS_E_BUFFER_EMPTY MAKE_DMHRESULTERROR(0x0135)
  304. /* DMUS_E_BUFFER_FULL
  305. *
  306. * There is insufficient space to insert the given event into the buffer.
  307. */
  308. #define DMUS_E_BUFFER_FULL MAKE_DMHRESULTERROR(0x0136)
  309. /* DMUS_E_PORT_NOT_CAPTURE
  310. *
  311. * The given operation could not be carried out because the port is a
  312. * capture port.
  313. */
  314. #define DMUS_E_PORT_NOT_CAPTURE MAKE_DMHRESULTERROR(0x0137)
  315. /* DMUS_E_PORT_NOT_RENDER
  316. *
  317. * The given operation could not be carried out because the port is a
  318. * render port.
  319. */
  320. #define DMUS_E_PORT_NOT_RENDER MAKE_DMHRESULTERROR(0x0138)
  321. /* DMUS_E_DSOUND_NOT_SET
  322. *
  323. * The port could not be created because no DirectSound has been specified.
  324. * Specify a DirectSound interface via the IDirectMusic::SetDirectSound
  325. * method; pass NULL to have DirectMusic manage usage of DirectSound.
  326. */
  327. #define DMUS_E_DSOUND_NOT_SET MAKE_DMHRESULTERROR(0x0139)
  328. /* DMUS_E_ALREADY_ACTIVATED
  329. *
  330. * The operation cannot be carried out while the port is active.
  331. */
  332. #define DMUS_E_ALREADY_ACTIVATED MAKE_DMHRESULTERROR(0x013A)
  333. /* DMUS_E_INVALIDBUFFER
  334. *
  335. * Invalid DirectSound buffer was handed to port.
  336. */
  337. #define DMUS_E_INVALIDBUFFER MAKE_DMHRESULTERROR(0x013B)
  338. /* DMUS_E_WAVEFORMATNOTSUPPORTED
  339. *
  340. * Invalid buffer format was handed to the synth sink.
  341. */
  342. #define DMUS_E_WAVEFORMATNOTSUPPORTED MAKE_DMHRESULTERROR(0x013C)
  343. /* DMUS_E_SYNTHINACTIVE
  344. *
  345. * The operation cannot be carried out while the synthesizer is inactive.
  346. */
  347. #define DMUS_E_SYNTHINACTIVE MAKE_DMHRESULTERROR(0x013D)
  348. /* DMUS_E_DSOUND_ALREADY_SET
  349. *
  350. * IDirectMusic::SetDirectSound has already been called. It may not be
  351. * changed while in use.
  352. */
  353. #define DMUS_E_DSOUND_ALREADY_SET MAKE_DMHRESULTERROR(0x013E)
  354. /* DMUS_E_INVALID_EVENT
  355. *
  356. * The given event is invalid (either it is not a valid MIDI message
  357. * or it makes use of running status). The event cannot be packed
  358. * into the buffer.
  359. */
  360. #define DMUS_E_INVALID_EVENT MAKE_DMHRESULTERROR(0x013F)
  361. /* DMUS_E_UNSUPPORTED_STREAM
  362. *
  363. * The IStream* object does not contain data supported by the loading object.
  364. */
  365. #define DMUS_E_UNSUPPORTED_STREAM MAKE_DMHRESULTERROR(0x0150)
  366. /* DMUS_E_ALREADY_INITED
  367. *
  368. * The object has already been initialized.
  369. */
  370. #define DMUS_E_ALREADY_INITED MAKE_DMHRESULTERROR(0x0151)
  371. /* DMUS_E_INVALID_BAND
  372. *
  373. * The file does not contain a valid band.
  374. */
  375. #define DMUS_E_INVALID_BAND MAKE_DMHRESULTERROR(0x0152)
  376. /* DMUS_E_TRACK_HDR_NOT_FIRST_CK
  377. *
  378. * The IStream* object's data does not have a track header as the first chunk,
  379. * and therefore can not be read by the segment object.
  380. */
  381. #define DMUS_E_TRACK_HDR_NOT_FIRST_CK MAKE_DMHRESULTERROR(0x0155)
  382. /* DMUS_E_TOOL_HDR_NOT_FIRST_CK
  383. *
  384. * The IStream* object's data does not have a tool header as the first chunk,
  385. * and therefore can not be read by the graph object.
  386. */
  387. #define DMUS_E_TOOL_HDR_NOT_FIRST_CK MAKE_DMHRESULTERROR(0x0156)
  388. /* DMUS_E_INVALID_TRACK_HDR
  389. *
  390. * The IStream* object's data contains an invalid track header (ckid is 0 and
  391. * fccType is NULL,) and therefore can not be read by the segment object.
  392. */
  393. #define DMUS_E_INVALID_TRACK_HDR MAKE_DMHRESULTERROR(0x0157)
  394. /* DMUS_E_INVALID_TOOL_HDR
  395. *
  396. * The IStream* object's data contains an invalid tool header (ckid is 0 and
  397. * fccType is NULL,) and therefore can not be read by the graph object.
  398. */
  399. #define DMUS_E_INVALID_TOOL_HDR MAKE_DMHRESULTERROR(0x0158)
  400. /* DMUS_E_ALL_TOOLS_FAILED
  401. *
  402. * The graph object was unable to load all tools from the IStream* object data.
  403. * This may be due to errors in the stream, or the tools being incorrectly
  404. * registered on the client.
  405. */
  406. #define DMUS_E_ALL_TOOLS_FAILED MAKE_DMHRESULTERROR(0x0159)
  407. /* DMUS_E_ALL_TRACKS_FAILED
  408. *
  409. * The segment object was unable to load all tracks from the IStream* object data.
  410. * This may be due to errors in the stream, or the tracks being incorrectly
  411. * registered on the client.
  412. */
  413. #define DMUS_E_ALL_TRACKS_FAILED MAKE_DMHRESULTERROR(0x0160)
  414. /* DMUS_E_NOT_FOUND
  415. *
  416. * The requested item was not contained by the object.
  417. */
  418. #define DMUS_E_NOT_FOUND MAKE_DMHRESULTERROR(0x0161)
  419. /* DMUS_E_NOT_INIT
  420. *
  421. * A required object is not initialized or failed to initialize.
  422. */
  423. #define DMUS_E_NOT_INIT MAKE_DMHRESULTERROR(0x0162)
  424. /* DMUS_E_TYPE_DISABLED
  425. *
  426. * The requested parameter type is currently disabled. Parameter types may
  427. * be enabled and disabled by certain calls to SetParam().
  428. */
  429. #define DMUS_E_TYPE_DISABLED MAKE_DMHRESULTERROR(0x0163)
  430. /* DMUS_E_TYPE_UNSUPPORTED
  431. *
  432. * The requested parameter type is not supported on the object.
  433. */
  434. #define DMUS_E_TYPE_UNSUPPORTED MAKE_DMHRESULTERROR(0x0164)
  435. /* DMUS_E_TIME_PAST
  436. *
  437. * The time is in the past, and the operation can not succeed.
  438. */
  439. #define DMUS_E_TIME_PAST MAKE_DMHRESULTERROR(0x0165)
  440. /* DMUS_E_TRACK_NOT_FOUND
  441. *
  442. * The requested track is not contained by the segment.
  443. */
  444. #define DMUS_E_TRACK_NOT_FOUND MAKE_DMHRESULTERROR(0x0166)
  445. /* DMUS_E_NO_MASTER_CLOCK
  446. *
  447. * There is no master clock in the performance. Be sure to call
  448. * IDirectMusicPerformance::Init().
  449. */
  450. #define DMUS_E_NO_MASTER_CLOCK MAKE_DMHRESULTERROR(0x0170)
  451. /* DMUS_E_LOADER_NOCLASSID
  452. *
  453. * The class id field is required and missing in the DMUS_OBJECTDESC.
  454. */
  455. #define DMUS_E_LOADER_NOCLASSID MAKE_DMHRESULTERROR(0x0180)
  456. /* DMUS_E_LOADER_BADPATH
  457. *
  458. * The requested file path is invalid.
  459. */
  460. #define DMUS_E_LOADER_BADPATH MAKE_DMHRESULTERROR(0x0181)
  461. /* DMUS_E_LOADER_FAILEDOPEN
  462. *
  463. * File open failed - either file doesn't exist or is locked.
  464. */
  465. #define DMUS_E_LOADER_FAILEDOPEN MAKE_DMHRESULTERROR(0x0182)
  466. /* DMUS_E_LOADER_FORMATNOTSUPPORTED
  467. *
  468. * Search data type is not supported.
  469. */
  470. #define DMUS_E_LOADER_FORMATNOTSUPPORTED MAKE_DMHRESULTERROR(0x0183)
  471. /* DMUS_E_LOADER_FAILEDCREATE
  472. *
  473. * Unable to find or create object.
  474. */
  475. #define DMUS_E_LOADER_FAILEDCREATE MAKE_DMHRESULTERROR(0x0184)
  476. /* DMUS_E_LOADER_OBJECTNOTFOUND
  477. *
  478. * Object was not found.
  479. */
  480. #define DMUS_E_LOADER_OBJECTNOTFOUND MAKE_DMHRESULTERROR(0x0185)
  481. /* DMUS_E_LOADER_NOFILENAME
  482. *
  483. * The file name is missing from the DMUS_OBJECTDESC.
  484. */
  485. #define DMUS_E_LOADER_NOFILENAME MAKE_DMHRESULTERROR(0x0186)
  486. /* DMUS_E_INVALIDFILE
  487. *
  488. * The file requested is not a valid file.
  489. */
  490. #define DMUS_E_INVALIDFILE MAKE_DMHRESULTERROR(0x0200)
  491. /* DMUS_E_ALREADY_EXISTS
  492. *
  493. * The tool is already contained in the graph. Create a new instance.
  494. */
  495. #define DMUS_E_ALREADY_EXISTS MAKE_DMHRESULTERROR(0x0201)
  496. /* DMUS_E_OUT_OF_RANGE
  497. *
  498. * Value is out of range, for instance the requested length is longer than
  499. * the segment.
  500. */
  501. #define DMUS_E_OUT_OF_RANGE MAKE_DMHRESULTERROR(0x0202)
  502. /* DMUS_E_SEGMENT_INIT_FAILED
  503. *
  504. * Segment initialization failed, most likely due to a critical memory situation.
  505. */
  506. #define DMUS_E_SEGMENT_INIT_FAILED MAKE_DMHRESULTERROR(0x0203)
  507. /* DMUS_E_ALREADY_SENT
  508. *
  509. * The DMUS_PMSG has already been sent to the performance object via
  510. * IDirectMusicPerformance::SendPMsg().
  511. */
  512. #define DMUS_E_ALREADY_SENT MAKE_DMHRESULTERROR(0x0204)
  513. /* DMUS_E_CANNOT_FREE
  514. *
  515. * The DMUS_PMSG was either not allocated by the performance via
  516. * IDirectMusicPerformance::AllocPMsg(), or it was already freed via
  517. * IDirectMusicPerformance::FreePMsg().
  518. */
  519. #define DMUS_E_CANNOT_FREE MAKE_DMHRESULTERROR(0x0205)
  520. /* DMUS_E_CANNOT_OPEN_PORT
  521. *
  522. * The default system port could not be opened.
  523. */
  524. #define DMUS_E_CANNOT_OPEN_PORT MAKE_DMHRESULTERROR(0x0206)
  525. /* DMUS_E_CONNOT_CONVERT
  526. *
  527. * A call to MIDIToMusic() or MusicToMIDI() resulted in an error because
  528. * the requested conversion could not happen. This usually occurs when the
  529. * provided DMUS_CHORD_KEY structure has an invalid chord or scale pattern.
  530. */
  531. #define DMUS_E_CONNOT_CONVERT MAKE_DMHRESULTERROR(0x0207)
  532. /* DMUS_E_DESCEND_CHUNK_FAIL
  533. *
  534. * DMUS_E_DESCEND_CHUNK_FAIL is returned when the end of the file
  535. * was reached before the desired chunk was found.
  536. */
  537. #define DMUS_E_DESCEND_CHUNK_FAIL MAKE_DMHRESULTERROR(0x0210)
  538. #endif