]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys/src/Windows/Media/Audio/mod.rs
New upstream version 1.62.1+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Media / Audio / mod.rs
1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 pub type AudioDeviceInputNode = *mut ::core::ffi::c_void;
3 #[doc = "*Required features: `\"Media_Audio\"`*"]
4 #[repr(transparent)]
5 pub struct AudioDeviceNodeCreationStatus(pub i32);
6 impl AudioDeviceNodeCreationStatus {
7 pub const Success: Self = Self(0i32);
8 pub const DeviceNotAvailable: Self = Self(1i32);
9 pub const FormatNotSupported: Self = Self(2i32);
10 pub const UnknownFailure: Self = Self(3i32);
11 pub const AccessDenied: Self = Self(4i32);
12 }
13 impl ::core::marker::Copy for AudioDeviceNodeCreationStatus {}
14 impl ::core::clone::Clone for AudioDeviceNodeCreationStatus {
15 fn clone(&self) -> Self {
16 *self
17 }
18 }
19 pub type AudioDeviceOutputNode = *mut ::core::ffi::c_void;
20 pub type AudioFileInputNode = *mut ::core::ffi::c_void;
21 #[doc = "*Required features: `\"Media_Audio\"`*"]
22 #[repr(transparent)]
23 pub struct AudioFileNodeCreationStatus(pub i32);
24 impl AudioFileNodeCreationStatus {
25 pub const Success: Self = Self(0i32);
26 pub const FileNotFound: Self = Self(1i32);
27 pub const InvalidFileType: Self = Self(2i32);
28 pub const FormatNotSupported: Self = Self(3i32);
29 pub const UnknownFailure: Self = Self(4i32);
30 }
31 impl ::core::marker::Copy for AudioFileNodeCreationStatus {}
32 impl ::core::clone::Clone for AudioFileNodeCreationStatus {
33 fn clone(&self) -> Self {
34 *self
35 }
36 }
37 pub type AudioFileOutputNode = *mut ::core::ffi::c_void;
38 pub type AudioFrameCompletedEventArgs = *mut ::core::ffi::c_void;
39 pub type AudioFrameInputNode = *mut ::core::ffi::c_void;
40 pub type AudioFrameOutputNode = *mut ::core::ffi::c_void;
41 pub type AudioGraph = *mut ::core::ffi::c_void;
42 pub type AudioGraphBatchUpdater = *mut ::core::ffi::c_void;
43 pub type AudioGraphConnection = *mut ::core::ffi::c_void;
44 #[doc = "*Required features: `\"Media_Audio\"`*"]
45 #[repr(transparent)]
46 pub struct AudioGraphCreationStatus(pub i32);
47 impl AudioGraphCreationStatus {
48 pub const Success: Self = Self(0i32);
49 pub const DeviceNotAvailable: Self = Self(1i32);
50 pub const FormatNotSupported: Self = Self(2i32);
51 pub const UnknownFailure: Self = Self(3i32);
52 }
53 impl ::core::marker::Copy for AudioGraphCreationStatus {}
54 impl ::core::clone::Clone for AudioGraphCreationStatus {
55 fn clone(&self) -> Self {
56 *self
57 }
58 }
59 pub type AudioGraphSettings = *mut ::core::ffi::c_void;
60 #[doc = "*Required features: `\"Media_Audio\"`*"]
61 #[repr(transparent)]
62 pub struct AudioGraphUnrecoverableError(pub i32);
63 impl AudioGraphUnrecoverableError {
64 pub const None: Self = Self(0i32);
65 pub const AudioDeviceLost: Self = Self(1i32);
66 pub const AudioSessionDisconnected: Self = Self(2i32);
67 pub const UnknownFailure: Self = Self(3i32);
68 }
69 impl ::core::marker::Copy for AudioGraphUnrecoverableError {}
70 impl ::core::clone::Clone for AudioGraphUnrecoverableError {
71 fn clone(&self) -> Self {
72 *self
73 }
74 }
75 pub type AudioGraphUnrecoverableErrorOccurredEventArgs = *mut ::core::ffi::c_void;
76 pub type AudioNodeEmitter = *mut ::core::ffi::c_void;
77 pub type AudioNodeEmitterConeProperties = *mut ::core::ffi::c_void;
78 #[doc = "*Required features: `\"Media_Audio\"`*"]
79 #[repr(transparent)]
80 pub struct AudioNodeEmitterDecayKind(pub i32);
81 impl AudioNodeEmitterDecayKind {
82 pub const Natural: Self = Self(0i32);
83 pub const Custom: Self = Self(1i32);
84 }
85 impl ::core::marker::Copy for AudioNodeEmitterDecayKind {}
86 impl ::core::clone::Clone for AudioNodeEmitterDecayKind {
87 fn clone(&self) -> Self {
88 *self
89 }
90 }
91 pub type AudioNodeEmitterDecayModel = *mut ::core::ffi::c_void;
92 pub type AudioNodeEmitterNaturalDecayModelProperties = *mut ::core::ffi::c_void;
93 #[doc = "*Required features: `\"Media_Audio\"`*"]
94 #[repr(transparent)]
95 pub struct AudioNodeEmitterSettings(pub u32);
96 impl AudioNodeEmitterSettings {
97 pub const None: Self = Self(0u32);
98 pub const DisableDoppler: Self = Self(1u32);
99 }
100 impl ::core::marker::Copy for AudioNodeEmitterSettings {}
101 impl ::core::clone::Clone for AudioNodeEmitterSettings {
102 fn clone(&self) -> Self {
103 *self
104 }
105 }
106 pub type AudioNodeEmitterShape = *mut ::core::ffi::c_void;
107 #[doc = "*Required features: `\"Media_Audio\"`*"]
108 #[repr(transparent)]
109 pub struct AudioNodeEmitterShapeKind(pub i32);
110 impl AudioNodeEmitterShapeKind {
111 pub const Omnidirectional: Self = Self(0i32);
112 pub const Cone: Self = Self(1i32);
113 }
114 impl ::core::marker::Copy for AudioNodeEmitterShapeKind {}
115 impl ::core::clone::Clone for AudioNodeEmitterShapeKind {
116 fn clone(&self) -> Self {
117 *self
118 }
119 }
120 pub type AudioNodeListener = *mut ::core::ffi::c_void;
121 pub type AudioPlaybackConnection = *mut ::core::ffi::c_void;
122 pub type AudioPlaybackConnectionOpenResult = *mut ::core::ffi::c_void;
123 #[doc = "*Required features: `\"Media_Audio\"`*"]
124 #[repr(transparent)]
125 pub struct AudioPlaybackConnectionOpenResultStatus(pub i32);
126 impl AudioPlaybackConnectionOpenResultStatus {
127 pub const Success: Self = Self(0i32);
128 pub const RequestTimedOut: Self = Self(1i32);
129 pub const DeniedBySystem: Self = Self(2i32);
130 pub const UnknownFailure: Self = Self(3i32);
131 }
132 impl ::core::marker::Copy for AudioPlaybackConnectionOpenResultStatus {}
133 impl ::core::clone::Clone for AudioPlaybackConnectionOpenResultStatus {
134 fn clone(&self) -> Self {
135 *self
136 }
137 }
138 #[doc = "*Required features: `\"Media_Audio\"`*"]
139 #[repr(transparent)]
140 pub struct AudioPlaybackConnectionState(pub i32);
141 impl AudioPlaybackConnectionState {
142 pub const Closed: Self = Self(0i32);
143 pub const Opened: Self = Self(1i32);
144 }
145 impl ::core::marker::Copy for AudioPlaybackConnectionState {}
146 impl ::core::clone::Clone for AudioPlaybackConnectionState {
147 fn clone(&self) -> Self {
148 *self
149 }
150 }
151 pub type AudioStateMonitor = *mut ::core::ffi::c_void;
152 pub type AudioSubmixNode = *mut ::core::ffi::c_void;
153 pub type CreateAudioDeviceInputNodeResult = *mut ::core::ffi::c_void;
154 pub type CreateAudioDeviceOutputNodeResult = *mut ::core::ffi::c_void;
155 pub type CreateAudioFileInputNodeResult = *mut ::core::ffi::c_void;
156 pub type CreateAudioFileOutputNodeResult = *mut ::core::ffi::c_void;
157 pub type CreateAudioGraphResult = *mut ::core::ffi::c_void;
158 pub type CreateMediaSourceAudioInputNodeResult = *mut ::core::ffi::c_void;
159 pub type EchoEffectDefinition = *mut ::core::ffi::c_void;
160 pub type EqualizerBand = *mut ::core::ffi::c_void;
161 pub type EqualizerEffectDefinition = *mut ::core::ffi::c_void;
162 pub type FrameInputNodeQuantumStartedEventArgs = *mut ::core::ffi::c_void;
163 pub type IAudioInputNode = *mut ::core::ffi::c_void;
164 pub type IAudioInputNode2 = *mut ::core::ffi::c_void;
165 pub type IAudioNode = *mut ::core::ffi::c_void;
166 pub type IAudioNodeWithListener = *mut ::core::ffi::c_void;
167 pub type LimiterEffectDefinition = *mut ::core::ffi::c_void;
168 pub type MediaSourceAudioInputNode = *mut ::core::ffi::c_void;
169 #[doc = "*Required features: `\"Media_Audio\"`*"]
170 #[repr(transparent)]
171 pub struct MediaSourceAudioInputNodeCreationStatus(pub i32);
172 impl MediaSourceAudioInputNodeCreationStatus {
173 pub const Success: Self = Self(0i32);
174 pub const FormatNotSupported: Self = Self(1i32);
175 pub const NetworkError: Self = Self(2i32);
176 pub const UnknownFailure: Self = Self(3i32);
177 }
178 impl ::core::marker::Copy for MediaSourceAudioInputNodeCreationStatus {}
179 impl ::core::clone::Clone for MediaSourceAudioInputNodeCreationStatus {
180 fn clone(&self) -> Self {
181 *self
182 }
183 }
184 #[doc = "*Required features: `\"Media_Audio\"`*"]
185 #[repr(transparent)]
186 pub struct MixedRealitySpatialAudioFormatPolicy(pub i32);
187 impl MixedRealitySpatialAudioFormatPolicy {
188 pub const UseMixedRealityDefaultSpatialAudioFormat: Self = Self(0i32);
189 pub const UseDeviceConfigurationDefaultSpatialAudioFormat: Self = Self(1i32);
190 }
191 impl ::core::marker::Copy for MixedRealitySpatialAudioFormatPolicy {}
192 impl ::core::clone::Clone for MixedRealitySpatialAudioFormatPolicy {
193 fn clone(&self) -> Self {
194 *self
195 }
196 }
197 #[doc = "*Required features: `\"Media_Audio\"`*"]
198 #[repr(transparent)]
199 pub struct QuantumSizeSelectionMode(pub i32);
200 impl QuantumSizeSelectionMode {
201 pub const SystemDefault: Self = Self(0i32);
202 pub const LowestLatency: Self = Self(1i32);
203 pub const ClosestToDesired: Self = Self(2i32);
204 }
205 impl ::core::marker::Copy for QuantumSizeSelectionMode {}
206 impl ::core::clone::Clone for QuantumSizeSelectionMode {
207 fn clone(&self) -> Self {
208 *self
209 }
210 }
211 pub type ReverbEffectDefinition = *mut ::core::ffi::c_void;
212 pub type SetDefaultSpatialAudioFormatResult = *mut ::core::ffi::c_void;
213 #[doc = "*Required features: `\"Media_Audio\"`*"]
214 #[repr(transparent)]
215 pub struct SetDefaultSpatialAudioFormatStatus(pub i32);
216 impl SetDefaultSpatialAudioFormatStatus {
217 pub const Succeeded: Self = Self(0i32);
218 pub const AccessDenied: Self = Self(1i32);
219 pub const LicenseExpired: Self = Self(2i32);
220 pub const LicenseNotValidForAudioEndpoint: Self = Self(3i32);
221 pub const NotSupportedOnAudioEndpoint: Self = Self(4i32);
222 pub const UnknownError: Self = Self(5i32);
223 }
224 impl ::core::marker::Copy for SetDefaultSpatialAudioFormatStatus {}
225 impl ::core::clone::Clone for SetDefaultSpatialAudioFormatStatus {
226 fn clone(&self) -> Self {
227 *self
228 }
229 }
230 pub type SpatialAudioDeviceConfiguration = *mut ::core::ffi::c_void;
231 pub type SpatialAudioFormatConfiguration = *mut ::core::ffi::c_void;
232 #[doc = "*Required features: `\"Media_Audio\"`*"]
233 #[repr(transparent)]
234 pub struct SpatialAudioModel(pub i32);
235 impl SpatialAudioModel {
236 pub const ObjectBased: Self = Self(0i32);
237 pub const FoldDown: Self = Self(1i32);
238 }
239 impl ::core::marker::Copy for SpatialAudioModel {}
240 impl ::core::clone::Clone for SpatialAudioModel {
241 fn clone(&self) -> Self {
242 *self
243 }
244 }