1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
/* automatically generated by rust-bindgen 0.55.1 */

pub const SAMPLE_RATE_HZ: ::std::os::raw::c_int = 48000;
pub const FRAME_MS: ::std::os::raw::c_int = 10;
pub const NUM_SAMPLES_PER_FRAME: ::std::os::raw::c_int = 480;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AudioProcessing {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, PartialEq)]
pub struct OptionalDouble {
    pub has_value: bool,
    pub value: f64,
}
#[test]
fn bindgen_test_layout_OptionalDouble() {
    assert_eq!(
        ::std::mem::size_of::<OptionalDouble>(),
        16usize,
        concat!("Size of: ", stringify!(OptionalDouble))
    );
    assert_eq!(
        ::std::mem::align_of::<OptionalDouble>(),
        8usize,
        concat!("Alignment of ", stringify!(OptionalDouble))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<OptionalDouble>())).has_value as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(OptionalDouble),
            "::",
            stringify!(has_value)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<OptionalDouble>())).value as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(OptionalDouble),
            "::",
            stringify!(value)
        )
    );
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, PartialEq)]
pub struct OptionalInt {
    pub has_value: bool,
    pub value: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_OptionalInt() {
    assert_eq!(
        ::std::mem::size_of::<OptionalInt>(),
        8usize,
        concat!("Size of: ", stringify!(OptionalInt))
    );
    assert_eq!(
        ::std::mem::align_of::<OptionalInt>(),
        4usize,
        concat!("Alignment of ", stringify!(OptionalInt))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<OptionalInt>())).has_value as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(OptionalInt),
            "::",
            stringify!(has_value)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<OptionalInt>())).value as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(OptionalInt),
            "::",
            stringify!(value)
        )
    );
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, PartialEq)]
pub struct OptionalBool {
    pub has_value: bool,
    pub value: bool,
}
#[test]
fn bindgen_test_layout_OptionalBool() {
    assert_eq!(
        ::std::mem::size_of::<OptionalBool>(),
        2usize,
        concat!("Size of: ", stringify!(OptionalBool))
    );
    assert_eq!(
        ::std::mem::align_of::<OptionalBool>(),
        1usize,
        concat!("Alignment of ", stringify!(OptionalBool))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<OptionalBool>())).has_value as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(OptionalBool),
            "::",
            stringify!(has_value)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<OptionalBool>())).value as *const _ as usize },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(OptionalBool),
            "::",
            stringify!(value)
        )
    );
}
#[doc = " <div rustbindgen>A configuration used only when initializing a Processor.</div>"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, PartialEq)]
pub struct InitializationConfig {
    pub num_capture_channels: ::std::os::raw::c_int,
    pub num_render_channels: ::std::os::raw::c_int,
    pub enable_experimental_agc: bool,
    pub enable_intelligibility_enhancer: bool,
}
#[test]
fn bindgen_test_layout_InitializationConfig() {
    assert_eq!(
        ::std::mem::size_of::<InitializationConfig>(),
        12usize,
        concat!("Size of: ", stringify!(InitializationConfig))
    );
    assert_eq!(
        ::std::mem::align_of::<InitializationConfig>(),
        4usize,
        concat!("Alignment of ", stringify!(InitializationConfig))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<InitializationConfig>())).num_capture_channels as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(InitializationConfig),
            "::",
            stringify!(num_capture_channels)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<InitializationConfig>())).num_render_channels as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(InitializationConfig),
            "::",
            stringify!(num_render_channels)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<InitializationConfig>())).enable_experimental_agc as *const _
                as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(InitializationConfig),
            "::",
            stringify!(enable_experimental_agc)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<InitializationConfig>())).enable_intelligibility_enhancer
                as *const _ as usize
        },
        9usize,
        concat!(
            "Offset of field: ",
            stringify!(InitializationConfig),
            "::",
            stringify!(enable_intelligibility_enhancer)
        )
    );
}
#[doc = " <div rustbindgen>Echo cancellation configuration.</div>"]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct EchoCancellation {
    #[doc = " <div rustbindgen>Whether to use echo cancellation.</div>"]
    pub enable: bool,
    #[doc = " <div rustbindgen>"]
    #[doc = " Determines the aggressiveness of the suppressor. A higher level trades off"]
    #[doc = " double-talk performance for increased echo suppression."]
    #[doc = " </div>"]
    pub suppression_level: EchoCancellation_SuppressionLevel,
    #[doc = " <div rustbindgen>"]
    #[doc = " Use to enable the extended filter mode in the AEC, along with robustness"]
    #[doc = " measures around the reported system delays. It comes with a significant"]
    #[doc = " increase in AEC complexity, but is much more robust to unreliable reported"]
    #[doc = " delays."]
    #[doc = " </div>"]
    pub enable_extended_filter: bool,
    #[doc = " <div rustbindgen>"]
    #[doc = " Enables delay-agnostic echo cancellation. This feature relies on internally"]
    #[doc = " estimated delays between the process and reverse streams, thus not relying"]
    #[doc = " on reported system delays."]
    #[doc = " </div>"]
    pub enable_delay_agnostic: bool,
    #[doc = " <div rustbindgen>"]
    #[doc = " Sets the delay in ms between process_render_frame() receiving a far-end"]
    #[doc = " frame and process_capture_frame() receiving a near-end frame containing"]
    #[doc = " the corresponding echo. You should set this only if you are certain that"]
    #[doc = " the delay will be stable and constant. enable_delay_agnostic will be"]
    #[doc = " ignored when this option is set."]
    #[doc = " </div>"]
    pub stream_delay_ms: OptionalInt,
}
#[repr(u32)]
#[doc = " <div rustbindgen>A level of echo suppression.</div>"]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum EchoCancellation_SuppressionLevel {
    LOW = 0,
    MODERATE = 1,
    HIGH = 2,
}
#[test]
fn bindgen_test_layout_EchoCancellation() {
    assert_eq!(
        ::std::mem::size_of::<EchoCancellation>(),
        20usize,
        concat!("Size of: ", stringify!(EchoCancellation))
    );
    assert_eq!(
        ::std::mem::align_of::<EchoCancellation>(),
        4usize,
        concat!("Alignment of ", stringify!(EchoCancellation))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<EchoCancellation>())).enable as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(EchoCancellation),
            "::",
            stringify!(enable)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<EchoCancellation>())).suppression_level as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(EchoCancellation),
            "::",
            stringify!(suppression_level)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<EchoCancellation>())).enable_extended_filter as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(EchoCancellation),
            "::",
            stringify!(enable_extended_filter)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<EchoCancellation>())).enable_delay_agnostic as *const _ as usize
        },
        9usize,
        concat!(
            "Offset of field: ",
            stringify!(EchoCancellation),
            "::",
            stringify!(enable_delay_agnostic)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<EchoCancellation>())).stream_delay_ms as *const _ as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(EchoCancellation),
            "::",
            stringify!(stream_delay_ms)
        )
    );
}
impl Default for EchoCancellation {
    fn default() -> Self {
        unsafe { ::std::mem::zeroed() }
    }
}
#[doc = " <div rustbindgen>Gain control configuration.</div>"]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct GainControl {
    #[doc = " <div rustbindgen>Whether to use gain control.</div>"]
    pub enable: bool,
    #[doc = " <div rustbindgen>Determines what type of gain control is applied.</div>"]
    pub mode: GainControl_Mode,
    #[doc = " <div rustbindgen>"]
    #[doc = " Sets the target peak level (or envelope) of the AGC in dBFs (decibels from"]
    #[doc = " digital full-scale). The convention is to use positive values."]
    #[doc = " For instance, passing in a value of 3 corresponds to -3 dBFs, or a target"]
    #[doc = " level 3 dB below full-scale. Limited to [0, 31]."]
    #[doc = " </div>"]
    pub target_level_dbfs: ::std::os::raw::c_int,
    #[doc = " <div rustbindgen>"]
    #[doc = " Sets the maximum gain the digital compression stage may apply, in dB. A"]
    #[doc = " higher number corresponds to greater compression, while a value of 0 will"]
    #[doc = " leave the signal uncompressed. Limited to [0, 90]."]
    #[doc = " </div>"]
    pub compression_gain_db: ::std::os::raw::c_int,
    #[doc = " <div rustbindgen>"]
    #[doc = " When enabled, the compression stage will hard limit the signal to the"]
    #[doc = " target level. Otherwise, the signal will be compressed but not limited"]
    #[doc = " above the target level."]
    #[doc = " </div>"]
    pub enable_limiter: bool,
}
#[repr(u32)]
#[doc = " <div rustbindgen>Mode of gain control.</div>"]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GainControl_Mode {
    #[doc = " <div rustbindgen>Not supported yet.</div>"]
    #[doc = " TODO(skywhale): Expose set_stream_analog_level() and"]
    #[doc = " stream_analog_level()."]
    ADAPTIVE_ANALOG = 0,
    #[doc = " <div rustbindgen>"]
    #[doc = " Bring the signal to an appropriate range by applying an adaptive gain"]
    #[doc = " control. The volume is dynamically amplified with a microphone with"]
    #[doc = " small pickup and vice versa."]
    #[doc = " </div>"]
    ADAPTIVE_DIGITAL = 1,
    #[doc = " <div rustbindgen>"]
    #[doc = " Unlike ADAPTIVE_DIGITAL, it only compresses (i.e. gradually reduces"]
    #[doc = " gain with increasing level) the input signal when at higher levels."]
    #[doc = " Use this where the capture signal level is predictable, so that a"]
    #[doc = " known gain can be applied."]
    #[doc = " </div>"]
    FIXED_DIGITAL = 2,
}
#[test]
fn bindgen_test_layout_GainControl() {
    assert_eq!(
        ::std::mem::size_of::<GainControl>(),
        20usize,
        concat!("Size of: ", stringify!(GainControl))
    );
    assert_eq!(
        ::std::mem::align_of::<GainControl>(),
        4usize,
        concat!("Alignment of ", stringify!(GainControl))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GainControl>())).enable as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GainControl),
            "::",
            stringify!(enable)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GainControl>())).mode as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GainControl),
            "::",
            stringify!(mode)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GainControl>())).target_level_dbfs as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GainControl),
            "::",
            stringify!(target_level_dbfs)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GainControl>())).compression_gain_db as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(GainControl),
            "::",
            stringify!(compression_gain_db)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GainControl>())).enable_limiter as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GainControl),
            "::",
            stringify!(enable_limiter)
        )
    );
}
impl Default for GainControl {
    fn default() -> Self {
        unsafe { ::std::mem::zeroed() }
    }
}
#[doc = " <div rustbindgen>Noise suppression configuration.</div>"]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct NoiseSuppression {
    #[doc = " <div rustbindgen>Whether to use noise supression.</div>"]
    pub enable: bool,
    #[doc = " <div rustbindgen>"]
    #[doc = " Determines the aggressiveness of the suppression. Increasing the level will"]
    #[doc = " reduce the noise level at the expense of a higher speech distortion."]
    #[doc = " </div>"]
    pub suppression_level: NoiseSuppression_SuppressionLevel,
}
#[repr(u32)]
#[doc = " <div rustbindgen>A level of noise suppression.</div>"]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum NoiseSuppression_SuppressionLevel {
    LOW = 0,
    MODERATE = 1,
    HIGH = 2,
    VERY_HIGH = 3,
}
#[test]
fn bindgen_test_layout_NoiseSuppression() {
    assert_eq!(
        ::std::mem::size_of::<NoiseSuppression>(),
        8usize,
        concat!("Size of: ", stringify!(NoiseSuppression))
    );
    assert_eq!(
        ::std::mem::align_of::<NoiseSuppression>(),
        4usize,
        concat!("Alignment of ", stringify!(NoiseSuppression))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<NoiseSuppression>())).enable as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(NoiseSuppression),
            "::",
            stringify!(enable)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<NoiseSuppression>())).suppression_level as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(NoiseSuppression),
            "::",
            stringify!(suppression_level)
        )
    );
}
impl Default for NoiseSuppression {
    fn default() -> Self {
        unsafe { ::std::mem::zeroed() }
    }
}
#[doc = " <div rustbindgen>Voice detection configuration.</div>"]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct VoiceDetection {
    #[doc = " <div rustbindgen>Whether to use voice detection.</div>"]
    pub enable: bool,
    #[doc = " <div rustbindgen>"]
    #[doc = " Specifies the likelihood that a frame will be declared to contain voice. A"]
    #[doc = " higher value makes it more likely that speech will not be clipped, at the"]
    #[doc = " expense of more noise being detected as voice."]
    #[doc = " </div>"]
    pub detection_likelihood: VoiceDetection_DetectionLikelihood,
}
#[repr(u32)]
#[doc = " <div rustbindgen>The sensitivity of the noise detector.</div>"]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VoiceDetection_DetectionLikelihood {
    VERY_LOW = 0,
    LOW = 1,
    MODERATE = 2,
    HIGH = 3,
}
#[test]
fn bindgen_test_layout_VoiceDetection() {
    assert_eq!(
        ::std::mem::size_of::<VoiceDetection>(),
        8usize,
        concat!("Size of: ", stringify!(VoiceDetection))
    );
    assert_eq!(
        ::std::mem::align_of::<VoiceDetection>(),
        4usize,
        concat!("Alignment of ", stringify!(VoiceDetection))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<VoiceDetection>())).enable as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(VoiceDetection),
            "::",
            stringify!(enable)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<VoiceDetection>())).detection_likelihood as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(VoiceDetection),
            "::",
            stringify!(detection_likelihood)
        )
    );
}
impl Default for VoiceDetection {
    fn default() -> Self {
        unsafe { ::std::mem::zeroed() }
    }
}
#[doc = " <div rustbindgen>Config that can be used mid-processing.</div>"]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct Config {
    pub echo_cancellation: EchoCancellation,
    pub gain_control: GainControl,
    pub noise_suppression: NoiseSuppression,
    pub voice_detection: VoiceDetection,
    #[doc = " <div rustbindgen>"]
    #[doc = " Use to enable experimental transient noise suppression."]
    #[doc = " </div>"]
    pub enable_transient_suppressor: bool,
    #[doc = " <div rustbindgen>"]
    #[doc = " Use to enable a filtering component which removes DC offset and"]
    #[doc = " low-frequency noise."]
    #[doc = " </div>"]
    pub enable_high_pass_filter: bool,
}
#[test]
fn bindgen_test_layout_Config() {
    assert_eq!(
        ::std::mem::size_of::<Config>(),
        60usize,
        concat!("Size of: ", stringify!(Config))
    );
    assert_eq!(
        ::std::mem::align_of::<Config>(),
        4usize,
        concat!("Alignment of ", stringify!(Config))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<Config>())).echo_cancellation as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(Config),
            "::",
            stringify!(echo_cancellation)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<Config>())).gain_control as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(Config),
            "::",
            stringify!(gain_control)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<Config>())).noise_suppression as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(Config),
            "::",
            stringify!(noise_suppression)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<Config>())).voice_detection as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(Config),
            "::",
            stringify!(voice_detection)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<Config>())).enable_transient_suppressor as *const _ as usize
        },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(Config),
            "::",
            stringify!(enable_transient_suppressor)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<Config>())).enable_high_pass_filter as *const _ as usize },
        57usize,
        concat!(
            "Offset of field: ",
            stringify!(Config),
            "::",
            stringify!(enable_high_pass_filter)
        )
    );
}
impl Default for Config {
    fn default() -> Self {
        unsafe { ::std::mem::zeroed() }
    }
}
#[doc = " <div rustbindgen>Statistics about the processor state.</div>"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, PartialEq)]
pub struct Stats {
    #[doc = " <div rustbindgen>"]
    #[doc = " True if voice is detected in the current frame."]
    #[doc = " </div>"]
    pub has_voice: OptionalBool,
    #[doc = " <div rustbindgen>"]
    #[doc = " False if the current frame almost certainly contains no echo and true if it"]
    #[doc = " _might_ contain echo."]
    #[doc = " </div>"]
    pub has_echo: OptionalBool,
    #[doc = " <div rustbindgen>"]
    #[doc = " Root mean square (RMS) level in dBFs (decibels from digital full-scale), or"]
    #[doc = " alternately dBov. It is computed over all primary stream frames since the"]
    #[doc = " last call to |get_stats()|. The returned value is constrained to [-127, 0],"]
    #[doc = " where -127 indicates muted."]
    #[doc = " </div>"]
    pub rms_dbfs: OptionalInt,
    #[doc = " <div rustbindgen>"]
    #[doc = " Prior speech probability of the current frame averaged over output"]
    #[doc = " channels, internally computed by noise suppressor."]
    #[doc = " </div>"]
    pub speech_probability: OptionalDouble,
    #[doc = " <div rustbindgen>"]
    #[doc = " RERL = ERL + ERLE"]
    #[doc = " </div>"]
    pub residual_echo_return_loss: OptionalDouble,
    #[doc = " <div rustbindgen>"]
    #[doc = " ERL = 10log_10(P_far / P_echo)"]
    #[doc = " </div>"]
    pub echo_return_loss: OptionalDouble,
    #[doc = " <div rustbindgen>"]
    #[doc = " ERLE = 10log_10(P_echo / P_out)"]
    #[doc = " </div>"]
    pub echo_return_loss_enhancement: OptionalDouble,
    #[doc = " <div rustbindgen>"]
    #[doc = " (Pre non-linear processing suppression) A_NLP = 10log_10(P_echo / P_a)"]
    #[doc = " </div>"]
    pub a_nlp: OptionalDouble,
    #[doc = " <div rustbindgen>"]
    #[doc = " Median of the measured delay in ms. The values are aggregated until the"]
    #[doc = " first call to |get_stats()| and afterwards aggregated and updated every"]
    #[doc = " second."]
    #[doc = " </div>"]
    pub delay_median_ms: OptionalInt,
    #[doc = " <div rustbindgen>"]
    #[doc = " Standard deviation of the measured delay in ms. The values are aggregated"]
    #[doc = " until the first call to |get_stats()| and afterwards aggregated and updated"]
    #[doc = " every second."]
    #[doc = " </div>"]
    pub delay_standard_deviation_ms: OptionalInt,
    #[doc = " <div rustbindgen>"]
    #[doc = " The fraction of delay estimates that can make the echo cancellation perform"]
    #[doc = " poorly."]
    #[doc = " </div>"]
    pub delay_fraction_poor_delays: OptionalDouble,
}
#[test]
fn bindgen_test_layout_Stats() {
    assert_eq!(
        ::std::mem::size_of::<Stats>(),
        128usize,
        concat!("Size of: ", stringify!(Stats))
    );
    assert_eq!(
        ::std::mem::align_of::<Stats>(),
        8usize,
        concat!("Alignment of ", stringify!(Stats))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<Stats>())).has_voice as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(Stats),
            "::",
            stringify!(has_voice)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<Stats>())).has_echo as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(Stats),
            "::",
            stringify!(has_echo)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<Stats>())).rms_dbfs as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(Stats),
            "::",
            stringify!(rms_dbfs)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<Stats>())).speech_probability as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(Stats),
            "::",
            stringify!(speech_probability)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<Stats>())).residual_echo_return_loss as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(Stats),
            "::",
            stringify!(residual_echo_return_loss)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<Stats>())).echo_return_loss as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(Stats),
            "::",
            stringify!(echo_return_loss)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<Stats>())).echo_return_loss_enhancement as *const _ as usize
        },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(Stats),
            "::",
            stringify!(echo_return_loss_enhancement)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<Stats>())).a_nlp as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(Stats),
            "::",
            stringify!(a_nlp)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<Stats>())).delay_median_ms as *const _ as usize },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(Stats),
            "::",
            stringify!(delay_median_ms)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<Stats>())).delay_standard_deviation_ms as *const _ as usize
        },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(Stats),
            "::",
            stringify!(delay_standard_deviation_ms)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<Stats>())).delay_fraction_poor_delays as *const _ as usize
        },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(Stats),
            "::",
            stringify!(delay_fraction_poor_delays)
        )
    );
}
extern "C" {
    #[link_name = "\u{1}_ZN23webrtc_audio_processing23audio_processing_createERKNS_20InitializationConfigEPi"]
    pub fn audio_processing_create(
        init_config: *const InitializationConfig,
        error: *mut ::std::os::raw::c_int,
    ) -> *mut AudioProcessing;
}
extern "C" {
    #[link_name = "\u{1}_ZN23webrtc_audio_processing21process_capture_frameEPNS_15AudioProcessingEPPf"]
    pub fn process_capture_frame(
        ap: *mut AudioProcessing,
        channels: *mut *mut f32,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN23webrtc_audio_processing20process_render_frameEPNS_15AudioProcessingEPPf"]
    pub fn process_render_frame(
        ap: *mut AudioProcessing,
        channel3: *mut *mut f32,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN23webrtc_audio_processing9get_statsEPNS_15AudioProcessingE"]
    pub fn get_stats(ap: *mut AudioProcessing) -> Stats;
}
extern "C" {
    #[link_name = "\u{1}_ZN23webrtc_audio_processing10set_configEPNS_15AudioProcessingERKNS_6ConfigE"]
    pub fn set_config(ap: *mut AudioProcessing, config: *const Config);
}
extern "C" {
    #[link_name = "\u{1}_ZN23webrtc_audio_processing23audio_processing_deleteEPNS_15AudioProcessingE"]
    pub fn audio_processing_delete(ap: *mut AudioProcessing);
}
extern "C" {
    #[link_name = "\u{1}_ZN23webrtc_audio_processing10is_successEi"]
    pub fn is_success(code: ::std::os::raw::c_int) -> bool;
}