1 /* 2 * Copyright (C) 2015-2020 Alibaba Group Holding Limited 3 */ 4 #ifndef __WIND_DETECTION_H__ 5 #define __WIND_DETECTION_H__ 6 7 #include <stdint.h> 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 typedef struct { 14 int32_t bypass; 15 } WindDetection2MicConfig; 16 17 struct WindDetection2MicState_; 18 19 typedef struct WindDetection2MicState_ WindDetection2MicState; 20 21 WindDetection2MicState *WindDetection2Mic_create(int sample_rate, int frame_size, const WindDetection2MicConfig *cfg); 22 23 int32_t WindDetection2Mic_destroy(WindDetection2MicState *st); 24 25 int32_t WindDetection2Mic_set_config(WindDetection2MicState *st, const WindDetection2MicConfig *cfg); 26 27 float WindDetection2Mic_process(WindDetection2MicState *st, short *mic1, short *mic2, uint32_t frame_len); 28 29 #ifdef __cplusplus 30 } 31 #endif 32 33 #endif 34