21 lines
305 B
C
21 lines
305 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
#include <stdbool.h>
|
|
|
|
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
|
|
);
|