#pragma once #include #include #include struct gate { float threshold; bool enable_calibration; float cur_avg; bool cur_state; }; void gate_init(); void gate_process( struct gate * gate, size_t frame_size, float const * in, float * out );