1 #ifndef SPEECH_IIR_CALIBRATION_H
2 #define SPEECH_IIR_CALIBRATION_H
3 
4 #include "speech_eq.h"
5 
6 // i.e. only support 4 channels
7 #define SPEECH_IIR_CALIB_MAX_NUM (3)
8 
9 typedef struct
10 {
11     int bypass;
12     int mic_num;
13     EqConfig calib[SPEECH_IIR_CALIB_MAX_NUM];
14 } SpeechIirCalibConfig;
15 
16 typedef struct SpeechIirCalibState_ SpeechIirCalibState;
17 
18 SpeechIirCalibState *speech_iir_calib_init(int32_t sample_rate, int32_t frame_size, const SpeechIirCalibConfig *config);
19 
20 void speech_iir_calib_destroy(SpeechIirCalibState *st);
21 
22 void speech_iir_calib_process(SpeechIirCalibState *st, int16_t *buf, int32_t frame_size);
23 
24 #endif