1#[cfg(feature = "root-akplatforminitsettings-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akplatforminitsettings/AkPlatformInitSettings.md"))]
11 #[::unity::class(namespace = "", name = "AkPlatformInitSettings")]
12 #[parent(crate::system::object::Object)]
13 pub struct AkPlatformInitSettings {
14 #[offset(16)]
15 #[rename(name = "swigCPtr")]
16 pub swig_c_ptr: ::unity::IntPtr,
17 #[offset(24)]
18 #[rename(name = "swigCMemOwn")]
19 pub swig_c_mem_own: bool,
20 }
21}
22
23#[cfg(feature = "root-akplatforminitsettings-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akplatforminitsettings")]
27impl AkPlatformInitSettings {
28 #[doc = "`getCPtr(crate::root::akplatforminitsettings::AkPlatformInitSettings)` overload"]
29 pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akplatforminitsettings::AkPlatformInitSettings>) -> ::unity::IntPtr {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x2f219d0usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akplatforminitsettings::AkPlatformInitSettings)::core::convert::Into::into(obj))
33 }
34 }
35}
36
37#[cfg(feature = "root-akplatforminitsettings")]
38pub trait IAkPlatformInitSettingsMethods: IAkPlatformInitSettings {
39 #[doc = "`.ctor(::unity::IntPtr, bool)` overload"]
40 fn ctor(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>, c_memory_own: impl ::core::convert::Into<bool>) -> () {
41 unsafe {
42 let __receiver =
43 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x2f21a30usize)as*mut u8,();
45(AkPlatformInitSettings)__receiver,(::unity::IntPtr)::core::convert::Into::into(c_ptr),(bool)::core::convert::Into::into(c_memory_own))
46 }
47 }
48 #[doc = "`setCPtr(::unity::IntPtr)` overload"]
49 fn set_c_ptr(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
50 unsafe {
51 let __receiver =
52 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53 {
54 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
55 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
56 panic!(
57 "unity: virtual slot {}
58 out of range (vtable len {}
59) on the runtime class behind {}
60 (method `{}
61`)",
62 5usize,
63 __vt.len(),
64 <AkPlatformInitSettings as ::unity::ClassIdentity>::NAME,
65 "setCPtr",
66 )
67 });
68 let __inner: extern "C" fn(AkPlatformInitSettings, ::unity::IntPtr, ::unity::OptionalMethod) -> () =
69 ::core::mem::transmute(__vi.method_ptr);
70 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
71 __inner(__receiver, ::core::convert::Into::into(c_ptr), __mi)
72 }
73 }
74 }
75 #[doc = "`Finalize()` overload"]
76 fn finalize(self) -> () {
77 unsafe {
78 let __receiver =
79 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 {
81 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
82 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
83 panic!(
84 "unity: virtual slot {}
85 out of range (vtable len {}
86) on the runtime class behind {}
87 (method `{}
88`)",
89 1usize,
90 __vt.len(),
91 <AkPlatformInitSettings as ::unity::ClassIdentity>::NAME,
92 "Finalize",
93 )
94 });
95 let __inner: extern "C" fn(AkPlatformInitSettings, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
96 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
97 __inner(__receiver, __mi)
98 }
99 }
100 }
101 #[doc = "`Dispose()` overload"]
102 fn dispose(self) -> () {
103 unsafe {
104 let __receiver =
105 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106 {
107 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
108 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
109 panic!(
110 "unity: virtual slot {}
111 out of range (vtable len {}
112) on the runtime class behind {}
113 (method `{}
114`)",
115 6usize,
116 __vt.len(),
117 <AkPlatformInitSettings as ::unity::ClassIdentity>::NAME,
118 "Dispose",
119 )
120 });
121 let __inner: extern "C" fn(AkPlatformInitSettings, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
122 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
123 __inner(__receiver, __mi)
124 }
125 }
126 }
127 #[doc = "`set_threadLEngine(crate::root::akthreadproperties::AkThreadProperties)` overload"]
128 fn set_thread_l_engine(self, value: impl ::core::convert::Into<crate::root::akthreadproperties::AkThreadProperties>) -> () {
129 unsafe {
130 let __receiver =
131 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132 ::unity::il2cpp_call!((::unity::module_base()+0x2f143f0usize)as*mut u8,();
133(AkPlatformInitSettings)__receiver,(crate::root::akthreadproperties::AkThreadProperties)::core::convert::Into::into(value))
134 }
135 }
136 #[doc = "`get_threadLEngine()` overload"]
137 fn get_thread_l_engine(self) -> crate::root::akthreadproperties::AkThreadProperties {
138 unsafe {
139 let __receiver =
140 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141 ::unity::il2cpp_call!((::unity::module_base()+0x2f13de0usize)as*mut u8,crate::root::akthreadproperties::AkThreadProperties;
142(AkPlatformInitSettings)__receiver)
143 }
144 }
145 #[doc = "`set_threadOutputMgr(crate::root::akthreadproperties::AkThreadProperties)` overload"]
146 fn set_thread_output_mgr(self, value: impl ::core::convert::Into<crate::root::akthreadproperties::AkThreadProperties>) -> () {
147 unsafe {
148 let __receiver =
149 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150 ::unity::il2cpp_call!((::unity::module_base()+0x2f14480usize)as*mut u8,();
151(AkPlatformInitSettings)__receiver,(crate::root::akthreadproperties::AkThreadProperties)::core::convert::Into::into(value))
152 }
153 }
154 #[doc = "`get_threadOutputMgr()` overload"]
155 fn get_thread_output_mgr(self) -> crate::root::akthreadproperties::AkThreadProperties {
156 unsafe {
157 let __receiver =
158 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159 ::unity::il2cpp_call!((::unity::module_base()+0x2f13ec0usize)as*mut u8,crate::root::akthreadproperties::AkThreadProperties;
160(AkPlatformInitSettings)__receiver)
161 }
162 }
163 #[doc = "`set_threadBankManager(crate::root::akthreadproperties::AkThreadProperties)` overload"]
164 fn set_thread_bank_manager(self, value: impl ::core::convert::Into<crate::root::akthreadproperties::AkThreadProperties>) -> () {
165 unsafe {
166 let __receiver =
167 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168 ::unity::il2cpp_call!((::unity::module_base()+0x2f14510usize)as*mut u8,();
169(AkPlatformInitSettings)__receiver,(crate::root::akthreadproperties::AkThreadProperties)::core::convert::Into::into(value))
170 }
171 }
172 #[doc = "`get_threadBankManager()` overload"]
173 fn get_thread_bank_manager(self) -> crate::root::akthreadproperties::AkThreadProperties {
174 unsafe {
175 let __receiver =
176 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177 ::unity::il2cpp_call!((::unity::module_base()+0x2f13fa0usize)as*mut u8,crate::root::akthreadproperties::AkThreadProperties;
178(AkPlatformInitSettings)__receiver)
179 }
180 }
181 #[doc = "`set_threadMonitor(crate::root::akthreadproperties::AkThreadProperties)` overload"]
182 fn set_thread_monitor(self, value: impl ::core::convert::Into<crate::root::akthreadproperties::AkThreadProperties>) -> () {
183 unsafe {
184 let __receiver =
185 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186 ::unity::il2cpp_call!((::unity::module_base()+0x2f145a0usize)as*mut u8,();
187(AkPlatformInitSettings)__receiver,(crate::root::akthreadproperties::AkThreadProperties)::core::convert::Into::into(value))
188 }
189 }
190 #[doc = "`get_threadMonitor()` overload"]
191 fn get_thread_monitor(self) -> crate::root::akthreadproperties::AkThreadProperties {
192 unsafe {
193 let __receiver =
194 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195 ::unity::il2cpp_call!((::unity::module_base()+0x2f14080usize)as*mut u8,crate::root::akthreadproperties::AkThreadProperties;
196(AkPlatformInitSettings)__receiver)
197 }
198 }
199 #[doc = "`set_threadOpusDecoder(crate::root::akthreadproperties::AkThreadProperties)` overload"]
200 fn set_thread_opus_decoder(self, value: impl ::core::convert::Into<crate::root::akthreadproperties::AkThreadProperties>) -> () {
201 unsafe {
202 let __receiver =
203 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204 ::unity::il2cpp_call!((::unity::module_base()+0x2f14630usize)as*mut u8,();
205(AkPlatformInitSettings)__receiver,(crate::root::akthreadproperties::AkThreadProperties)::core::convert::Into::into(value))
206 }
207 }
208 #[doc = "`get_threadOpusDecoder()` overload"]
209 fn get_thread_opus_decoder(self) -> crate::root::akthreadproperties::AkThreadProperties {
210 unsafe {
211 let __receiver =
212 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213 ::unity::il2cpp_call!((::unity::module_base()+0x2f14160usize)as*mut u8,crate::root::akthreadproperties::AkThreadProperties;
214(AkPlatformInitSettings)__receiver)
215 }
216 }
217 #[doc = "`set_uSampleRate(u32)` overload"]
218 fn set_u_sample_rate(self, value: impl ::core::convert::Into<u32>) -> () {
219 unsafe {
220 let __receiver =
221 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222 ::unity::il2cpp_call!((::unity::module_base()+0x2f155a0usize)as*mut u8,();
223(AkPlatformInitSettings)__receiver,(u32)::core::convert::Into::into(value))
224 }
225 }
226 #[doc = "`get_uSampleRate()` overload"]
227 fn get_u_sample_rate(self) -> u32 {
228 unsafe {
229 let __receiver =
230 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
231 ::unity::il2cpp_call!((::unity::module_base()+0x2f2b3c0usize)as*mut u8,u32;
232(AkPlatformInitSettings)__receiver)
233 }
234 }
235 #[doc = "`set_uNumRefillsInVoice(u16)` overload"]
236 fn set_u_num_refills_in_voice(self, value: impl ::core::convert::Into<u16>) -> () {
237 unsafe {
238 let __receiver =
239 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
240 ::unity::il2cpp_call!((::unity::module_base()+0x2f15700usize)as*mut u8,();
241(AkPlatformInitSettings)__receiver,(u16)::core::convert::Into::into(value))
242 }
243 }
244 #[doc = "`get_uNumRefillsInVoice()` overload"]
245 fn get_u_num_refills_in_voice(self) -> u16 {
246 unsafe {
247 let __receiver =
248 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
249 ::unity::il2cpp_call!((::unity::module_base()+0x2f2b430usize)as*mut u8,u16;
250(AkPlatformInitSettings)__receiver)
251 }
252 }
253 #[doc = "`set_bAutoPanningRule(bool)` overload"]
254 fn set_b_auto_panning_rule(self, value: impl ::core::convert::Into<bool>) -> () {
255 unsafe {
256 let __receiver =
257 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
258 ::unity::il2cpp_call!((::unity::module_base()+0x2f2b4a0usize)as*mut u8,();
259(AkPlatformInitSettings)__receiver,(bool)::core::convert::Into::into(value))
260 }
261 }
262 #[doc = "`get_bAutoPanningRule()` overload"]
263 fn get_b_auto_panning_rule(self) -> bool {
264 unsafe {
265 let __receiver =
266 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
267 ::unity::il2cpp_call!((::unity::module_base()+0x2f2b520usize)as*mut u8,bool;
268(AkPlatformInitSettings)__receiver)
269 }
270 }
271 #[doc = "`set_bAcquireAudioDeviceNotification(bool)` overload"]
272 fn set_b_acquire_audio_device_notification(self, value: impl ::core::convert::Into<bool>) -> () {
273 unsafe {
274 let __receiver =
275 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
276 ::unity::il2cpp_call!((::unity::module_base()+0x2f2b590usize)as*mut u8,();
277(AkPlatformInitSettings)__receiver,(bool)::core::convert::Into::into(value))
278 }
279 }
280 #[doc = "`get_bAcquireAudioDeviceNotification()` overload"]
281 fn get_b_acquire_audio_device_notification(self) -> bool {
282 unsafe {
283 let __receiver =
284 <AkPlatformInitSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
285 ::unity::il2cpp_call!((::unity::module_base()+0x2f2b610usize)as*mut u8,bool;
286(AkPlatformInitSettings)__receiver)
287 }
288 }
289}
290
291#[cfg(feature = "root-akplatforminitsettings")]
292impl<__T: IAkPlatformInitSettings> IAkPlatformInitSettingsMethods for __T {}
293
294#[cfg(feature = "root-akplatforminitsettings")]
295impl AkPlatformInitSettings {
296 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
298 }
299
300 pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
302 }
303
304 pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
306 }
307
308 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
310 }
311
312 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
314 }
315
316 pub fn set_thread_l_engine_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
318 }
319
320 pub fn get_thread_l_engine_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
322 }
323
324 pub fn set_thread_output_mgr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
326 }
327
328 pub fn get_thread_output_mgr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
330 }
331
332 pub fn set_thread_bank_manager_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
334 }
335
336 pub fn get_thread_bank_manager_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
338 }
339
340 pub fn set_thread_monitor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
342 }
343
344 pub fn get_thread_monitor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
346 }
347
348 pub fn set_thread_opus_decoder_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
350 }
351
352 pub fn get_thread_opus_decoder_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
354 }
355
356 pub fn set_u_sample_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
357 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
358 }
359
360 pub fn get_u_sample_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
361 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
362 }
363
364 pub fn set_u_num_refills_in_voice_method_info() -> &'static ::unity::il2cpp::MethodInfo {
365 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
366 }
367
368 pub fn get_u_num_refills_in_voice_method_info() -> &'static ::unity::il2cpp::MethodInfo {
369 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
370 }
371
372 pub fn set_b_auto_panning_rule_method_info() -> &'static ::unity::il2cpp::MethodInfo {
373 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
374 }
375
376 pub fn get_b_auto_panning_rule_method_info() -> &'static ::unity::il2cpp::MethodInfo {
377 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
378 }
379
380 pub fn set_b_acquire_audio_device_notification_method_info() -> &'static ::unity::il2cpp::MethodInfo {
381 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
382 }
383
384 pub fn get_b_acquire_audio_device_notification_method_info() -> &'static ::unity::il2cpp::MethodInfo {
385 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
386 }
387}
388
389#[cfg(feature = "root-akplatforminitsettings")]
390impl AkPlatformInitSettings {
391 #[doc = "Direct (non-virtual) call to `AkPlatformInitSettings`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
392 pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
393 let __mi = Self::set_c_ptr_method_info();
394 let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
395 __inner(this.into(), c_ptr, ::core::option::Option::None)
396 }
397
398 #[doc = "Direct (non-virtual) call to `AkPlatformInitSettings`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
399 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
400 let __mi = Self::finalize_method_info();
401 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
402 __inner(this.into(), ::core::option::Option::None)
403 }
404
405 #[doc = "Direct (non-virtual) call to `AkPlatformInitSettings`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
406 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
407 let __mi = Self::dispose_method_info();
408 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
409 __inner(this.into(), ::core::option::Option::None)
410 }
411}
412
413#[cfg(feature = "root-akplatforminitsettings")]
414impl AkPlatformInitSettings {
415 #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
416 pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
417 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
418 panic!(
419 "{}
420::{}
421 failed to instantiate",
422 ::core::stringify!(AkPlatformInitSettings),
423 ::core::stringify!(new),
424 )
425 });
426 <Self as IAkPlatformInitSettingsMethods>::ctor(this, c_ptr, c_memory_own);
427 this
428 }
429}
430
431#[cfg(feature = "root-akplatforminitsettings")]
432#[doc(hidden)]
433pub mod prelude {
434 pub use super::{AkPlatformInitSettings, IAkPlatformInitSettings, IAkPlatformInitSettingsMethods};
435 pub use crate::system::object::IObject;
436 #[cfg(feature = "system-object")]
437 pub use crate::system::object::IObjectMethods;
438}