guitfx/gate.h
2025-01-27 21:00:17 +01:00

29 lines
424 B
C

#pragma once
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
struct gate {
float threshold;
bool enable_calibration;
unsigned block_size;
unsigned hist_idx;
unsigned hist_size;
float * hist;
unsigned cur_block_count;
float cur_block_sum;
bool is_active;
};
void gate_init();
void gate_process(
struct gate * gate,
size_t frame_size,
float const * in,
float * out
);