Skip to main content

engage/generated/root/
akcommonoutputsettings.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akcommonoutputsettings-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        r#enum::{Enum, IEnum},
11        valuetype::{IValueType, ValueType},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akcommonoutputsettings/AkCommonOutputSettings.md"))]
15    #[::unity::class(namespace = "", name = "AkCommonOutputSettings")]
16    #[parent(crate::system::object::Object)]
17    pub struct AkCommonOutputSettings {
18        #[offset(16)]
19        #[rename(name = "m_AudioDeviceShareset")]
20        pub m_audio_device_shareset: ::unity::Il2CppString,
21        #[offset(24)]
22        #[rename(name = "m_DeviceID")]
23        pub m_device_id: u32,
24        #[offset(28)]
25        #[rename(name = "m_PanningRule")]
26        pub m_panning_rule: crate::root::akcommonoutputsettings::AkCommonOutputSettings_PanningRule,
27        #[offset(32)]
28        #[rename(name = "m_ChannelConfig")]
29        pub m_channel_config: crate::root::akcommonoutputsettings::AkCommonOutputSettings_ChannelConfiguration,
30    }
31
32    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akcommonoutputsettings/AkCommonOutputSettings_ChannelConfiguration_ChannelMask.md"))]
33    #[repr(C)]
34    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
35    pub struct AkCommonOutputSettings_ChannelConfiguration_ChannelMask {
36        pub value: i32,
37    }
38    impl ::unity::ClassIdentity for AkCommonOutputSettings_ChannelConfiguration_ChannelMask {
39        const NAME: &'static str = "AkCommonOutputSettings.ChannelConfiguration.ChannelMask";
40        const NAMESPACE: &'static str = "";
41
42        fn class() -> ::unity::Class {
43            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
44            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
45        }
46    }
47    impl ::unity::IlType for AkCommonOutputSettings_ChannelConfiguration_ChannelMask {
48        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
49            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
50        }
51    }
52    impl AkCommonOutputSettings_ChannelConfiguration_ChannelMask {
53        pub fn none() -> Self {
54            Self { value: 0 }
55        }
56
57        pub fn front_left() -> Self {
58            Self { value: 1 }
59        }
60
61        pub fn front_right() -> Self {
62            Self { value: 2 }
63        }
64
65        pub fn front_center() -> Self {
66            Self { value: 4 }
67        }
68
69        pub fn low_frequency() -> Self {
70            Self { value: 8 }
71        }
72
73        pub fn back_left() -> Self {
74            Self { value: 16 }
75        }
76
77        pub fn back_right() -> Self {
78            Self { value: 32 }
79        }
80
81        pub fn back_center() -> Self {
82            Self { value: 256 }
83        }
84
85        pub fn side_left() -> Self {
86            Self { value: 512 }
87        }
88
89        pub fn side_right() -> Self {
90            Self { value: 1024 }
91        }
92
93        pub fn top() -> Self {
94            Self { value: 2048 }
95        }
96
97        pub fn height_front_left() -> Self {
98            Self { value: 4096 }
99        }
100
101        pub fn height_front_center() -> Self {
102            Self { value: 8192 }
103        }
104
105        pub fn height_front_right() -> Self {
106            Self { value: 16384 }
107        }
108
109        pub fn height_back_left() -> Self {
110            Self { value: 32768 }
111        }
112
113        pub fn height_back_center() -> Self {
114            Self { value: 65536 }
115        }
116
117        pub fn height_back_right() -> Self {
118            Self { value: 131072 }
119        }
120
121        pub fn setup_mono() -> Self {
122            Self { value: 4 }
123        }
124
125        pub fn setup_0point1() -> Self {
126            Self { value: 8 }
127        }
128
129        pub fn setup_1point1() -> Self {
130            Self { value: 12 }
131        }
132
133        pub fn setup_stereo() -> Self {
134            Self { value: 3 }
135        }
136
137        pub fn setup_2point1() -> Self {
138            Self { value: 11 }
139        }
140
141        pub fn setup_3stereo() -> Self {
142            Self { value: 7 }
143        }
144
145        pub fn setup_3point1() -> Self {
146            Self { value: 15 }
147        }
148
149        pub fn setup_4() -> Self {
150            Self { value: 1539 }
151        }
152
153        pub fn setup_4point1() -> Self {
154            Self { value: 1547 }
155        }
156
157        pub fn setup_5() -> Self {
158            Self { value: 1543 }
159        }
160
161        pub fn setup_5point1() -> Self {
162            Self { value: 1551 }
163        }
164
165        pub fn setup_6() -> Self {
166            Self { value: 1587 }
167        }
168
169        pub fn setup_6point1() -> Self {
170            Self { value: 1595 }
171        }
172
173        pub fn setup_7() -> Self {
174            Self { value: 1591 }
175        }
176
177        pub fn setup_7point1() -> Self {
178            Self { value: 1599 }
179        }
180
181        pub fn setup_surround() -> Self {
182            Self { value: 259 }
183        }
184
185        pub fn setup_dpl2() -> Self {
186            Self { value: 1539 }
187        }
188
189        pub fn setup_height_4() -> Self {
190            Self { value: 184320 }
191        }
192
193        pub fn setup_height_5() -> Self {
194            Self { value: 192512 }
195        }
196
197        pub fn setup_height_all() -> Self {
198            Self { value: 258048 }
199        }
200
201        pub fn setup_auro_222() -> Self {
202            Self { value: 22019 }
203        }
204
205        pub fn setup_auro_8() -> Self {
206            Self { value: 185859 }
207        }
208
209        pub fn setup_auro_9() -> Self {
210            Self { value: 185863 }
211        }
212
213        pub fn setup_auro_9point1() -> Self {
214            Self { value: 185871 }
215        }
216
217        pub fn setup_auro_10() -> Self {
218            Self { value: 187911 }
219        }
220
221        pub fn setup_auro_10point1() -> Self {
222            Self { value: 187919 }
223        }
224
225        pub fn setup_auro_11() -> Self {
226            Self { value: 196103 }
227        }
228
229        pub fn setup_auro_11point1() -> Self {
230            Self { value: 196111 }
231        }
232
233        pub fn setup_auro_11_740() -> Self {
234            Self { value: 185911 }
235        }
236
237        pub fn setup_auro_11point1_740() -> Self {
238            Self { value: 185919 }
239        }
240
241        pub fn setup_auro_13_751() -> Self {
242            Self { value: 196151 }
243        }
244
245        pub fn setup_auro_13point1_751() -> Self {
246            Self { value: 196159 }
247        }
248
249        pub fn setup_dolby_5_0_2() -> Self {
250            Self { value: 22023 }
251        }
252
253        pub fn setup_dolby_5_1_2() -> Self {
254            Self { value: 22031 }
255        }
256
257        pub fn setup_dolby_6_0_2() -> Self {
258            Self { value: 22067 }
259        }
260
261        pub fn setup_dolby_6_1_2() -> Self {
262            Self { value: 22075 }
263        }
264
265        pub fn setup_dolby_6_0_4() -> Self {
266            Self { value: 185907 }
267        }
268
269        pub fn setup_dolby_6_1_4() -> Self {
270            Self { value: 185915 }
271        }
272
273        pub fn setup_dolby_7_0_2() -> Self {
274            Self { value: 22071 }
275        }
276
277        pub fn setup_dolby_7_1_2() -> Self {
278            Self { value: 22079 }
279        }
280
281        pub fn setup_dolby_7_0_4() -> Self {
282            Self { value: 185911 }
283        }
284
285        pub fn setup_dolby_7_1_4() -> Self {
286            Self { value: 185919 }
287        }
288
289        pub fn setup_all_speakers() -> Self {
290            Self { value: 261951 }
291        }
292    }
293
294    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akcommonoutputsettings/AkCommonOutputSettings_ChannelConfiguration_ChannelConfigType.md"))]
295    #[repr(C)]
296    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
297    pub struct AkCommonOutputSettings_ChannelConfiguration_ChannelConfigType {
298        pub value: i32,
299    }
300    impl ::unity::ClassIdentity for AkCommonOutputSettings_ChannelConfiguration_ChannelConfigType {
301        const NAME: &'static str = "AkCommonOutputSettings.ChannelConfiguration.ChannelConfigType";
302        const NAMESPACE: &'static str = "";
303
304        fn class() -> ::unity::Class {
305            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
306            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
307        }
308    }
309    impl ::unity::IlType for AkCommonOutputSettings_ChannelConfiguration_ChannelConfigType {
310        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
311            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
312        }
313    }
314    impl AkCommonOutputSettings_ChannelConfiguration_ChannelConfigType {
315        pub fn anonymous() -> Self {
316            Self { value: 0 }
317        }
318
319        pub fn standard() -> Self {
320            Self { value: 1 }
321        }
322
323        pub fn ambisonic() -> Self {
324            Self { value: 2 }
325        }
326    }
327
328    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akcommonoutputsettings/AkCommonOutputSettings_PanningRule.md"))]
329    #[repr(C)]
330    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
331    pub struct AkCommonOutputSettings_PanningRule {
332        pub value: i32,
333    }
334    impl ::unity::ClassIdentity for AkCommonOutputSettings_PanningRule {
335        const NAME: &'static str = "AkCommonOutputSettings.PanningRule";
336        const NAMESPACE: &'static str = "";
337
338        fn class() -> ::unity::Class {
339            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
340            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
341        }
342    }
343    impl ::unity::IlType for AkCommonOutputSettings_PanningRule {
344        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
345            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
346        }
347    }
348    impl AkCommonOutputSettings_PanningRule {
349        pub fn speakers() -> Self {
350            Self { value: 0 }
351        }
352
353        pub fn headphones() -> Self {
354            Self { value: 1 }
355        }
356    }
357
358    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akcommonoutputsettings/AkCommonOutputSettings_ChannelConfiguration.md"))]
359    #[::unity::class(namespace = "", name = "AkCommonOutputSettings.ChannelConfiguration")]
360    #[parent(crate::system::object::Object)]
361    pub struct AkCommonOutputSettings_ChannelConfiguration {
362        #[offset(16)]
363        #[rename(name = "m_ChannelConfigType")]
364        pub m_channel_config_type: crate::root::akcommonoutputsettings::AkCommonOutputSettings_ChannelConfiguration_ChannelConfigType,
365        #[offset(20)]
366        #[rename(name = "m_ChannelMask")]
367        pub m_channel_mask: crate::root::akcommonoutputsettings::AkCommonOutputSettings_ChannelConfiguration_ChannelMask,
368        #[offset(24)]
369        #[rename(name = "m_NumberOfChannels")]
370        pub m_number_of_channels: u32,
371    }
372}
373
374#[cfg(feature = "root-akcommonoutputsettings-types")]
375pub use __types::*;
376
377#[cfg(feature = "root-akcommonoutputsettings")]
378pub trait IAkCommonOutputSettingsMethods: IAkCommonOutputSettings {
379    #[doc = "`CopyTo(crate::root::akoutputsettings::AkOutputSettings)` overload"]
380    fn copy_to(self, settings: impl ::core::convert::Into<crate::root::akoutputsettings::AkOutputSettings>) -> () {
381        unsafe {
382            let __receiver =
383                <AkCommonOutputSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
384            ::unity::il2cpp_call!((::unity::module_base()+0x2f12910usize)as*mut u8,();
385(AkCommonOutputSettings)__receiver,(crate::root::akoutputsettings::AkOutputSettings)::core::convert::Into::into(settings))
386        }
387    }
388    #[doc = "`.ctor()` overload"]
389    fn ctor(self) -> () {
390        unsafe {
391            let __receiver =
392                <AkCommonOutputSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
393            ::unity::il2cpp_call!((::unity::module_base()+0x2f12d10usize)as*mut u8,();
394(AkCommonOutputSettings)__receiver)
395        }
396    }
397}
398
399#[cfg(feature = "root-akcommonoutputsettings")]
400impl<__T: IAkCommonOutputSettings> IAkCommonOutputSettingsMethods for __T {}
401
402#[cfg(feature = "root-akcommonoutputsettings")]
403impl AkCommonOutputSettings {
404    pub fn copy_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
405        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
406    }
407
408    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
409        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
410    }
411}
412
413#[cfg(feature = "root-akcommonoutputsettings")]
414impl AkCommonOutputSettings {
415    #[doc = "`.ctor()` — no args"]
416    pub fn new() -> Self {
417        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
418            panic!(
419                "{}
420::{}
421 failed to instantiate",
422                ::core::stringify!(AkCommonOutputSettings),
423                ::core::stringify!(new),
424            )
425        });
426        <Self as IAkCommonOutputSettingsMethods>::ctor(this);
427        this
428    }
429}
430
431#[cfg(feature = "root-akcommonoutputsettings")]
432pub trait IAkCommonOutputSettings_ChannelConfigurationMethods: IAkCommonOutputSettings_ChannelConfiguration {
433    #[doc = "`CopyTo(crate::root::akchannelconfig::AkChannelConfig)` overload"]
434    fn copy_to(self, config: impl ::core::convert::Into<crate::root::akchannelconfig::AkChannelConfig>) -> () {
435        unsafe {
436            let __receiver = <AkCommonOutputSettings_ChannelConfiguration as ::unity::FromIlInstance>::from_il_instance(
437                <Self as ::unity::SystemObject>::as_instance(self),
438            );
439            ::unity::il2cpp_call!((::unity::module_base()+0x1b9e4b0usize)as*mut u8,();
440(AkCommonOutputSettings_ChannelConfiguration)__receiver,(crate::root::akchannelconfig::AkChannelConfig)::core::convert::Into::into(config))
441        }
442    }
443    #[doc = "`.ctor()` overload"]
444    fn ctor(self) -> () {
445        unsafe {
446            let __receiver = <AkCommonOutputSettings_ChannelConfiguration as ::unity::FromIlInstance>::from_il_instance(
447                <Self as ::unity::SystemObject>::as_instance(self),
448            );
449            ::unity::il2cpp_call!((::unity::module_base()+0x1b9e510usize)as*mut u8,();
450(AkCommonOutputSettings_ChannelConfiguration)__receiver)
451        }
452    }
453}
454
455#[cfg(feature = "root-akcommonoutputsettings")]
456impl<__T: IAkCommonOutputSettings_ChannelConfiguration> IAkCommonOutputSettings_ChannelConfigurationMethods for __T {}
457
458#[cfg(feature = "root-akcommonoutputsettings")]
459impl AkCommonOutputSettings_ChannelConfiguration {
460    pub fn copy_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
461        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
462    }
463
464    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
465        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
466    }
467}
468
469#[cfg(feature = "root-akcommonoutputsettings")]
470impl AkCommonOutputSettings_ChannelConfiguration {
471    #[doc = "`.ctor()` — no args"]
472    pub fn new() -> Self {
473        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
474            panic!(
475                "{}
476::{}
477 failed to instantiate",
478                ::core::stringify!(AkCommonOutputSettings_ChannelConfiguration),
479                ::core::stringify!(new),
480            )
481        });
482        <Self as IAkCommonOutputSettings_ChannelConfigurationMethods>::ctor(this);
483        this
484    }
485}
486
487#[cfg(feature = "root-akcommonoutputsettings")]
488#[doc(hidden)]
489pub mod prelude {
490    pub use super::{
491        AkCommonOutputSettings, AkCommonOutputSettings_ChannelConfiguration, AkCommonOutputSettings_ChannelConfiguration_ChannelConfigType,
492        AkCommonOutputSettings_ChannelConfiguration_ChannelMask, AkCommonOutputSettings_PanningRule, IAkCommonOutputSettings,
493        IAkCommonOutputSettingsMethods, IAkCommonOutputSettings_ChannelConfiguration, IAkCommonOutputSettings_ChannelConfigurationMethods,
494    };
495    #[cfg(feature = "system-object")]
496    pub use crate::system::object::IObjectMethods;
497    #[cfg(feature = "system-enum")]
498    pub use crate::system::r#enum::IEnumMethods;
499    #[cfg(feature = "system-valuetype")]
500    pub use crate::system::valuetype::IValueTypeMethods;
501    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
502}