1 | /* DirectMusic Error Codes
|
---|
2 | *
|
---|
3 | * Copyright (C) 2003-2004 Rok Mandeljc
|
---|
4 | *
|
---|
5 | * This program is free software; you can redistribute it and/or
|
---|
6 | * modify it under the terms of the GNU Lesser General Public
|
---|
7 | * License as published by the Free Software Foundation; either
|
---|
8 | * version 2.1 of the License, or (at your option) any later version.
|
---|
9 | *
|
---|
10 | * This program is distributed in the hope that it will be useful,
|
---|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
13 | * Lesser General Public License for more details.
|
---|
14 | *
|
---|
15 | * You should have received a copy of the GNU Lesser General Public
|
---|
16 | * License along with this program; if not, write to the Free Software
|
---|
17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
18 | */
|
---|
19 |
|
---|
20 | /*
|
---|
21 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
22 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
23 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
24 | * a choice of LGPL license versions is made available with the language indicating
|
---|
25 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
26 | * of the LGPL is applied is otherwise unspecified.
|
---|
27 | */
|
---|
28 |
|
---|
29 | #ifndef __WINE_DMUSIC_ERROR_H
|
---|
30 | #define __WINE_DMUSIC_ERROR_H
|
---|
31 |
|
---|
32 | /*****************************************************************************
|
---|
33 | * Error code handling
|
---|
34 | */
|
---|
35 | #define FACILITY_DIRECTMUSIC 0x878
|
---|
36 | #define DMUS_ERRBASE 0x1000
|
---|
37 |
|
---|
38 | #ifndef MAKE_HRESULT
|
---|
39 | #define MAKE_HRESULT(sev,fac,code) \
|
---|
40 | ((HRESULT) (((ULONG)(sev)<<31) | ((ULONG)(fac)<<16) | ((ULONG)(code))) )
|
---|
41 | #endif
|
---|
42 |
|
---|
43 | #define MAKE_DMHRESULTSUCCESS(code) MAKE_HRESULT(0, FACILITY_DIRECTMUSIC, (DMUS_ERRBASE + (code)))
|
---|
44 | #define MAKE_DMHRESULTERROR(code) MAKE_HRESULT(1, FACILITY_DIRECTMUSIC, (DMUS_ERRBASE + (code)))
|
---|
45 |
|
---|
46 | /*****************************************************************************
|
---|
47 | * Error codes
|
---|
48 | */
|
---|
49 |
|
---|
50 | #define DMUS_S_PARTIALLOAD MAKE_DMHRESULTSUCCESS(0x091)
|
---|
51 | #define DMUS_S_PARTIALDOWNLOAD MAKE_DMHRESULTSUCCESS(0x092)
|
---|
52 | #define DMUS_S_REQUEUE MAKE_DMHRESULTSUCCESS(0x200)
|
---|
53 | #define DMUS_S_FREE MAKE_DMHRESULTSUCCESS(0x201)
|
---|
54 | #define DMUS_S_END MAKE_DMHRESULTSUCCESS(0x202)
|
---|
55 | #define DMUS_S_STRING_TRUNCATED MAKE_DMHRESULTSUCCESS(0x210)
|
---|
56 | #define DMUS_S_LAST_TOOL MAKE_DMHRESULTSUCCESS(0x211)
|
---|
57 | #define DMUS_S_OVER_CHORD MAKE_DMHRESULTSUCCESS(0x212)
|
---|
58 | #define DMUS_S_UP_OCTAVE MAKE_DMHRESULTSUCCESS(0x213)
|
---|
59 | #define DMUS_S_DOWN_OCTAVE MAKE_DMHRESULTSUCCESS(0x214)
|
---|
60 | #define DMUS_S_NOBUFFERCONTROL MAKE_DMHRESULTSUCCESS(0x215)
|
---|
61 | #define DMUS_S_GARBAGE_COLLECTED MAKE_DMHRESULTSUCCESS(0x216)
|
---|
62 |
|
---|
63 | #define DMUS_E_DRIVER_FAILED MAKE_DMHRESULTERROR(0x0101)
|
---|
64 | #define DMUS_E_PORTS_OPEN MAKE_DMHRESULTERROR(0x0102)
|
---|
65 | #define DMUS_E_DEVICE_IN_USE MAKE_DMHRESULTERROR(0x0103)
|
---|
66 | #define DMUS_E_INSUFFICIENTBUFFER MAKE_DMHRESULTERROR(0x0104)
|
---|
67 | #define DMUS_E_BUFFERNOTSET MAKE_DMHRESULTERROR(0x0105)
|
---|
68 | #define DMUS_E_BUFFERNOTAVAILABLE MAKE_DMHRESULTERROR(0x0106)
|
---|
69 | #define DMUS_E_NOTADLSCOL MAKE_DMHRESULTERROR(0x0108)
|
---|
70 | #define DMUS_E_INVALIDOFFSET MAKE_DMHRESULTERROR(0x0109)
|
---|
71 | #define DMUS_E_ALREADY_LOADED MAKE_DMHRESULTERROR(0x0111)
|
---|
72 | #define DMUS_E_INVALIDPOS MAKE_DMHRESULTERROR(0x0113)
|
---|
73 | #define DMUS_E_INVALIDPATCH MAKE_DMHRESULTERROR(0x0114)
|
---|
74 | #define DMUS_E_CANNOTSEEK MAKE_DMHRESULTERROR(0x0115)
|
---|
75 | #define DMUS_E_CANNOTWRITE MAKE_DMHRESULTERROR(0x0116)
|
---|
76 | #define DMUS_E_CHUNKNOTFOUND MAKE_DMHRESULTERROR(0x0117)
|
---|
77 | #define DMUS_E_INVALID_DOWNLOADID MAKE_DMHRESULTERROR(0x0119)
|
---|
78 | #define DMUS_E_NOT_DOWNLOADED_TO_PORT MAKE_DMHRESULTERROR(0x0120)
|
---|
79 | #define DMUS_E_ALREADY_DOWNLOADED MAKE_DMHRESULTERROR(0x0121)
|
---|
80 | #define DMUS_E_UNKNOWN_PROPERTY MAKE_DMHRESULTERROR(0x0122)
|
---|
81 | #define DMUS_E_SET_UNSUPPORTED MAKE_DMHRESULTERROR(0x0123)
|
---|
82 | #define DMUS_E_GET_UNSUPPORTED MAKE_DMHRESULTERROR(0x0124)
|
---|
83 | #define DMUS_E_NOTMONO MAKE_DMHRESULTERROR(0x0125)
|
---|
84 | #define DMUS_E_BADARTICULATION MAKE_DMHRESULTERROR(0x0126)
|
---|
85 | #define DMUS_E_BADINSTRUMENT MAKE_DMHRESULTERROR(0x0127)
|
---|
86 | #define DMUS_E_BADWAVELINK MAKE_DMHRESULTERROR(0x0128)
|
---|
87 | #define DMUS_E_NOARTICULATION MAKE_DMHRESULTERROR(0x0129)
|
---|
88 | #define DMUS_E_NOTPCM MAKE_DMHRESULTERROR(0x012A)
|
---|
89 | #define DMUS_E_BADWAVE MAKE_DMHRESULTERROR(0x012B)
|
---|
90 | #define DMUS_E_BADOFFSETTABLE MAKE_DMHRESULTERROR(0x012C)
|
---|
91 | #define DMUS_E_UNKNOWNDOWNLOAD MAKE_DMHRESULTERROR(0x012D)
|
---|
92 | #define DMUS_E_NOSYNTHSINK MAKE_DMHRESULTERROR(0x012E)
|
---|
93 | #define DMUS_E_ALREADYOPEN MAKE_DMHRESULTERROR(0x012F)
|
---|
94 | #define DMUS_E_ALREADYCLOSED MAKE_DMHRESULTERROR(0x0130)
|
---|
95 | #define DMUS_E_SYNTHNOTCONFIGURED MAKE_DMHRESULTERROR(0x0131)
|
---|
96 | #define DMUS_E_SYNTHACTIVE MAKE_DMHRESULTERROR(0x0132)
|
---|
97 | #define DMUS_E_CANNOTREAD MAKE_DMHRESULTERROR(0x0133)
|
---|
98 | #define DMUS_E_DMUSIC_RELEASED MAKE_DMHRESULTERROR(0x0134)
|
---|
99 | #define DMUS_E_BUFFER_EMPTY MAKE_DMHRESULTERROR(0x0135)
|
---|
100 | #define DMUS_E_BUFFER_FULL MAKE_DMHRESULTERROR(0x0136)
|
---|
101 | #define DMUS_E_PORT_NOT_CAPTURE MAKE_DMHRESULTERROR(0x0137)
|
---|
102 | #define DMUS_E_PORT_NOT_RENDER MAKE_DMHRESULTERROR(0x0138)
|
---|
103 | #define DMUS_E_DSOUND_NOT_SET MAKE_DMHRESULTERROR(0x0139)
|
---|
104 | #define DMUS_E_ALREADY_ACTIVATED MAKE_DMHRESULTERROR(0x013A)
|
---|
105 | #define DMUS_E_INVALIDBUFFER MAKE_DMHRESULTERROR(0x013B)
|
---|
106 | #define DMUS_E_WAVEFORMATNOTSUPPORTED MAKE_DMHRESULTERROR(0x013C)
|
---|
107 | #define DMUS_E_SYNTHINACTIVE MAKE_DMHRESULTERROR(0x013D)
|
---|
108 | #define DMUS_E_DSOUND_ALREADY_SET MAKE_DMHRESULTERROR(0x013E)
|
---|
109 | #define DMUS_E_INVALID_EVENT MAKE_DMHRESULTERROR(0x013F)
|
---|
110 | #define DMUS_E_UNSUPPORTED_STREAM MAKE_DMHRESULTERROR(0x0150)
|
---|
111 | #define DMUS_E_ALREADY_INITED MAKE_DMHRESULTERROR(0x0151)
|
---|
112 | #define DMUS_E_INVALID_BAND MAKE_DMHRESULTERROR(0x0152)
|
---|
113 | #define DMUS_E_TRACK_HDR_NOT_FIRST_CK MAKE_DMHRESULTERROR(0x0155)
|
---|
114 | #define DMUS_E_TOOL_HDR_NOT_FIRST_CK MAKE_DMHRESULTERROR(0x0156)
|
---|
115 | #define DMUS_E_INVALID_TRACK_HDR MAKE_DMHRESULTERROR(0x0157)
|
---|
116 | #define DMUS_E_INVALID_TOOL_HDR MAKE_DMHRESULTERROR(0x0158)
|
---|
117 | #define DMUS_E_ALL_TOOLS_FAILED MAKE_DMHRESULTERROR(0x0159)
|
---|
118 | #define DMUS_E_ALL_TRACKS_FAILED MAKE_DMHRESULTERROR(0x0160)
|
---|
119 | #define DMUS_E_NOT_FOUND MAKE_DMHRESULTERROR(0x0161)
|
---|
120 | #define DMUS_E_NOT_INIT MAKE_DMHRESULTERROR(0x0162)
|
---|
121 | #define DMUS_E_TYPE_DISABLED MAKE_DMHRESULTERROR(0x0163)
|
---|
122 | #define DMUS_E_TYPE_UNSUPPORTED MAKE_DMHRESULTERROR(0x0164)
|
---|
123 | #define DMUS_E_TIME_PAST MAKE_DMHRESULTERROR(0x0165)
|
---|
124 | #define DMUS_E_TRACK_NOT_FOUND MAKE_DMHRESULTERROR(0x0166)
|
---|
125 | #define DMUS_E_TRACK_NO_CLOCKTIME_SUPPORT MAKE_DMHRESULTERROR(0x0167)
|
---|
126 | #define DMUS_E_NO_MASTER_CLOCK MAKE_DMHRESULTERROR(0x0170)
|
---|
127 | #define DMUS_E_LOADER_NOCLASSID MAKE_DMHRESULTERROR(0x0180)
|
---|
128 | #define DMUS_E_LOADER_BADPATH MAKE_DMHRESULTERROR(0x0181)
|
---|
129 | #define DMUS_E_LOADER_FAILEDOPEN MAKE_DMHRESULTERROR(0x0182)
|
---|
130 | #define DMUS_E_LOADER_FORMATNOTSUPPORTED MAKE_DMHRESULTERROR(0x0183)
|
---|
131 | #define DMUS_E_LOADER_FAILEDCREATE MAKE_DMHRESULTERROR(0x0184)
|
---|
132 | #define DMUS_E_LOADER_OBJECTNOTFOUND MAKE_DMHRESULTERROR(0x0185)
|
---|
133 | #define DMUS_E_LOADER_NOFILENAME MAKE_DMHRESULTERROR(0x0186)
|
---|
134 | #define DMUS_E_INVALIDFILE MAKE_DMHRESULTERROR(0x0200)
|
---|
135 | #define DMUS_E_ALREADY_EXISTS MAKE_DMHRESULTERROR(0x0201)
|
---|
136 | #define DMUS_E_OUT_OF_RANGE MAKE_DMHRESULTERROR(0x0202)
|
---|
137 | #define DMUS_E_SEGMENT_INIT_FAILED MAKE_DMHRESULTERROR(0x0203)
|
---|
138 | #define DMUS_E_ALREADY_SENT MAKE_DMHRESULTERROR(0x0204)
|
---|
139 | #define DMUS_E_CANNOT_FREE MAKE_DMHRESULTERROR(0x0205)
|
---|
140 | #define DMUS_E_CANNOT_OPEN_PORT MAKE_DMHRESULTERROR(0x0206)
|
---|
141 | #define DMUS_E_CANNOT_CONVERT MAKE_DMHRESULTERROR(0x0207)
|
---|
142 | #define DMUS_E_DESCEND_CHUNK_FAIL MAKE_DMHRESULTERROR(0x0210)
|
---|
143 | #define DMUS_E_NOT_LOADED MAKE_DMHRESULTERROR(0x0211)
|
---|
144 | #define DMUS_E_SCRIPT_LANGUAGE_INCOMPATIBLE MAKE_DMHRESULTERROR(0x0213)
|
---|
145 | #define DMUS_E_SCRIPT_UNSUPPORTED_VARTYPE MAKE_DMHRESULTERROR(0x0214)
|
---|
146 | #define DMUS_E_SCRIPT_ERROR_IN_SCRIPT MAKE_DMHRESULTERROR(0x0215)
|
---|
147 | #define DMUS_E_SCRIPT_CANTLOAD_OLEAUT32 MAKE_DMHRESULTERROR(0x0216)
|
---|
148 | #define DMUS_E_SCRIPT_LOADSCRIPT_ERROR MAKE_DMHRESULTERROR(0x0217)
|
---|
149 | #define DMUS_E_SCRIPT_INVALID_FILE MAKE_DMHRESULTERROR(0x0218)
|
---|
150 | #define DMUS_E_INVALID_SCRIPTTRACK MAKE_DMHRESULTERROR(0x0219)
|
---|
151 | #define DMUS_E_SCRIPT_VARIABLE_NOT_FOUND MAKE_DMHRESULTERROR(0x021A)
|
---|
152 | #define DMUS_E_SCRIPT_ROUTINE_NOT_FOUND MAKE_DMHRESULTERROR(0x021B)
|
---|
153 | #define DMUS_E_SCRIPT_CONTENT_READONLY MAKE_DMHRESULTERROR(0x021C)
|
---|
154 | #define DMUS_E_SCRIPT_NOT_A_REFERENCE MAKE_DMHRESULTERROR(0x021D)
|
---|
155 | #define DMUS_E_SCRIPT_VALUE_NOT_SUPPORTED MAKE_DMHRESULTERROR(0x021E)
|
---|
156 | #define DMUS_E_INVALID_SEGMENTTRIGGERTRACK MAKE_DMHRESULTERROR(0x0220)
|
---|
157 | #define DMUS_E_INVALID_LYRICSTRACK MAKE_DMHRESULTERROR(0x0221)
|
---|
158 | #define DMUS_E_INVALID_PARAMCONTROLTRACK MAKE_DMHRESULTERROR(0x0222)
|
---|
159 | #define DMUS_E_AUDIOVBSCRIPT_SYNTAXERROR MAKE_DMHRESULTERROR(0x0223)
|
---|
160 | #define DMUS_E_AUDIOVBSCRIPT_RUNTIMEERROR MAKE_DMHRESULTERROR(0x0224)
|
---|
161 | #define DMUS_E_AUDIOVBSCRIPT_OPERATIONFAILURE MAKE_DMHRESULTERROR(0x0225)
|
---|
162 | #define DMUS_E_AUDIOPATHS_NOT_VALID MAKE_DMHRESULTERROR(0x0226)
|
---|
163 | #define DMUS_E_AUDIOPATHS_IN_USE MAKE_DMHRESULTERROR(0x0227)
|
---|
164 | #define DMUS_E_NO_AUDIOPATH_CONFIG MAKE_DMHRESULTERROR(0x0228)
|
---|
165 | #define DMUS_E_AUDIOPATH_INACTIVE MAKE_DMHRESULTERROR(0x0229)
|
---|
166 | #define DMUS_E_AUDIOPATH_NOBUFFER MAKE_DMHRESULTERROR(0x022A)
|
---|
167 | #define DMUS_E_AUDIOPATH_NOPORT MAKE_DMHRESULTERROR(0x022B)
|
---|
168 | #define DMUS_E_NO_AUDIOPATH MAKE_DMHRESULTERROR(0x022C)
|
---|
169 | #define DMUS_E_INVALIDCHUNK MAKE_DMHRESULTERROR(0x022D)
|
---|
170 | #define DMUS_E_AUDIOPATH_NOGLOBALFXBUFFER MAKE_DMHRESULTERROR(0x022E)
|
---|
171 | #define DMUS_E_INVALID_CONTAINER_OBJECT MAKE_DMHRESULTERROR(0x022F)
|
---|
172 |
|
---|
173 | #endif /* __WINE_DMUSIC_ERROR_H */
|
---|