synthizer_sys/
synthizer.rs

1/* automatically generated by rust-bindgen 0.58.1 */
2
3extern "C" {
4    pub fn syz_getVersion(
5        major: *mut ::std::os::raw::c_uint,
6        minor: *mut ::std::os::raw::c_uint,
7        patch: *mut ::std::os::raw::c_uint,
8    );
9}
10pub type syz_Handle = ::std::os::raw::c_ulonglong;
11pub type syz_ErrorCode = ::std::os::raw::c_int;
12#[repr(C)]
13#[derive(Debug, Default, Copy, Clone)]
14pub struct syz_UserAutomationEvent {
15    pub param: ::std::os::raw::c_ulonglong,
16}
17#[test]
18fn bindgen_test_layout_syz_UserAutomationEvent() {
19    assert_eq!(
20        ::std::mem::size_of::<syz_UserAutomationEvent>(),
21        8usize,
22        concat!("Size of: ", stringify!(syz_UserAutomationEvent))
23    );
24    assert_eq!(
25        ::std::mem::align_of::<syz_UserAutomationEvent>(),
26        8usize,
27        concat!("Alignment of ", stringify!(syz_UserAutomationEvent))
28    );
29    assert_eq!(
30        unsafe { &(*(::std::ptr::null::<syz_UserAutomationEvent>())).param as *const _ as usize },
31        0usize,
32        concat!(
33            "Offset of field: ",
34            stringify!(syz_UserAutomationEvent),
35            "::",
36            stringify!(param)
37        )
38    );
39}
40#[repr(C)]
41#[derive(Copy, Clone)]
42pub struct syz_Event {
43    pub type_: ::std::os::raw::c_int,
44    pub source: syz_Handle,
45    pub context: syz_Handle,
46    pub payload: syz_Event__bindgen_ty_1,
47}
48#[repr(C)]
49#[derive(Copy, Clone)]
50pub union syz_Event__bindgen_ty_1 {
51    pub user_automation: syz_UserAutomationEvent,
52}
53#[test]
54fn bindgen_test_layout_syz_Event__bindgen_ty_1() {
55    assert_eq!(
56        ::std::mem::size_of::<syz_Event__bindgen_ty_1>(),
57        8usize,
58        concat!("Size of: ", stringify!(syz_Event__bindgen_ty_1))
59    );
60    assert_eq!(
61        ::std::mem::align_of::<syz_Event__bindgen_ty_1>(),
62        8usize,
63        concat!("Alignment of ", stringify!(syz_Event__bindgen_ty_1))
64    );
65    assert_eq!(
66        unsafe {
67            &(*(::std::ptr::null::<syz_Event__bindgen_ty_1>())).user_automation as *const _ as usize
68        },
69        0usize,
70        concat!(
71            "Offset of field: ",
72            stringify!(syz_Event__bindgen_ty_1),
73            "::",
74            stringify!(user_automation)
75        )
76    );
77}
78impl Default for syz_Event__bindgen_ty_1 {
79    fn default() -> Self {
80        unsafe { ::std::mem::zeroed() }
81    }
82}
83#[test]
84fn bindgen_test_layout_syz_Event() {
85    assert_eq!(
86        ::std::mem::size_of::<syz_Event>(),
87        32usize,
88        concat!("Size of: ", stringify!(syz_Event))
89    );
90    assert_eq!(
91        ::std::mem::align_of::<syz_Event>(),
92        8usize,
93        concat!("Alignment of ", stringify!(syz_Event))
94    );
95    assert_eq!(
96        unsafe { &(*(::std::ptr::null::<syz_Event>())).type_ as *const _ as usize },
97        0usize,
98        concat!(
99            "Offset of field: ",
100            stringify!(syz_Event),
101            "::",
102            stringify!(type_)
103        )
104    );
105    assert_eq!(
106        unsafe { &(*(::std::ptr::null::<syz_Event>())).source as *const _ as usize },
107        8usize,
108        concat!(
109            "Offset of field: ",
110            stringify!(syz_Event),
111            "::",
112            stringify!(source)
113        )
114    );
115    assert_eq!(
116        unsafe { &(*(::std::ptr::null::<syz_Event>())).context as *const _ as usize },
117        16usize,
118        concat!(
119            "Offset of field: ",
120            stringify!(syz_Event),
121            "::",
122            stringify!(context)
123        )
124    );
125    assert_eq!(
126        unsafe { &(*(::std::ptr::null::<syz_Event>())).payload as *const _ as usize },
127        24usize,
128        concat!(
129            "Offset of field: ",
130            stringify!(syz_Event),
131            "::",
132            stringify!(payload)
133        )
134    );
135}
136impl Default for syz_Event {
137    fn default() -> Self {
138        unsafe { ::std::mem::zeroed() }
139    }
140}
141extern "C" {
142    pub fn syz_eventDeinit(event: *mut syz_Event);
143}
144pub const SYZ_LOGGING_BACKEND_NONE: SYZ_LOGGING_BACKEND = 0;
145pub const SYZ_LOGGING_BACKEND_STDERR: SYZ_LOGGING_BACKEND = 1;
146pub type SYZ_LOGGING_BACKEND = ::std::os::raw::c_uint;
147pub const SYZ_LOG_LEVEL_ERROR: SYZ_LOG_LEVEL = 0;
148pub const SYZ_LOG_LEVEL_WARN: SYZ_LOG_LEVEL = 10;
149pub const SYZ_LOG_LEVEL_INFO: SYZ_LOG_LEVEL = 20;
150pub const SYZ_LOG_LEVEL_DEBUG: SYZ_LOG_LEVEL = 30;
151pub type SYZ_LOG_LEVEL = ::std::os::raw::c_uint;
152#[repr(C)]
153#[derive(Debug, Copy, Clone)]
154pub struct syz_LibraryConfig {
155    pub log_level: ::std::os::raw::c_uint,
156    pub logging_backend: ::std::os::raw::c_uint,
157    pub libsndfile_path: *const ::std::os::raw::c_char,
158}
159#[test]
160fn bindgen_test_layout_syz_LibraryConfig() {
161    assert_eq!(
162        ::std::mem::size_of::<syz_LibraryConfig>(),
163        16usize,
164        concat!("Size of: ", stringify!(syz_LibraryConfig))
165    );
166    assert_eq!(
167        ::std::mem::align_of::<syz_LibraryConfig>(),
168        8usize,
169        concat!("Alignment of ", stringify!(syz_LibraryConfig))
170    );
171    assert_eq!(
172        unsafe { &(*(::std::ptr::null::<syz_LibraryConfig>())).log_level as *const _ as usize },
173        0usize,
174        concat!(
175            "Offset of field: ",
176            stringify!(syz_LibraryConfig),
177            "::",
178            stringify!(log_level)
179        )
180    );
181    assert_eq!(
182        unsafe {
183            &(*(::std::ptr::null::<syz_LibraryConfig>())).logging_backend as *const _ as usize
184        },
185        4usize,
186        concat!(
187            "Offset of field: ",
188            stringify!(syz_LibraryConfig),
189            "::",
190            stringify!(logging_backend)
191        )
192    );
193    assert_eq!(
194        unsafe {
195            &(*(::std::ptr::null::<syz_LibraryConfig>())).libsndfile_path as *const _ as usize
196        },
197        8usize,
198        concat!(
199            "Offset of field: ",
200            stringify!(syz_LibraryConfig),
201            "::",
202            stringify!(libsndfile_path)
203        )
204    );
205}
206impl Default for syz_LibraryConfig {
207    fn default() -> Self {
208        unsafe { ::std::mem::zeroed() }
209    }
210}
211extern "C" {
212    pub fn syz_libraryConfigSetDefaults(config: *mut syz_LibraryConfig);
213}
214extern "C" {
215    pub fn syz_initialize() -> syz_ErrorCode;
216}
217extern "C" {
218    pub fn syz_initializeWithConfig(config: *const syz_LibraryConfig) -> syz_ErrorCode;
219}
220extern "C" {
221    pub fn syz_shutdown() -> syz_ErrorCode;
222}
223extern "C" {
224    pub fn syz_getLastErrorCode() -> syz_ErrorCode;
225}
226extern "C" {
227    pub fn syz_getLastErrorMessage() -> *const ::std::os::raw::c_char;
228}
229extern "C" {
230    pub fn syz_handleIncRef(handle: syz_Handle) -> syz_ErrorCode;
231}
232extern "C" {
233    pub fn syz_handleDecRef(handle: syz_Handle) -> syz_ErrorCode;
234}
235#[repr(C)]
236#[derive(Debug, Default, Copy, Clone)]
237pub struct syz_DeleteBehaviorConfig {
238    pub linger: ::std::os::raw::c_int,
239    pub linger_timeout: f64,
240}
241#[test]
242fn bindgen_test_layout_syz_DeleteBehaviorConfig() {
243    assert_eq!(
244        ::std::mem::size_of::<syz_DeleteBehaviorConfig>(),
245        16usize,
246        concat!("Size of: ", stringify!(syz_DeleteBehaviorConfig))
247    );
248    assert_eq!(
249        ::std::mem::align_of::<syz_DeleteBehaviorConfig>(),
250        8usize,
251        concat!("Alignment of ", stringify!(syz_DeleteBehaviorConfig))
252    );
253    assert_eq!(
254        unsafe { &(*(::std::ptr::null::<syz_DeleteBehaviorConfig>())).linger as *const _ as usize },
255        0usize,
256        concat!(
257            "Offset of field: ",
258            stringify!(syz_DeleteBehaviorConfig),
259            "::",
260            stringify!(linger)
261        )
262    );
263    assert_eq!(
264        unsafe {
265            &(*(::std::ptr::null::<syz_DeleteBehaviorConfig>())).linger_timeout as *const _ as usize
266        },
267        8usize,
268        concat!(
269            "Offset of field: ",
270            stringify!(syz_DeleteBehaviorConfig),
271            "::",
272            stringify!(linger_timeout)
273        )
274    );
275}
276extern "C" {
277    pub fn syz_initDeleteBehaviorConfig(cfg: *mut syz_DeleteBehaviorConfig);
278}
279extern "C" {
280    pub fn syz_configDeleteBehavior(
281        object: syz_Handle,
282        cfg: *const syz_DeleteBehaviorConfig,
283    ) -> syz_ErrorCode;
284}
285extern "C" {
286    pub fn syz_handleGetObjectType(
287        out: *mut ::std::os::raw::c_int,
288        handle: syz_Handle,
289    ) -> syz_ErrorCode;
290}
291extern "C" {
292    pub fn syz_handleGetUserdata(
293        out: *mut *mut ::std::os::raw::c_void,
294        handle: syz_Handle,
295    ) -> syz_ErrorCode;
296}
297pub type syz_UserdataFreeCallback =
298    ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
299extern "C" {
300    pub fn syz_handleSetUserdata(
301        handle: syz_Handle,
302        userdata: *mut ::std::os::raw::c_void,
303        free_callback: syz_UserdataFreeCallback,
304    ) -> syz_ErrorCode;
305}
306extern "C" {
307    pub fn syz_pause(object: syz_Handle) -> syz_ErrorCode;
308}
309extern "C" {
310    pub fn syz_play(object: syz_Handle) -> syz_ErrorCode;
311}
312extern "C" {
313    pub fn syz_getI(
314        out: *mut ::std::os::raw::c_int,
315        target: syz_Handle,
316        property: ::std::os::raw::c_int,
317    ) -> syz_ErrorCode;
318}
319extern "C" {
320    pub fn syz_setI(
321        target: syz_Handle,
322        property: ::std::os::raw::c_int,
323        value: ::std::os::raw::c_int,
324    ) -> syz_ErrorCode;
325}
326extern "C" {
327    pub fn syz_getD(
328        out: *mut f64,
329        target: syz_Handle,
330        property: ::std::os::raw::c_int,
331    ) -> syz_ErrorCode;
332}
333extern "C" {
334    pub fn syz_setD(
335        target: syz_Handle,
336        property: ::std::os::raw::c_int,
337        value: f64,
338    ) -> syz_ErrorCode;
339}
340extern "C" {
341    pub fn syz_setO(
342        target: syz_Handle,
343        property: ::std::os::raw::c_int,
344        value: syz_Handle,
345    ) -> syz_ErrorCode;
346}
347extern "C" {
348    pub fn syz_getD3(
349        x: *mut f64,
350        y: *mut f64,
351        z: *mut f64,
352        target: syz_Handle,
353        property: ::std::os::raw::c_int,
354    ) -> syz_ErrorCode;
355}
356extern "C" {
357    pub fn syz_setD3(
358        target: syz_Handle,
359        property: ::std::os::raw::c_int,
360        x: f64,
361        y: f64,
362        z: f64,
363    ) -> syz_ErrorCode;
364}
365extern "C" {
366    pub fn syz_getD6(
367        x1: *mut f64,
368        y1: *mut f64,
369        z1: *mut f64,
370        x2: *mut f64,
371        y2: *mut f64,
372        z2: *mut f64,
373        target: syz_Handle,
374        property: ::std::os::raw::c_int,
375    ) -> syz_ErrorCode;
376}
377extern "C" {
378    pub fn syz_setD6(
379        handle: syz_Handle,
380        property: ::std::os::raw::c_int,
381        x1: f64,
382        y1: f64,
383        z1: f64,
384        x2: f64,
385        y2: f64,
386        z2: f64,
387    ) -> syz_ErrorCode;
388}
389#[repr(C)]
390#[derive(Debug, Default, Copy, Clone)]
391pub struct syz_BiquadConfig {
392    pub _b0: f64,
393    pub _b1: f64,
394    pub _b2: f64,
395    pub _a1: f64,
396    pub _a2: f64,
397    pub _gain: f64,
398    pub _is_wire: ::std::os::raw::c_uchar,
399}
400#[test]
401fn bindgen_test_layout_syz_BiquadConfig() {
402    assert_eq!(
403        ::std::mem::size_of::<syz_BiquadConfig>(),
404        56usize,
405        concat!("Size of: ", stringify!(syz_BiquadConfig))
406    );
407    assert_eq!(
408        ::std::mem::align_of::<syz_BiquadConfig>(),
409        8usize,
410        concat!("Alignment of ", stringify!(syz_BiquadConfig))
411    );
412    assert_eq!(
413        unsafe { &(*(::std::ptr::null::<syz_BiquadConfig>()))._b0 as *const _ as usize },
414        0usize,
415        concat!(
416            "Offset of field: ",
417            stringify!(syz_BiquadConfig),
418            "::",
419            stringify!(_b0)
420        )
421    );
422    assert_eq!(
423        unsafe { &(*(::std::ptr::null::<syz_BiquadConfig>()))._b1 as *const _ as usize },
424        8usize,
425        concat!(
426            "Offset of field: ",
427            stringify!(syz_BiquadConfig),
428            "::",
429            stringify!(_b1)
430        )
431    );
432    assert_eq!(
433        unsafe { &(*(::std::ptr::null::<syz_BiquadConfig>()))._b2 as *const _ as usize },
434        16usize,
435        concat!(
436            "Offset of field: ",
437            stringify!(syz_BiquadConfig),
438            "::",
439            stringify!(_b2)
440        )
441    );
442    assert_eq!(
443        unsafe { &(*(::std::ptr::null::<syz_BiquadConfig>()))._a1 as *const _ as usize },
444        24usize,
445        concat!(
446            "Offset of field: ",
447            stringify!(syz_BiquadConfig),
448            "::",
449            stringify!(_a1)
450        )
451    );
452    assert_eq!(
453        unsafe { &(*(::std::ptr::null::<syz_BiquadConfig>()))._a2 as *const _ as usize },
454        32usize,
455        concat!(
456            "Offset of field: ",
457            stringify!(syz_BiquadConfig),
458            "::",
459            stringify!(_a2)
460        )
461    );
462    assert_eq!(
463        unsafe { &(*(::std::ptr::null::<syz_BiquadConfig>()))._gain as *const _ as usize },
464        40usize,
465        concat!(
466            "Offset of field: ",
467            stringify!(syz_BiquadConfig),
468            "::",
469            stringify!(_gain)
470        )
471    );
472    assert_eq!(
473        unsafe { &(*(::std::ptr::null::<syz_BiquadConfig>()))._is_wire as *const _ as usize },
474        48usize,
475        concat!(
476            "Offset of field: ",
477            stringify!(syz_BiquadConfig),
478            "::",
479            stringify!(_is_wire)
480        )
481    );
482}
483extern "C" {
484    pub fn syz_getBiquad(
485        filter: *mut syz_BiquadConfig,
486        target: syz_Handle,
487        property: ::std::os::raw::c_int,
488    ) -> syz_ErrorCode;
489}
490extern "C" {
491    pub fn syz_setBiquad(
492        target: syz_Handle,
493        property: ::std::os::raw::c_int,
494        filter: *const syz_BiquadConfig,
495    ) -> syz_ErrorCode;
496}
497extern "C" {
498    pub fn syz_biquadDesignIdentity(filter: *mut syz_BiquadConfig) -> syz_ErrorCode;
499}
500extern "C" {
501    pub fn syz_biquadDesignLowpass(
502        filter: *mut syz_BiquadConfig,
503        frequency: f64,
504        q: f64,
505    ) -> syz_ErrorCode;
506}
507extern "C" {
508    pub fn syz_biquadDesignHighpass(
509        filter: *mut syz_BiquadConfig,
510        frequency: f64,
511        q: f64,
512    ) -> syz_ErrorCode;
513}
514extern "C" {
515    pub fn syz_biquadDesignBandpass(
516        filter: *mut syz_BiquadConfig,
517        frequency: f64,
518        bw: f64,
519    ) -> syz_ErrorCode;
520}
521#[repr(C)]
522#[derive(Debug, Default, Copy, Clone)]
523pub struct syz_AutomationPoint {
524    pub interpolation_type: ::std::os::raw::c_int,
525    pub values: [f64; 6usize],
526    pub flags: ::std::os::raw::c_ulonglong,
527}
528#[test]
529fn bindgen_test_layout_syz_AutomationPoint() {
530    assert_eq!(
531        ::std::mem::size_of::<syz_AutomationPoint>(),
532        64usize,
533        concat!("Size of: ", stringify!(syz_AutomationPoint))
534    );
535    assert_eq!(
536        ::std::mem::align_of::<syz_AutomationPoint>(),
537        8usize,
538        concat!("Alignment of ", stringify!(syz_AutomationPoint))
539    );
540    assert_eq!(
541        unsafe {
542            &(*(::std::ptr::null::<syz_AutomationPoint>())).interpolation_type as *const _ as usize
543        },
544        0usize,
545        concat!(
546            "Offset of field: ",
547            stringify!(syz_AutomationPoint),
548            "::",
549            stringify!(interpolation_type)
550        )
551    );
552    assert_eq!(
553        unsafe { &(*(::std::ptr::null::<syz_AutomationPoint>())).values as *const _ as usize },
554        8usize,
555        concat!(
556            "Offset of field: ",
557            stringify!(syz_AutomationPoint),
558            "::",
559            stringify!(values)
560        )
561    );
562    assert_eq!(
563        unsafe { &(*(::std::ptr::null::<syz_AutomationPoint>())).flags as *const _ as usize },
564        56usize,
565        concat!(
566            "Offset of field: ",
567            stringify!(syz_AutomationPoint),
568            "::",
569            stringify!(flags)
570        )
571    );
572}
573#[repr(C)]
574#[derive(Debug, Default, Copy, Clone)]
575pub struct syz_AutomationAppendPropertyCommand {
576    pub property: ::std::os::raw::c_int,
577    pub point: syz_AutomationPoint,
578}
579#[test]
580fn bindgen_test_layout_syz_AutomationAppendPropertyCommand() {
581    assert_eq!(
582        ::std::mem::size_of::<syz_AutomationAppendPropertyCommand>(),
583        72usize,
584        concat!("Size of: ", stringify!(syz_AutomationAppendPropertyCommand))
585    );
586    assert_eq!(
587        ::std::mem::align_of::<syz_AutomationAppendPropertyCommand>(),
588        8usize,
589        concat!(
590            "Alignment of ",
591            stringify!(syz_AutomationAppendPropertyCommand)
592        )
593    );
594    assert_eq!(
595        unsafe {
596            &(*(::std::ptr::null::<syz_AutomationAppendPropertyCommand>())).property as *const _
597                as usize
598        },
599        0usize,
600        concat!(
601            "Offset of field: ",
602            stringify!(syz_AutomationAppendPropertyCommand),
603            "::",
604            stringify!(property)
605        )
606    );
607    assert_eq!(
608        unsafe {
609            &(*(::std::ptr::null::<syz_AutomationAppendPropertyCommand>())).point as *const _
610                as usize
611        },
612        8usize,
613        concat!(
614            "Offset of field: ",
615            stringify!(syz_AutomationAppendPropertyCommand),
616            "::",
617            stringify!(point)
618        )
619    );
620}
621#[repr(C)]
622#[derive(Debug, Default, Copy, Clone)]
623pub struct syz_AutomationClearPropertyCommand {
624    pub property: ::std::os::raw::c_int,
625}
626#[test]
627fn bindgen_test_layout_syz_AutomationClearPropertyCommand() {
628    assert_eq!(
629        ::std::mem::size_of::<syz_AutomationClearPropertyCommand>(),
630        4usize,
631        concat!("Size of: ", stringify!(syz_AutomationClearPropertyCommand))
632    );
633    assert_eq!(
634        ::std::mem::align_of::<syz_AutomationClearPropertyCommand>(),
635        4usize,
636        concat!(
637            "Alignment of ",
638            stringify!(syz_AutomationClearPropertyCommand)
639        )
640    );
641    assert_eq!(
642        unsafe {
643            &(*(::std::ptr::null::<syz_AutomationClearPropertyCommand>())).property as *const _
644                as usize
645        },
646        0usize,
647        concat!(
648            "Offset of field: ",
649            stringify!(syz_AutomationClearPropertyCommand),
650            "::",
651            stringify!(property)
652        )
653    );
654}
655#[repr(C)]
656#[derive(Debug, Default, Copy, Clone)]
657pub struct syz_AutomationSendUserEventCommand {
658    pub param: ::std::os::raw::c_ulonglong,
659}
660#[test]
661fn bindgen_test_layout_syz_AutomationSendUserEventCommand() {
662    assert_eq!(
663        ::std::mem::size_of::<syz_AutomationSendUserEventCommand>(),
664        8usize,
665        concat!("Size of: ", stringify!(syz_AutomationSendUserEventCommand))
666    );
667    assert_eq!(
668        ::std::mem::align_of::<syz_AutomationSendUserEventCommand>(),
669        8usize,
670        concat!(
671            "Alignment of ",
672            stringify!(syz_AutomationSendUserEventCommand)
673        )
674    );
675    assert_eq!(
676        unsafe {
677            &(*(::std::ptr::null::<syz_AutomationSendUserEventCommand>())).param as *const _
678                as usize
679        },
680        0usize,
681        concat!(
682            "Offset of field: ",
683            stringify!(syz_AutomationSendUserEventCommand),
684            "::",
685            stringify!(param)
686        )
687    );
688}
689#[repr(C)]
690#[derive(Copy, Clone)]
691pub union syz_AutomationCommandParams {
692    pub append_to_property: syz_AutomationAppendPropertyCommand,
693    pub clear_property: syz_AutomationClearPropertyCommand,
694    pub send_user_event: syz_AutomationSendUserEventCommand,
695}
696#[test]
697fn bindgen_test_layout_syz_AutomationCommandParams() {
698    assert_eq!(
699        ::std::mem::size_of::<syz_AutomationCommandParams>(),
700        72usize,
701        concat!("Size of: ", stringify!(syz_AutomationCommandParams))
702    );
703    assert_eq!(
704        ::std::mem::align_of::<syz_AutomationCommandParams>(),
705        8usize,
706        concat!("Alignment of ", stringify!(syz_AutomationCommandParams))
707    );
708    assert_eq!(
709        unsafe {
710            &(*(::std::ptr::null::<syz_AutomationCommandParams>())).append_to_property as *const _
711                as usize
712        },
713        0usize,
714        concat!(
715            "Offset of field: ",
716            stringify!(syz_AutomationCommandParams),
717            "::",
718            stringify!(append_to_property)
719        )
720    );
721    assert_eq!(
722        unsafe {
723            &(*(::std::ptr::null::<syz_AutomationCommandParams>())).clear_property as *const _
724                as usize
725        },
726        0usize,
727        concat!(
728            "Offset of field: ",
729            stringify!(syz_AutomationCommandParams),
730            "::",
731            stringify!(clear_property)
732        )
733    );
734    assert_eq!(
735        unsafe {
736            &(*(::std::ptr::null::<syz_AutomationCommandParams>())).send_user_event as *const _
737                as usize
738        },
739        0usize,
740        concat!(
741            "Offset of field: ",
742            stringify!(syz_AutomationCommandParams),
743            "::",
744            stringify!(send_user_event)
745        )
746    );
747}
748impl Default for syz_AutomationCommandParams {
749    fn default() -> Self {
750        unsafe { ::std::mem::zeroed() }
751    }
752}
753#[repr(C)]
754#[derive(Copy, Clone)]
755pub struct syz_AutomationCommand {
756    pub target: syz_Handle,
757    pub time: f64,
758    pub type_: ::std::os::raw::c_int,
759    pub flags: ::std::os::raw::c_uint,
760    pub params: syz_AutomationCommandParams,
761}
762#[test]
763fn bindgen_test_layout_syz_AutomationCommand() {
764    assert_eq!(
765        ::std::mem::size_of::<syz_AutomationCommand>(),
766        96usize,
767        concat!("Size of: ", stringify!(syz_AutomationCommand))
768    );
769    assert_eq!(
770        ::std::mem::align_of::<syz_AutomationCommand>(),
771        8usize,
772        concat!("Alignment of ", stringify!(syz_AutomationCommand))
773    );
774    assert_eq!(
775        unsafe { &(*(::std::ptr::null::<syz_AutomationCommand>())).target as *const _ as usize },
776        0usize,
777        concat!(
778            "Offset of field: ",
779            stringify!(syz_AutomationCommand),
780            "::",
781            stringify!(target)
782        )
783    );
784    assert_eq!(
785        unsafe { &(*(::std::ptr::null::<syz_AutomationCommand>())).time as *const _ as usize },
786        8usize,
787        concat!(
788            "Offset of field: ",
789            stringify!(syz_AutomationCommand),
790            "::",
791            stringify!(time)
792        )
793    );
794    assert_eq!(
795        unsafe { &(*(::std::ptr::null::<syz_AutomationCommand>())).type_ as *const _ as usize },
796        16usize,
797        concat!(
798            "Offset of field: ",
799            stringify!(syz_AutomationCommand),
800            "::",
801            stringify!(type_)
802        )
803    );
804    assert_eq!(
805        unsafe { &(*(::std::ptr::null::<syz_AutomationCommand>())).flags as *const _ as usize },
806        20usize,
807        concat!(
808            "Offset of field: ",
809            stringify!(syz_AutomationCommand),
810            "::",
811            stringify!(flags)
812        )
813    );
814    assert_eq!(
815        unsafe { &(*(::std::ptr::null::<syz_AutomationCommand>())).params as *const _ as usize },
816        24usize,
817        concat!(
818            "Offset of field: ",
819            stringify!(syz_AutomationCommand),
820            "::",
821            stringify!(params)
822        )
823    );
824}
825impl Default for syz_AutomationCommand {
826    fn default() -> Self {
827        unsafe { ::std::mem::zeroed() }
828    }
829}
830extern "C" {
831    pub fn syz_createAutomationBatch(
832        out: *mut syz_Handle,
833        context: syz_Handle,
834        userdata: *mut ::std::os::raw::c_void,
835        userdata_free_callback: syz_UserdataFreeCallback,
836    ) -> syz_ErrorCode;
837}
838extern "C" {
839    pub fn syz_automationBatchAddCommands(
840        batch: syz_Handle,
841        commands_len: ::std::os::raw::c_ulonglong,
842        commands: *const syz_AutomationCommand,
843    ) -> syz_ErrorCode;
844}
845extern "C" {
846    pub fn syz_automationBatchExecute(batch: syz_Handle) -> syz_ErrorCode;
847}
848extern "C" {
849    pub fn syz_createContext(
850        out: *mut syz_Handle,
851        userdata: *mut ::std::os::raw::c_void,
852        userdata_free_callback: syz_UserdataFreeCallback,
853    ) -> syz_ErrorCode;
854}
855extern "C" {
856    pub fn syz_createContextHeadless(
857        out: *mut syz_Handle,
858        userdata: *mut ::std::os::raw::c_void,
859        userdata_free_callback: syz_UserdataFreeCallback,
860    ) -> syz_ErrorCode;
861}
862extern "C" {
863    pub fn syz_contextGetBlock(context: syz_Handle, block: *mut f32) -> syz_ErrorCode;
864}
865extern "C" {
866    pub fn syz_contextEnableEvents(context: syz_Handle) -> syz_ErrorCode;
867}
868extern "C" {
869    pub fn syz_contextGetNextEvent(
870        out: *mut syz_Event,
871        context: syz_Handle,
872        flags: ::std::os::raw::c_ulonglong,
873    ) -> syz_ErrorCode;
874}
875pub type syz_StreamReadCallback = ::std::option::Option<
876    unsafe extern "C" fn(
877        read: *mut ::std::os::raw::c_ulonglong,
878        requested: ::std::os::raw::c_ulonglong,
879        destination: *mut ::std::os::raw::c_char,
880        userdata: *mut ::std::os::raw::c_void,
881        err_msg: *mut *const ::std::os::raw::c_char,
882    ) -> ::std::os::raw::c_int,
883>;
884pub type syz_StreamSeekCallback = ::std::option::Option<
885    unsafe extern "C" fn(
886        pos: ::std::os::raw::c_ulonglong,
887        userdata: *mut ::std::os::raw::c_void,
888        err_msg: *mut *const ::std::os::raw::c_char,
889    ) -> ::std::os::raw::c_int,
890>;
891pub type syz_StreamCloseCallback = ::std::option::Option<
892    unsafe extern "C" fn(
893        userdata: *mut ::std::os::raw::c_void,
894        err_msg: *mut *const ::std::os::raw::c_char,
895    ) -> ::std::os::raw::c_int,
896>;
897pub type syz_StreamDestroyCallback =
898    ::std::option::Option<unsafe extern "C" fn(userdata: *mut ::std::os::raw::c_void)>;
899#[repr(C)]
900#[derive(Debug, Copy, Clone)]
901pub struct syz_CustomStreamDef {
902    pub read_cb: syz_StreamReadCallback,
903    pub seek_cb: syz_StreamSeekCallback,
904    pub close_cb: syz_StreamCloseCallback,
905    pub destroy_cb: syz_StreamDestroyCallback,
906    pub length: ::std::os::raw::c_longlong,
907    pub userdata: *mut ::std::os::raw::c_void,
908}
909#[test]
910fn bindgen_test_layout_syz_CustomStreamDef() {
911    assert_eq!(
912        ::std::mem::size_of::<syz_CustomStreamDef>(),
913        48usize,
914        concat!("Size of: ", stringify!(syz_CustomStreamDef))
915    );
916    assert_eq!(
917        ::std::mem::align_of::<syz_CustomStreamDef>(),
918        8usize,
919        concat!("Alignment of ", stringify!(syz_CustomStreamDef))
920    );
921    assert_eq!(
922        unsafe { &(*(::std::ptr::null::<syz_CustomStreamDef>())).read_cb as *const _ as usize },
923        0usize,
924        concat!(
925            "Offset of field: ",
926            stringify!(syz_CustomStreamDef),
927            "::",
928            stringify!(read_cb)
929        )
930    );
931    assert_eq!(
932        unsafe { &(*(::std::ptr::null::<syz_CustomStreamDef>())).seek_cb as *const _ as usize },
933        8usize,
934        concat!(
935            "Offset of field: ",
936            stringify!(syz_CustomStreamDef),
937            "::",
938            stringify!(seek_cb)
939        )
940    );
941    assert_eq!(
942        unsafe { &(*(::std::ptr::null::<syz_CustomStreamDef>())).close_cb as *const _ as usize },
943        16usize,
944        concat!(
945            "Offset of field: ",
946            stringify!(syz_CustomStreamDef),
947            "::",
948            stringify!(close_cb)
949        )
950    );
951    assert_eq!(
952        unsafe { &(*(::std::ptr::null::<syz_CustomStreamDef>())).destroy_cb as *const _ as usize },
953        24usize,
954        concat!(
955            "Offset of field: ",
956            stringify!(syz_CustomStreamDef),
957            "::",
958            stringify!(destroy_cb)
959        )
960    );
961    assert_eq!(
962        unsafe { &(*(::std::ptr::null::<syz_CustomStreamDef>())).length as *const _ as usize },
963        32usize,
964        concat!(
965            "Offset of field: ",
966            stringify!(syz_CustomStreamDef),
967            "::",
968            stringify!(length)
969        )
970    );
971    assert_eq!(
972        unsafe { &(*(::std::ptr::null::<syz_CustomStreamDef>())).userdata as *const _ as usize },
973        40usize,
974        concat!(
975            "Offset of field: ",
976            stringify!(syz_CustomStreamDef),
977            "::",
978            stringify!(userdata)
979        )
980    );
981}
982impl Default for syz_CustomStreamDef {
983    fn default() -> Self {
984        unsafe { ::std::mem::zeroed() }
985    }
986}
987pub type syz_StreamOpenCallback = ::std::option::Option<
988    unsafe extern "C" fn(
989        callbacks: *mut syz_CustomStreamDef,
990        protocol: *const ::std::os::raw::c_char,
991        path: *const ::std::os::raw::c_char,
992        param: *mut ::std::os::raw::c_void,
993        userdata: *mut ::std::os::raw::c_void,
994        err_msg: *mut *const ::std::os::raw::c_char,
995    ) -> ::std::os::raw::c_int,
996>;
997extern "C" {
998    pub fn syz_registerStreamProtocol(
999        protocol: *const ::std::os::raw::c_char,
1000        callback: syz_StreamOpenCallback,
1001        userdata: *mut ::std::os::raw::c_void,
1002    ) -> syz_ErrorCode;
1003}
1004extern "C" {
1005    pub fn syz_createStreamHandleFromStreamParams(
1006        out: *mut syz_Handle,
1007        protocol: *const ::std::os::raw::c_char,
1008        path: *const ::std::os::raw::c_char,
1009        param: *mut ::std::os::raw::c_void,
1010        userdata: *mut ::std::os::raw::c_void,
1011        userdata_free_callback: syz_UserdataFreeCallback,
1012    ) -> syz_ErrorCode;
1013}
1014extern "C" {
1015    pub fn syz_createStreamHandleFromMemory(
1016        out: *mut syz_Handle,
1017        data_len: ::std::os::raw::c_ulonglong,
1018        data: *const ::std::os::raw::c_char,
1019        userdata: *mut ::std::os::raw::c_void,
1020        userdata_free_callback: syz_UserdataFreeCallback,
1021    ) -> syz_ErrorCode;
1022}
1023extern "C" {
1024    pub fn syz_createStreamHandleFromFile(
1025        out: *mut syz_Handle,
1026        path: *const ::std::os::raw::c_char,
1027        userdata: *mut ::std::os::raw::c_void,
1028        userdata_free_callback: syz_UserdataFreeCallback,
1029    ) -> syz_ErrorCode;
1030}
1031extern "C" {
1032    pub fn syz_createStreamHandleFromCustomStream(
1033        out: *mut syz_Handle,
1034        callbacks: *const syz_CustomStreamDef,
1035        userdata: *mut ::std::os::raw::c_void,
1036        userdata_free_callback: syz_UserdataFreeCallback,
1037    ) -> syz_ErrorCode;
1038}
1039extern "C" {
1040    pub fn syz_createStreamingGeneratorFromStreamParams(
1041        out: *mut syz_Handle,
1042        context: syz_Handle,
1043        protocol: *const ::std::os::raw::c_char,
1044        path: *const ::std::os::raw::c_char,
1045        param: *mut ::std::os::raw::c_void,
1046        config: *mut ::std::os::raw::c_void,
1047        userdata: *mut ::std::os::raw::c_void,
1048        userdata_free_callback: syz_UserdataFreeCallback,
1049    ) -> syz_ErrorCode;
1050}
1051extern "C" {
1052    pub fn syz_createStreamingGeneratorFromFile(
1053        out: *mut syz_Handle,
1054        context: syz_Handle,
1055        path: *const ::std::os::raw::c_char,
1056        config: *mut ::std::os::raw::c_void,
1057        userdata: *mut ::std::os::raw::c_void,
1058        userdata_free_callback: syz_UserdataFreeCallback,
1059    ) -> syz_ErrorCode;
1060}
1061extern "C" {
1062    pub fn syz_createStreamingGeneratorFromStreamHandle(
1063        out: *mut syz_Handle,
1064        context: syz_Handle,
1065        stream: syz_Handle,
1066        config: *mut ::std::os::raw::c_void,
1067        userdata: *mut ::std::os::raw::c_void,
1068        userdata_free_callback: syz_UserdataFreeCallback,
1069    ) -> syz_ErrorCode;
1070}
1071extern "C" {
1072    pub fn syz_createBufferFromStreamParams(
1073        out: *mut syz_Handle,
1074        protocol: *const ::std::os::raw::c_char,
1075        path: *const ::std::os::raw::c_char,
1076        param: *mut ::std::os::raw::c_void,
1077        userdata: *mut ::std::os::raw::c_void,
1078        userdata_free_callback: syz_UserdataFreeCallback,
1079    ) -> syz_ErrorCode;
1080}
1081extern "C" {
1082    pub fn syz_createBufferFromEncodedData(
1083        out: *mut syz_Handle,
1084        data_len: ::std::os::raw::c_ulonglong,
1085        data: *const ::std::os::raw::c_char,
1086        userdata: *mut ::std::os::raw::c_void,
1087        userdata_free_callback: syz_UserdataFreeCallback,
1088    ) -> syz_ErrorCode;
1089}
1090extern "C" {
1091    pub fn syz_createBufferFromFloatArray(
1092        out: *mut syz_Handle,
1093        sr: ::std::os::raw::c_uint,
1094        channels: ::std::os::raw::c_uint,
1095        frames: ::std::os::raw::c_ulonglong,
1096        data: *const f32,
1097        userdata: *mut ::std::os::raw::c_void,
1098        userdata_free_callback: syz_UserdataFreeCallback,
1099    ) -> syz_ErrorCode;
1100}
1101extern "C" {
1102    pub fn syz_createBufferFromFile(
1103        out: *mut syz_Handle,
1104        path: *const ::std::os::raw::c_char,
1105        userdata: *mut ::std::os::raw::c_void,
1106        userdata_free_callback: syz_UserdataFreeCallback,
1107    ) -> syz_ErrorCode;
1108}
1109extern "C" {
1110    pub fn syz_createBufferFromStreamHandle(
1111        out: *mut syz_Handle,
1112        stream: syz_Handle,
1113        userdata: *mut ::std::os::raw::c_void,
1114        userdata_free_callback: syz_UserdataFreeCallback,
1115    ) -> syz_ErrorCode;
1116}
1117extern "C" {
1118    pub fn syz_bufferGetChannels(
1119        out: *mut ::std::os::raw::c_uint,
1120        buffer: syz_Handle,
1121    ) -> syz_ErrorCode;
1122}
1123extern "C" {
1124    pub fn syz_bufferGetLengthInSamples(
1125        out: *mut ::std::os::raw::c_uint,
1126        buffer: syz_Handle,
1127    ) -> syz_ErrorCode;
1128}
1129extern "C" {
1130    pub fn syz_bufferGetLengthInSeconds(out: *mut f64, buffer: syz_Handle) -> syz_ErrorCode;
1131}
1132extern "C" {
1133    pub fn syz_bufferGetSizeInBytes(
1134        size: *mut ::std::os::raw::c_ulonglong,
1135        buffer: syz_Handle,
1136    ) -> syz_ErrorCode;
1137}
1138extern "C" {
1139    pub fn syz_createBufferGenerator(
1140        out: *mut syz_Handle,
1141        context: syz_Handle,
1142        config: *mut ::std::os::raw::c_void,
1143        userdata: *mut ::std::os::raw::c_void,
1144        userdata_free_callback: syz_UserdataFreeCallback,
1145    ) -> syz_ErrorCode;
1146}
1147extern "C" {
1148    pub fn syz_sourceAddGenerator(source: syz_Handle, generator: syz_Handle) -> syz_ErrorCode;
1149}
1150extern "C" {
1151    pub fn syz_sourceRemoveGenerator(source: syz_Handle, generator: syz_Handle) -> syz_ErrorCode;
1152}
1153extern "C" {
1154    pub fn syz_createDirectSource(
1155        out: *mut syz_Handle,
1156        context: syz_Handle,
1157        config: *mut ::std::os::raw::c_void,
1158        userdata: *mut ::std::os::raw::c_void,
1159        userdata_free_callback: syz_UserdataFreeCallback,
1160    ) -> syz_ErrorCode;
1161}
1162extern "C" {
1163    pub fn syz_createAngularPannedSource(
1164        out: *mut syz_Handle,
1165        context: syz_Handle,
1166        panner_strategy: ::std::os::raw::c_int,
1167        azimuth: f64,
1168        elevation: f64,
1169        config: *mut ::std::os::raw::c_void,
1170        userdata: *mut ::std::os::raw::c_void,
1171        userdata_free_callback: syz_UserdataFreeCallback,
1172    ) -> syz_ErrorCode;
1173}
1174extern "C" {
1175    pub fn syz_createScalarPannedSource(
1176        out: *mut syz_Handle,
1177        context: syz_Handle,
1178        panner_strategy: ::std::os::raw::c_int,
1179        panning_scalar: f64,
1180        config: *mut ::std::os::raw::c_void,
1181        userdata: *mut ::std::os::raw::c_void,
1182        userdata_free_callback: syz_UserdataFreeCallback,
1183    ) -> syz_ErrorCode;
1184}
1185extern "C" {
1186    pub fn syz_createSource3D(
1187        out: *mut syz_Handle,
1188        context: syz_Handle,
1189        panner_strategy: ::std::os::raw::c_int,
1190        x: f64,
1191        y: f64,
1192        z: f64,
1193        config: *mut ::std::os::raw::c_void,
1194        userdata: *mut ::std::os::raw::c_void,
1195        userdata_free_callback: syz_UserdataFreeCallback,
1196    ) -> syz_ErrorCode;
1197}
1198extern "C" {
1199    pub fn syz_createNoiseGenerator(
1200        out: *mut syz_Handle,
1201        context: syz_Handle,
1202        channels: ::std::os::raw::c_uint,
1203        config: *mut ::std::os::raw::c_void,
1204        userdata: *mut ::std::os::raw::c_void,
1205        userdata_free_callback: syz_UserdataFreeCallback,
1206    ) -> syz_ErrorCode;
1207}
1208#[repr(C)]
1209#[derive(Debug, Default, Copy, Clone)]
1210pub struct syz_SineBankWave {
1211    pub frequency_mul: f64,
1212    pub phase: f64,
1213    pub gain: f64,
1214}
1215#[test]
1216fn bindgen_test_layout_syz_SineBankWave() {
1217    assert_eq!(
1218        ::std::mem::size_of::<syz_SineBankWave>(),
1219        24usize,
1220        concat!("Size of: ", stringify!(syz_SineBankWave))
1221    );
1222    assert_eq!(
1223        ::std::mem::align_of::<syz_SineBankWave>(),
1224        8usize,
1225        concat!("Alignment of ", stringify!(syz_SineBankWave))
1226    );
1227    assert_eq!(
1228        unsafe { &(*(::std::ptr::null::<syz_SineBankWave>())).frequency_mul as *const _ as usize },
1229        0usize,
1230        concat!(
1231            "Offset of field: ",
1232            stringify!(syz_SineBankWave),
1233            "::",
1234            stringify!(frequency_mul)
1235        )
1236    );
1237    assert_eq!(
1238        unsafe { &(*(::std::ptr::null::<syz_SineBankWave>())).phase as *const _ as usize },
1239        8usize,
1240        concat!(
1241            "Offset of field: ",
1242            stringify!(syz_SineBankWave),
1243            "::",
1244            stringify!(phase)
1245        )
1246    );
1247    assert_eq!(
1248        unsafe { &(*(::std::ptr::null::<syz_SineBankWave>())).gain as *const _ as usize },
1249        16usize,
1250        concat!(
1251            "Offset of field: ",
1252            stringify!(syz_SineBankWave),
1253            "::",
1254            stringify!(gain)
1255        )
1256    );
1257}
1258#[repr(C)]
1259#[derive(Debug, Copy, Clone)]
1260pub struct syz_SineBankConfig {
1261    pub waves: *const syz_SineBankWave,
1262    pub wave_count: ::std::os::raw::c_ulonglong,
1263    pub initial_frequency: f64,
1264}
1265#[test]
1266fn bindgen_test_layout_syz_SineBankConfig() {
1267    assert_eq!(
1268        ::std::mem::size_of::<syz_SineBankConfig>(),
1269        24usize,
1270        concat!("Size of: ", stringify!(syz_SineBankConfig))
1271    );
1272    assert_eq!(
1273        ::std::mem::align_of::<syz_SineBankConfig>(),
1274        8usize,
1275        concat!("Alignment of ", stringify!(syz_SineBankConfig))
1276    );
1277    assert_eq!(
1278        unsafe { &(*(::std::ptr::null::<syz_SineBankConfig>())).waves as *const _ as usize },
1279        0usize,
1280        concat!(
1281            "Offset of field: ",
1282            stringify!(syz_SineBankConfig),
1283            "::",
1284            stringify!(waves)
1285        )
1286    );
1287    assert_eq!(
1288        unsafe { &(*(::std::ptr::null::<syz_SineBankConfig>())).wave_count as *const _ as usize },
1289        8usize,
1290        concat!(
1291            "Offset of field: ",
1292            stringify!(syz_SineBankConfig),
1293            "::",
1294            stringify!(wave_count)
1295        )
1296    );
1297    assert_eq!(
1298        unsafe {
1299            &(*(::std::ptr::null::<syz_SineBankConfig>())).initial_frequency as *const _ as usize
1300        },
1301        16usize,
1302        concat!(
1303            "Offset of field: ",
1304            stringify!(syz_SineBankConfig),
1305            "::",
1306            stringify!(initial_frequency)
1307        )
1308    );
1309}
1310impl Default for syz_SineBankConfig {
1311    fn default() -> Self {
1312        unsafe { ::std::mem::zeroed() }
1313    }
1314}
1315extern "C" {
1316    pub fn syz_initSineBankConfig(cfg: *mut syz_SineBankConfig);
1317}
1318extern "C" {
1319    pub fn syz_createFastSineBankGenerator(
1320        out: *mut syz_Handle,
1321        context: syz_Handle,
1322        bank_config: *const syz_SineBankConfig,
1323        config: *mut ::std::os::raw::c_void,
1324        userdata: *mut ::std::os::raw::c_void,
1325        userdata_free_callback: syz_UserdataFreeCallback,
1326    ) -> syz_ErrorCode;
1327}
1328extern "C" {
1329    pub fn syz_createFastSineBankGeneratorSine(
1330        out: *mut syz_Handle,
1331        context: syz_Handle,
1332        initial_frequency: f64,
1333        config: *mut ::std::os::raw::c_void,
1334        userdata: *mut ::std::os::raw::c_void,
1335        userdata_free_callback: syz_UserdataFreeCallback,
1336    ) -> syz_ErrorCode;
1337}
1338extern "C" {
1339    pub fn syz_createFastSineBankGeneratorTriangle(
1340        out: *mut syz_Handle,
1341        context: syz_Handle,
1342        initial_frequency: f64,
1343        partials: ::std::os::raw::c_uint,
1344        config: *mut ::std::os::raw::c_void,
1345        userdata: *mut ::std::os::raw::c_void,
1346        userdata_free_callback: syz_UserdataFreeCallback,
1347    ) -> syz_ErrorCode;
1348}
1349extern "C" {
1350    pub fn syz_createFastSineBankGeneratorSquare(
1351        out: *mut syz_Handle,
1352        context: syz_Handle,
1353        initial_frequency: f64,
1354        partials: ::std::os::raw::c_uint,
1355        config: *mut ::std::os::raw::c_void,
1356        userdata: *mut ::std::os::raw::c_void,
1357        userdata_free_callback: syz_UserdataFreeCallback,
1358    ) -> syz_ErrorCode;
1359}
1360extern "C" {
1361    pub fn syz_createFastSineBankGeneratorSaw(
1362        out: *mut syz_Handle,
1363        context: syz_Handle,
1364        initial_frequency: f64,
1365        partials: ::std::os::raw::c_uint,
1366        config: *mut ::std::os::raw::c_void,
1367        userdata: *mut ::std::os::raw::c_void,
1368        userdata_free_callback: syz_UserdataFreeCallback,
1369    ) -> syz_ErrorCode;
1370}
1371#[repr(C)]
1372#[derive(Debug, Default, Copy, Clone)]
1373pub struct syz_RouteConfig {
1374    pub gain: f64,
1375    pub fade_time: f64,
1376    pub filter: syz_BiquadConfig,
1377}
1378#[test]
1379fn bindgen_test_layout_syz_RouteConfig() {
1380    assert_eq!(
1381        ::std::mem::size_of::<syz_RouteConfig>(),
1382        72usize,
1383        concat!("Size of: ", stringify!(syz_RouteConfig))
1384    );
1385    assert_eq!(
1386        ::std::mem::align_of::<syz_RouteConfig>(),
1387        8usize,
1388        concat!("Alignment of ", stringify!(syz_RouteConfig))
1389    );
1390    assert_eq!(
1391        unsafe { &(*(::std::ptr::null::<syz_RouteConfig>())).gain as *const _ as usize },
1392        0usize,
1393        concat!(
1394            "Offset of field: ",
1395            stringify!(syz_RouteConfig),
1396            "::",
1397            stringify!(gain)
1398        )
1399    );
1400    assert_eq!(
1401        unsafe { &(*(::std::ptr::null::<syz_RouteConfig>())).fade_time as *const _ as usize },
1402        8usize,
1403        concat!(
1404            "Offset of field: ",
1405            stringify!(syz_RouteConfig),
1406            "::",
1407            stringify!(fade_time)
1408        )
1409    );
1410    assert_eq!(
1411        unsafe { &(*(::std::ptr::null::<syz_RouteConfig>())).filter as *const _ as usize },
1412        16usize,
1413        concat!(
1414            "Offset of field: ",
1415            stringify!(syz_RouteConfig),
1416            "::",
1417            stringify!(filter)
1418        )
1419    );
1420}
1421extern "C" {
1422    pub fn syz_initRouteConfig(cfg: *mut syz_RouteConfig) -> syz_ErrorCode;
1423}
1424extern "C" {
1425    pub fn syz_routingConfigRoute(
1426        context: syz_Handle,
1427        output: syz_Handle,
1428        input: syz_Handle,
1429        config: *const syz_RouteConfig,
1430    ) -> syz_ErrorCode;
1431}
1432extern "C" {
1433    pub fn syz_routingRemoveRoute(
1434        context: syz_Handle,
1435        output: syz_Handle,
1436        input: syz_Handle,
1437        fade_out: f64,
1438    ) -> syz_ErrorCode;
1439}
1440extern "C" {
1441    pub fn syz_routingRemoveAllRoutes(
1442        context: syz_Handle,
1443        output: syz_Handle,
1444        fade_out: f64,
1445    ) -> syz_ErrorCode;
1446}
1447extern "C" {
1448    pub fn syz_effectReset(effect: syz_Handle) -> syz_ErrorCode;
1449}
1450extern "C" {
1451    pub fn syz_createGlobalEcho(
1452        out: *mut syz_Handle,
1453        context: syz_Handle,
1454        config: *mut ::std::os::raw::c_void,
1455        userdata: *mut ::std::os::raw::c_void,
1456        userdata_free_callback: syz_UserdataFreeCallback,
1457    ) -> syz_ErrorCode;
1458}
1459#[repr(C)]
1460#[derive(Debug, Default, Copy, Clone)]
1461pub struct syz_EchoTapConfig {
1462    pub delay: f64,
1463    pub gain_l: f64,
1464    pub gain_r: f64,
1465}
1466#[test]
1467fn bindgen_test_layout_syz_EchoTapConfig() {
1468    assert_eq!(
1469        ::std::mem::size_of::<syz_EchoTapConfig>(),
1470        24usize,
1471        concat!("Size of: ", stringify!(syz_EchoTapConfig))
1472    );
1473    assert_eq!(
1474        ::std::mem::align_of::<syz_EchoTapConfig>(),
1475        8usize,
1476        concat!("Alignment of ", stringify!(syz_EchoTapConfig))
1477    );
1478    assert_eq!(
1479        unsafe { &(*(::std::ptr::null::<syz_EchoTapConfig>())).delay as *const _ as usize },
1480        0usize,
1481        concat!(
1482            "Offset of field: ",
1483            stringify!(syz_EchoTapConfig),
1484            "::",
1485            stringify!(delay)
1486        )
1487    );
1488    assert_eq!(
1489        unsafe { &(*(::std::ptr::null::<syz_EchoTapConfig>())).gain_l as *const _ as usize },
1490        8usize,
1491        concat!(
1492            "Offset of field: ",
1493            stringify!(syz_EchoTapConfig),
1494            "::",
1495            stringify!(gain_l)
1496        )
1497    );
1498    assert_eq!(
1499        unsafe { &(*(::std::ptr::null::<syz_EchoTapConfig>())).gain_r as *const _ as usize },
1500        16usize,
1501        concat!(
1502            "Offset of field: ",
1503            stringify!(syz_EchoTapConfig),
1504            "::",
1505            stringify!(gain_r)
1506        )
1507    );
1508}
1509extern "C" {
1510    pub fn syz_globalEchoSetTaps(
1511        handle: syz_Handle,
1512        n_taps: ::std::os::raw::c_uint,
1513        taps: *const syz_EchoTapConfig,
1514    ) -> syz_ErrorCode;
1515}
1516extern "C" {
1517    pub fn syz_createGlobalFdnReverb(
1518        out: *mut syz_Handle,
1519        context: syz_Handle,
1520        config: *mut ::std::os::raw::c_void,
1521        userdata: *mut ::std::os::raw::c_void,
1522        userdata_free_callback: syz_UserdataFreeCallback,
1523    ) -> syz_ErrorCode;
1524}