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
26 namespace DirectSound
\r
29 /// Describes the capabilities of the capture device.
\r
31 /// <unmanaged>DSCCAPS</unmanaged>
\r
32 public value class CaptureCapabilities : System::IEquatable<CaptureCapabilities>
\r
35 CaptureCapabilities( const DSCCAPS& caps );
\r
39 /// The driver for the device is a certified WDM driver.
\r
41 property bool Certified;
\r
44 /// Number of channels supported by the device, where 1 is mono, 2 is stereo, and so on.
\r
46 property int Channels;
\r
49 /// There is no DirectSoundCapture driver for the device, so the standard waveform audio functions are being used.
\r
51 property bool EmulatedDriver;
\r
54 /// The driver supports the 11Khz 16 Bit Mono format.
\r
56 property bool Format11KhzMono16Bit;
\r
59 /// The driver supports the 11Khz 8 Bit Mono format.
\r
61 property bool Format11KhzMono8Bit;
\r
64 /// The driver supports the 11Khz 16 Bit Stereo format.
\r
66 property bool Format11KhzStereo16Bit;
\r
69 /// The driver supports the 11Khz 8 Bit Stereo format.
\r
71 property bool Format11KhzStereo8Bit;
\r
74 /// The driver supports the 22Khz 16 Bit Mono format.
\r
76 property bool Format22KhzMono16Bit;
\r
79 /// The driver supports the 22Khz 8 Bit Mono format.
\r
81 property bool Format22KhzMono8Bit;
\r
84 /// The driver supports the 22Khz 16 Bit Stereo format.
\r
86 property bool Format22KhzStereo16Bit;
\r
89 /// The driver supports the 22Khz 8 Bit Stereo format.
\r
91 property bool Format22KhzStereo8Bit;
\r
94 /// The driver supports the 44Khz 16 Bit Mono format.
\r
96 property bool Format44KhzMono16Bit;
\r
99 /// The driver supports the 44Khz 8 Bit Mono format.
\r
101 property bool Format44KhzMono8Bit;
\r
104 /// The driver supports the 44Khz 16 Bit Stereo format.
\r
106 property bool Format44KhzStereo16Bit;
\r
109 /// The driver supports the 44Khz 8 Bit Stereo format.
\r
111 property bool Format44KhzStereo8Bit;
\r
114 /// The driver supports the 48Khz 16 Bit Mono format.
\r
116 property bool Format48KhzMono16Bit;
\r
119 /// The driver supports the 48Khz 8 Bit Mono format.
\r
121 property bool Format48KhzMono8Bit;
\r
124 /// The driver supports the 48Khz 16 Bit Stereo format.
\r
126 property bool Format48KhzStereo16Bit;
\r
129 /// The driver supports the 48Khz 8 Bit Stereo format.
\r
131 property bool Format48KhzStereo8Bit;
\r
134 /// The driver supports the 96Khz 16 Bit Mono format.
\r
136 property bool Format96KhzMono16Bit;
\r
139 /// The driver supports the 96Khz 8 Bit Mono format.
\r
141 property bool Format96KhzMono8Bit;
\r
144 /// The driver supports the 96Khz 16 Bit Stereo format.
\r
146 property bool Format96KhzStereo16Bit;
\r
149 /// The driver supports the 96Khz 8 Bit Stereo format.
\r
151 property bool Format96KhzStereo8Bit;
\r
154 /// Multiple capture objects can be used simultaneously on the capture device.
\r
156 property bool MultipleCapture;
\r
159 /// Tests for equality between two objects.
\r
161 /// <param name="left">The first value to compare.</param>
\r
162 /// <param name="right">The second value to compare.</param>
\r
163 /// <returns><c>true</c> if <paramref name="left"/> has the same value as <paramref name="right"/>; otherwise, <c>false</c>.</returns>
\r
164 static bool operator == ( CaptureCapabilities left, CaptureCapabilities right );
\r
167 /// Tests for inequality between two objects.
\r
169 /// <param name="left">The first value to compare.</param>
\r
170 /// <param name="right">The second value to compare.</param>
\r
171 /// <returns><c>true</c> if <paramref name="left"/> has a different value than <paramref name="right"/>; otherwise, <c>false</c>.</returns>
\r
172 static bool operator != ( CaptureCapabilities left, CaptureCapabilities right );
\r
175 /// Returns the hash code for this instance.
\r
177 /// <returns>A 32-bit signed integer hash code.</returns>
\r
178 virtual int GetHashCode() override;
\r
181 /// Returns a value that indicates whether the current instance is equal to a specified object.
\r
183 /// <param name="obj">Object to make the comparison with.</param>
\r
184 /// <returns><c>true</c> if the current instance is equal to the specified object; <c>false</c> otherwise.</returns>
\r
185 virtual bool Equals( System::Object^ obj ) override;
\r
188 /// Returns a value that indicates whether the current instance is equal to the specified object.
\r
190 /// <param name="other">Object to make the comparison with.</param>
\r
191 /// <returns><c>true</c> if the current instance is equal to the specified object; <c>false</c> otherwise.</returns>
\r
192 virtual bool Equals( CaptureCapabilities other );
\r
195 /// Determines whether the specified object instances are considered equal.
\r
197 /// <param name="value1">The first value to compare.</param>
\r
198 /// <param name="value2">The second value to compare.</param>
\r
199 /// <returns><c>true</c> if <paramref name="value1"/> is the same instance as <paramref name="value2"/> or
\r
200 /// if both are <c>null</c> references or if <c>value1.Equals(value2)</c> returns <c>true</c>; otherwise, <c>false</c>.</returns>
\r
201 static bool Equals( CaptureCapabilities% value1, CaptureCapabilities% value2 );
\r