guitfx/gate.h
2025-01-12 05:08:18 +01:00

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
);