2 * Copyright (c) 2007-2010 SlimDX Group
\r
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
\r
5 * of this software and associated documentation files (the "Software"), to deal
\r
6 * in the Software without restriction, including without limitation the rights
\r
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\r
8 * copies of the Software, and to permit persons to whom the Software is
\r
9 * furnished to do so, subject to the following conditions:
\r
11 * The above copyright notice and this permission notice shall be included in
\r
12 * all copies or substantial portions of the Software.
\r
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\r
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
\r
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
\r
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
\r
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
\r
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
\r
30 namespace DirectSound
\r
32 /// <summary>Defines result codes that are returned by DirectSound 8 functions.</summary>
\r
33 /// <unmanaged href="bb219706">HRESULT</unmanaged>
\r
34 public ref class ResultCode sealed
\r
41 /// The function completed successfully.
\r
43 /// <remarks>This is a successful result.</remarks>
\r
44 /// <unmanaged href="bb219706">DS_OK</unmanaged>
\r
45 property static Result Success
\r
51 /// Represents a generic failure result.
\r
53 /// <remarks>This is a failed result.</remarks>
\r
54 /// <unmanaged href="bb219706">E_FAIL</unmanaged>
\r
55 property static Result Failure
\r
61 /// The 3D algorithm was substituted.
\r
63 /// <remarks>This is a successful result.</remarks>
\r
64 /// <unmanaged href="bb219706">DS_NO_VIRTUALIZATION</unmanaged>
\r
65 property static Result NoVirtualization
\r
71 /// Access is denied.
\r
73 /// <remarks>This is a failed result.</remarks>
\r
74 /// <unmanaged href="bb219706">DSERR_ACCESSDENIED</unmanaged>
\r
75 property static Result AccessDenied
\r
81 /// The call failed because resources (such as a priority level) were already being used by another caller.
\r
83 /// <remarks>This is a failed result.</remarks>
\r
84 /// <unmanaged href="bb219706">DSERR_ALLOCATED</unmanaged>
\r
85 property static Result Allocated
\r
91 /// This object is already initialized.
\r
93 /// <remarks>This is a failed result.</remarks>
\r
94 /// <unmanaged href="bb219706">DSERR_ALREADYINITIALIZED</unmanaged>
\r
95 property static Result AlreadyInitialized
\r
101 /// The specified WAVE format is not supported.
\r
103 /// <remarks>This is a failed result.</remarks>
\r
104 /// <unmanaged href="bb219706">DSERR_BADFORMAT</unmanaged>
\r
105 property static Result BadFormat
\r
111 /// The GUID specified in an audiopath file does not match a valid MIXIN buffer.
\r
113 /// <remarks>This is a failed result.</remarks>
\r
114 /// <unmanaged href="bb219706">DSERR_BADSENDBUFFERGUID</unmanaged>
\r
115 property static Result BadSendBufferGuid
\r
121 /// The buffer memory has been lost, and must be restored.
\r
123 /// <remarks>This is a failed result.</remarks>
\r
124 /// <unmanaged href="bb219706">DSERR_BUFFERLOST</unmanaged>
\r
125 property static Result BufferLost
\r
131 /// Tried to create a <see cref="BufferFlags">ControlEffects</see> buffer shorter than DSBSIZE_FX_MIN milliseconds.
\r
133 /// <remarks>This is a failed result.</remarks>
\r
134 /// <unmanaged href="bb219706">DSERR_BUFFERTOOSMALL</unmanaged>
\r
135 property static Result BufferTooSmall
\r
141 /// The control (vol, pan, etc.) requested by the caller is not available.
\r
143 /// <remarks>This is a failed result.</remarks>
\r
144 /// <unmanaged href="bb219706">DSERR_CONTROLUNAVAIL</unmanaged>
\r
145 property static Result ControlUnavailable
\r
151 /// Attempt to use DirectSound 8 functionality on an older DirectSound object.
\r
153 /// <remarks>This is a failed result.</remarks>
\r
154 /// <unmanaged href="bb219706">DSERR_DS8_REQUIRED</unmanaged>
\r
155 property static Result DirectSound8Required
\r
161 /// The effects requested could not be found on the system, or they were found
\r
162 /// but in the wrong order, or in the wrong hardware/software locations.
\r
164 /// <remarks>This is a failed result.</remarks>
\r
165 /// <unmanaged href="bb219706"></unmanaged>
\r
166 property static Result EffectsUnavailable
\r
172 /// An undetermined error occurred inside the DirectSound subsystem.
\r
174 /// <remarks>This is a failed result.</remarks>
\r
175 /// <unmanaged href="bb219706">DSERR_GENERIC</unmanaged>
\r
176 property static Result Generic
\r
182 /// This call is not valid for the current state of this object.
\r
184 /// <remarks>This is a failed result.</remarks>
\r
185 /// <unmanaged href="bb219706">DSERR_INVALIDCALL</unmanaged>
\r
186 property static Result InvalidCall
\r
192 ///An invalid parameter was passed to the returning function.
\r
194 /// <remarks>This is a failed result.</remarks>
\r
195 /// <unmanaged href="bb219706">DSERR_INVALIDPARAM</unmanaged>
\r
196 property static Result InvalidParameter
\r
202 /// This object does not support aggregation.
\r
204 /// <remarks>This is a failed result.</remarks>
\r
205 /// <unmanaged href="bb219706">DSERR_NOAGGREGATION</unmanaged>
\r
206 property static Result NoAggregation
\r
212 /// No sound driver is available for use.
\r
214 /// <remarks>This is a failed result.</remarks>
\r
215 /// <unmanaged href="bb219706">DSERR_NODRIVER</unmanaged>
\r
216 property static Result NoDriver
\r
222 /// The requested COM interface is not available.
\r
224 /// <remarks>This is a failed result.</remarks>
\r
225 /// <unmanaged href="bb219706">DSERR_NOINTERFACE</unmanaged>
\r
226 property static Result NoInterface
\r
232 /// The object requested was not found.
\r
234 /// <remarks>This is a failed result.</remarks>
\r
235 /// <unmanaged href="bb219706">DSERR_OBJECTNOTFOUND</unmanaged>
\r
236 property static Result ObjectNotFound
\r
242 /// Another app has a higher priority level, preventing this call from succeeding.
\r
244 /// <remarks>This is a failed result.</remarks>
\r
245 /// <unmanaged href="bb219706">DSERR_OTHERAPPHASPRIO</unmanaged>
\r
246 property static Result OtherApplicationHasPriority
\r
252 /// The caller does not have the priority level required for the function to succeed
\r
254 /// <remarks>This is a failed result.</remarks>
\r
255 /// <unmanaged href="bb219706">DSERR_PRIOLEVELNEEDED</unmanaged>
\r
256 property static Result PriorityLevelNeeded
\r
262 /// A circular loop of send effects was detected.
\r
264 /// <remarks>This is a failed result.</remarks>
\r
265 /// <unmanaged href="bb219706">DSERR_SENDLOOP</unmanaged>
\r
266 property static Result SendLoop
\r
272 /// This object has not been initialized.
\r
274 /// <remarks>This is a failed result.</remarks>
\r
275 /// <unmanaged href="bb219706">DSERR_UNINITIALIZED</unmanaged>
\r
276 property static Result Uninitialized
\r
282 /// The function called is not supported at this time.
\r
284 /// <remarks>This is a failed result.</remarks>
\r
285 /// <unmanaged href="bb219706">DSERR_UNSUPPORTED</unmanaged>
\r
286 property static Result Unsupported
\r